I have one more doubt regarding jsp page include
Total Views: <jsp:include page="totalView.jsp">
<jsp:param name="param2" value='<search:hit_link/>' />
</jsp:include>
Where <search:hit_link/> is a tld. but whenever i try to get value in totalView.jsp it is displaying it as a <search:hit_link>.
where as <search:hit_link> includes file name.
Any suggestions
Thanks
Jazz
What about using ServletRequest getServerName() ?
Example: <%= request.getServerName() %> in your jsp include file.
String getServerName()
Returns the host name of the server to which the request was sent. It is the value of the part before ":" in the Host header value, if any, or the resolved server name, or the server IP address.
Returns:
a String containing the name of the server