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 adding 'option' into 'select'... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "adding Watch "adding New topic
Author

adding 'option' into 'select'...

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3829
How is this way of adding options into select (dropdown list)?



I think, this can't not be called 'no scriptlet' code. We have just changed the position of code (moved code in script from scriptlet). I don't think, a good idea.

What's your opinion?

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56179
    
  13

I agree. Why use scritplet code to create JavaScript that will populate the options on the client when you can just populate the options directly on the server?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: adding 'option' into 'select'...
 
Similar Threads
list......jsp, javascript
selection box problem
Show a hidden text field
How to add form fields dynamically
show and insert data from list depending on choice of radio button