It's not a secret anymore!
The moose likes Struts and the fly likes Struts Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Question" Watch "Struts Question" New topic

Struts Question

Martin Coetzee

Joined: Dec 02, 2003
Posts: 21
Hi Guys...I have a question regarding struts. I've got a tabs page with different information on it. At the bottom of each tab, i placed a button that will submit to a certain dispatch action. I need to get the 'key' for the information on the tab to modify in the action. There is a hidden variable declared inside the form. I.E. :

When I extract the 'partyKey' parameter from the request, the value inside it is: "<%=key%>" and not the "person4" value I expected. How can I replace the value in the tag with something that's everchaning on the page?
I appreciate all comments.
Greetings from Pretoria, South Africa
Martin Coetzee
P.S. Sorry for the onklick spelling mistake, but the BB does not except the correct spelling in the message.
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
why not just use <html:hidden />

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
I agree. Here's the link:
subject: Struts Question
It's not a secret anymore!