File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

List from Action to JSP in Struts 1

 
Kartik Tal
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Am having a JSP where I was suppose to show a dropdown box, where the values of dropdown are in a list which is in request attribute.

So in JSP I had written a scriplet and got the list, and working fine.


But I heard the getting the results from scriplet is not a good practise, so is there any other way to get them?
NOTE: Am using Struts 1



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the <html:select> and <html:options> or <html:optionsCollection> tags.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic