Hello Sarath, it is possible to do this but i would not suggest to do so except for special reasons. To reuse the drop down menues you should better use <html:options> instead of <html:option> and read a property or xml file at init time which contains the menue data. That still does not reduce the traffic between server and client, but at least solves the code dublication in JSPs.
If you really want to generate the HTML with javascript, you could <bean:write> the property/value that shall be selected into a Javascript variable, or parse the URL via Javascript if it's a HTTP GET request, but i don't like this kind of things. regards, Sven -----Original Message----- From: Sarath Chandra M [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 28. November 2002 15:38 To: [EMAIL PROTECTED] Subject: generate <html:option> from javascript locally Dear group, I have a some jsp pages which have the same dropdown lists (<html:option> tags) like country lists, etc. Instead of generating them at serverside everytime, I would like to hav them stored in a javascript file and built on-the-fly whenever the page is served to the client. Can anybody suggest a better way to do this type of list generation. tia sarath -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>