File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Dynamic select fields need to add in jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Dynamic select fields need to add in jsp page" Watch "Dynamic select fields need to add in jsp page" New topic
Author

Dynamic select fields need to add in jsp page

Soumya Madhu
Greenhorn

Joined: Dec 24, 2008
Posts: 7
Hi,

I need to create dynamic select fields(<s:select>) when I give a number as input. If I select 3 as input, I need to create 3 select fields in jsp page dynamically. whose field name should be created dynamically.
I am using struts 2 and tomcat 6 and java 1.6.

Can any one help me ?

thanks
soumya
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56534
    
  14

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Just create the HTML that the select tag would render. You might have to play some games to get validation to do what you want, depending on how you're planning on implementing it.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Hello Soumya Madhu. What's your real problem?

Do you have any code? Are you receiving some error message or just don't know what to do?


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic select fields need to add in jsp page
 
Similar Threads
LazyValidatorForm and Lazy DynaBean
struts Action for asynchronous HTTP processing
Dynamically added form fields cannot access from request access
Dynamically increased form (Collection)
Dynamic field collapse issue in Form