aspose file tools*
The moose likes Struts and the fly likes Struts 2 request pararmeter problme Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 request pararmeter problme" Watch "Struts 2 request pararmeter problme" New topic
Author

Struts 2 request pararmeter problme

Teresa Lee
Greenhorn

Joined: Feb 01, 2008
Posts: 24
Hi,

I am using Struts 2 and in my application, the flow is like this:
index.jsp -->first.action -->first.jsp -->second.action -->second.jsp

in first.jsp, I have:
<s:url action="first" id="link1"><s aram name="someParam" value="someValue" /></s:url>


I can see that this someParam=someValue is appending to the url even until second.jsp which I don't want. I don't understand why the request object is not cleared after first.jsp. Now, in order to get rid of the params keeping appending on the urls, I have to manuelly set the params to null explicitly which is not a good way. Anybody have better solutions to this problem?

Thanks,

Teresa
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 request pararmeter problme
 
Similar Threads
Passing values to JSp with href
Can JSP use variable defined in another jsp ?
multiple forms in JSP
request.getHeader("Referer")
getting the URL for the calling jsp page?