File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP nested Select & nested Text tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP nested Select & nested Text tag" Watch "JSP nested Select & nested Text tag" New topic
Author

JSP nested Select & nested Text tag

Bhavik Patel
Ranch Hand

Joined: Jul 12, 2004
Posts: 155
Hii ,

I was wondering how can i create a parent dropdown and child text box such that selecting value from parent will change the value in the text field ( text field is read only ) ..

so lets say i have a dropdown with Department codes then if i change the department code its description ( one text box) and dept head name( another text box) populates automatically ,....

I can do this with AJAX also but how do i do this with custom tags..make sure that my parent tag should also have behaviour of dropdown and child tag should have behaviour of text box..

Waiting for the reply..

Bhavik


SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Originally posted by Bhavik Patel:
but how do i do this with custom tags


Client-side activity must take place using client-side technology; namely, HTML, JavaScript and Ajax. You can use custom tags to generate the client-side code, but before you do anything like that, you need to figure out what the client-side code needs to be.

Waiting for the reply..


Please avoid putting statements like this in your posts. It makes you sound impatient and demanding. Neither of these traits are condusive to making others want to help you.
[ July 02, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP nested Select & nested Text tag
 
Similar Threads
display
How to call parent window id in child window
Window.Opener Problem
jsp + dropdown + automatically populate the vales from the db in the Text box
drop down box using struts