This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to pass values from struts select tag to another struts tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to pass values from struts select tag to another struts tag?" Watch "How to pass values from struts select tag to another struts tag?" New topic
Author

How to pass values from struts select tag to another struts tag?

Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
Hello all,

I have a jsp page that uses struts 2 tags. I am wondering how to hide / display the textfields based on the value of the select tag. For example. Lets say there is a list having A, B and C. I get the value from the action class, say B. Based on this value B, the textbox is hidden or not...

Any Idea on how I implement it???

here is my jsp page.....
Please note that function hideOthers() will work only when we click on the select box......




Thanks in Advance....
Green horn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass values from struts select tag to another struts tag?
 
Similar Threads
Dynamically moving the DIV
document.forms[0].submit(); throws Invalid Argument in IE
Showing Hiding <s:div> tag in Struts2
div not woking
Struts 2