Hi - I have written a piece of code to dynamically include data in the drop down list after querying the data base. I can print the values using out.print().. but they do not show up in the drop down list. Below is the code. Please lemme know the mistake in my code. Thanks you!
[ August 14, 2004: Message edited by: Hari priya ]
Thanks for your reply. It still doesn't work. I am able to print the values using out.print(num.intValue()) [without using the form, select or options tag]. However, I am unable to capture the values in the drop down list [I do not have any out.print stmts now], I could not see the values.
The drop down list should contain two values 10001 and 1. Is the number of digits making any difference? Thanks!
Joined: Mar 11, 2004
My code works fine. I gave "options" instead of "option"
Adopting a behemoth like Struts is a bit of overkill to implement a simple dynamic dropdown list. A custom action to dynamically populate the options list would be but a few lines of code. [ August 16, 2004: Message edited by: Bear Bibeault ]
What are you talking about? They are the same thing. Please use correct terms because in the sense of struts action means a subclass of the org.apache.struts.action.Action I have never heard that somebody used term "Custom Action" to the custom tags.