jQuery in Action, 3rd edition
The moose likes JSP and the fly likes adding 'option' into 'select'... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "adding Watch "adding New topic

adding 'option' into 'select'...

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
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?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

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?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: adding 'option' into 'select'...
It's not a secret anymore!