File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:options " Watch "html:options " New topic


DVVN Sudhakara Rao

Joined: Oct 04, 2004
Posts: 17
I want to generate a html ptions values from the database.My application have a jsp page in which there is a html:select tag. I want to generate the values from the database. Any examples with code.
Thanks in advance
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32818

The first step is to have your Action place the options in a Collection in the request. Then the htmlptions tag can display it.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: html:options
It's not a secret anymore!