File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes  Need help selected text fields visible for particular option from drop down list in JSP(struts) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Need help selected text fields visible for particular option from drop down list in JSP(struts)" Watch " Need help selected text fields visible for particular option from drop down list in JSP(struts)" New topic
Author

Need help selected text fields visible for particular option from drop down list in JSP(struts)

Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 69
Hi,
I am doing struts application , in JSP file I have dropdown list and some text fields.I want to do when I select one option from dropdown list,particular text fields should visible and remaining should be hide.This functionality need for all options in drop down list.In JSP I have been using struts tag libraries like bean,html,logic.How can I do that?

Below code is available:


Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

The javascript method zxcEnableDisable is not called anywhere. You've not registered it as an event as far as I can see. I hope I've not missed anything...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 69
I forgot to add...I have called JS function here <html:select property="ejbType" onchange="zxcEnableDisable(this);">

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help selected text fields visible for particular option from drop down list in JSP(struts)
 
Similar Threads
Struts 1 -- Wrong data displaying in my JSP page
bean value persists on clicking back
Struts: Getting a blank page instead of the form
Ajax, Struts, and a few pesky event based issues
retrieve value of a field