aspose file tools*
The moose likes Struts and the fly likes <s:select list> How to get values from database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "<s:select list> How to get values from database?" Watch "<s:select list> How to get values from database?" New topic
Author

<s:select list> How to get values from database?

suraj savaratkar
Ranch Hand

Joined: May 17, 2010
Posts: 67
I want to put a session values into first <s:select> tag and according to selected item, second <s:select list> should display a corrsponding values from database.

For. e. g : if first select displays Java as template then second list must display values corresponds to Java template like core java,j2EE, J2ME from the database.

Please give the syntax.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

There is no syntax, you have to build a component like that yourself, or use the doubleselect tag.
suraj savaratkar
Ranch Hand

Joined: May 17, 2010
Posts: 67
hi,
if you should know the syntax for <s:doubleselect> please forward for above question .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <s:select list> How to get values from database?