Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

should I make 1:1 jsp page and actionform ?

 
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 ]
 
Bartender
Posts: 9615
16
Mac OS X Linux 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 ]
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic