aspose file tools*
The moose likes Struts and the fly likes select tag in logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "select tag in logic:iterate" Watch "select tag in logic:iterate" New topic
Author

select tag in logic:iterate

hitesh s kushwaha
Greenhorn

Joined: Apr 15, 2008
Posts: 7
Hi everyone,

I am using struts 1.2. I want to put some labels in a form from the database and with every label there will be a select tag whose options are also going to be fetched from the database.
How to do it.

Thanks.


hitesh kumar
Ranveer K Kumar
Ranch Hand

Joined: Sep 13, 2009
Posts: 64
hitesh s kushwaha wrote:Hi everyone,

I am using struts 1.2. I want to put some labels in a form from the database and with every label there will be a select tag whose options are also going to be fetched from the database.
How to do it.

Thanks.


If you want to put select tag from data base then you need to fetch the data from the database before calling to form/current page. which will populate the value in select or label.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: select tag in logic:iterate