cheungyipyan
asked on
how to populate a select box which is dependent on another select box
hi,
i need to populate a select box with values from database. but this should be done based on the value selected in the other select box.
for example,
selectbox1 contains options like:
hardware
software
if hardware is selected, selectbox2 must have the following options(got from the database)
PC
UPS
PRINTERS
could you tell me how to implements it by using action, actionform and jsp
help me regarding this.
i need to populate a select box with values from database. but this should be done based on the value selected in the other select box.
for example,
selectbox1 contains options like:
hardware
software
if hardware is selected, selectbox2 must have the following options(got from the database)
PC
UPS
PRINTERS
could you tell me how to implements it by using action, actionform and jsp
help me regarding this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for all replies
However, i really want to know how to write the codes of JSP, Action and ActionForm to achieve my goal.
Please help me......................
However, i really want to know how to write the codes of JSP, Action and ActionForm to achieve my goal.
Please help me......................
It's difficult for us to teach you how to use structs in a forum thread, it's just too much.
I think you much pick up struts yourself, then it is trivial task to translate the given sample to struts with your particular needs.
I think you much pick up struts yourself, then it is trivial task to translate the given sample to struts with your particular needs.
ASKER
but i need a sample that implements by using Struts