Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 request pararmeter problme

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?


Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!