This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes How to get jsp:param Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "How to get jsp:param" Watch "How to get jsp:param" New topic
Author

How to get jsp:param

Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 112
Hi All,
I have written something like this.


In abc.jsp, when I try to get it by


It always gives me null. Any idea what I am doing wrong.

Thanks in advance.


Regards, Fawad Ali.
Software Engineer, Stafona Inc. - My Blog
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1517
    
    6
All looks good to me.
Here is a full example that works for me on Tomcat7.

page1.jsp


page2.jsp


Try accessing it with something like http://localhost:8080/MyWebApp/page1.jsp?fromPage1=HelloWorld

If this works, then double(triple) check your code. Maybe print out all the request parameters received with the following code snippet:

 
Have you checked out Aspose?
 
subject: How to get jsp:param
 
It's not a secret anymore!