Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Struts ActionForm and View's initialization

Thread view: 
alanmiles100@yahoo.com - 31 Oct 2005 19:24 GMT
If I want to initialize my view only once with initial values,
where should I do it?

ActionForm's reset-method seems not to be the right place because it is
called every time if the view has e.g. a submit button. Action class
seems to be called too late. Where should I handle first initialization
of the view? Can anyone please tell me,

Cheers!
shawnews - 01 Nov 2005 02:39 GMT
> If I want to initialize my view only once with initial values,
> where should I do it?
[quoted text clipped - 5 lines]
>
> Cheers!

My preferred method is to use an initializing action. Set the values in the
form bean, save to the request, and forward to your view


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.