File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strukts 2 post parameter

 
asif rafique
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone

i am opening a popup window when a link is clicked what i am doing is
<s:url value="someAction">
<s:param name="id" value="someID"/>
</s:url>
<s:a href"%{someAction}">Link</s:a>

where id is property in my action class with getter and setter i got the value too on which i can get data from database but this is a HTTP GET and parameter is appended at the end of url with value and my problem is i want to hide the parameter any idea is appreciated
thanks in advance

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

when you use anchor tag and use struts 2 url tag then your parameter value and parameter pass with url.

If you don't want to pass it with url you have to submit form on click link and set one form hidden value using java script.

Otherwise call with url it always pass with query string.

So, submit form on click url and set hidden value.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic