• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic select fields need to add in jsp page

 
Soumya Madhu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic