• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 request pararmeter problme  RSS feed

Teresa Lee
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!