September 03, 2010, 10:54:18 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Media Affiliates Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Passing a tld value to a jsp page  (Read 1028 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
Javaforums.net/forum :: A friendly community for software developers and students that want to learn Java!
« on: June 24, 2009, 12:33:21 AM »

 Logged
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2620
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
Javaforums.net/forum :: A friendly community for software developers and students that want to learn Java!
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.198 seconds with 33 queries.

Google visited last this page Today at 03:43:47 AM