jQuery in Action, 3rd edition
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

Struts 2 request pararmeter problme

Teresa Lee

Joined: Feb 01, 2008
Posts: 24

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?


I agree. Here's the link: http://aspose.com/file-tools
subject: Struts 2 request pararmeter problme
It's not a secret anymore!