Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Struts form bean question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts form bean question" Watch "Struts form bean question" New topic
Author

Struts form bean question

Raistlin Zischer
Greenhorn

Joined: Jul 05, 2005
Posts: 25
I'm not sure if this question has been asked before, but here goes anyways. I have a jsp page that will contain N textboxes, all with the same name. What type of form bean would I have to set up to handle the information passed by the N textboxes? Would it be something like String[] for the type? Anything special I have to watch out for when doing this.
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
indexed properties...you can use custom objects or String[]
http://www.developer.com/java/ejb/article.php/2233591


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts form bean question
 
Similar Threads
Creating dynamic text boxes in Struts 1
Issue in submitting the Form with Arraylist in Struts 1.1
Questions that were fill in the blank in SCPJ2
I have 15 textboxes in the form with the same name;how to retreive the values
inserting information in DB from jsp