• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Struts 2 request pararmeter problme

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic