Subject: Re: Help this newbie...... From: Vic Cekvenich <[EMAIL PROTECTED]> === #1. Allways call the controller. The basis of MVC. Controller has a chance to pre-populate any beans. If you call a JSP from a page you do not "understand" Struts. If you allways call things by the action, you know 80% of Struts. This is academic. When confused ... remember, call the action. The action will Controll where to go.
#2. To create more actions(places to go), edit action mappings in struts-config.xml. #3. In action ask the bean to populate if retrieving and update if user wants to save, etc. #4. HTTP is String based. Your bean getter and setters (almost) allways get and return strings! The confusing part is that inside the bean getters or setter method, they talk to native types. Ex: setXDate and getXNumber receive a string and return a String respectivly. Inside the method, setXDate converts to date, and sets it. inside a getXNumber, i retrieves a BigDecimal, formats it and converts to string to retrun. Now you know 98% of Struts. The Bean isolates the app. from the Physical Data Model. A good practice is for the Beans to have a DAO property that talks to the DB. (The last 2% is improvised) hth, Vic > hi All, > I want to use struts framework in my upcoming project. I ve gone thr' > the documentation and it looks very impressive.. Ive downloaded examples > given and are working fine on Tomcat with JBuilder. But frankly I didnt > understand the flow... like whos calling whom. How link of > registration.do redirects to registration.jsp? Can anbody please > exaplain me the flow. I would really apreciate if u reply. > > please help this newbie. > Cheers > Ketan > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>