• Post Reply Bookmark Topic Watch Topic
  • New Topic

should I make 1:1 jsp page and actionform ?  RSS feed

 
prasanna pati
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a struts project say I have many JSP pages , so is it a good idea to make the same number of action form beans s ? or what should be am intelligent design?

and which type of inputs in JSP I should take as an arraylist? actually I am looking for a working example where you need to get all kind of inputs ( say multiple selection , long strings , images ) in a JSP page and from JSP page in which formation it is moving further....
( I am looking for source-code but not a whole project )

prasannapati@gmail.com


[ March 20, 2008: Message edited by: prasanna pati ]
 
Joe Ess
Bartender
Posts: 9436
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of Struts are you using?
In Struts 1, actions and their results are rather tightly coupled. It is possible to combine functions into one action and have that action forward to different result pages, but it can get tedious as you are duplicating the front controller functionality in your actions for little gain (reducing the number of classes)
In Struts 2, it is actually encouraged to combine related actions (for example the CRUD demo in the Struts documentation) in a single action class.
I'm not sure what you mean in the second part of your question. Are you asking what form tags can work with collections?
[ March 21, 2008: Message edited by: Joe Ess ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!