Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]   Go Down
  Print  
Author Topic: Passing a tld value to a jsp page  (Read 965 times)
0 Members and 1 Guest are viewing this topic.
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0

WWW Awards
« on: June 24, 2009, 12:33:21 AM »

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
Logged

visit my blog: www.yoteam.co.cc
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

WWW Awards
« Reply #1 on: June 24, 2009, 05:52:59 AM »

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.

Quote
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

Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here