• 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

retrieve request parameters in action class Struts2 URGENT

 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am sending a request parameter named "EmpID" and retrieving it in my Action class

jsp:


Action class:




i cant see EmpId in the url

What am i doing wrong?
Please help.Its vry urgent
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use Hidden Field and then set it's value . And if you want to see parameters that your are posting so change Method from Post to Get Method.
 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Aamir Ali Shah wrote:Use Hidden Field and then set it's value . And if you want to see parameters that your are posting so change Method from Post to Get Method.



I have tried setting hidden field value.
<s:hidden name="EmpID" value="#session.EID" />
when i alert hte value in javascript, i get the value as "#session.EID"

Have also tried value = "%(#session.EID)" but no luck

Please help.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where/how do you put EID into session?

Note that putting "URGENT" into the subject is kinda... not cool. See this for details. On a personal note, I actually tend to /not/ answer questions marked "URGENT" in the hopes that desperation will drive the asker to figure it out on their own, which is almost always faster than waiting for someone else to do it for them.
 
reply
    Bookmark Topic Watch Topic
  • New Topic