• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

strukts 2 post parameter

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic