RTFM is an English acronym best summarized as "please read the documentation." By service routines what he means is this:
Instead of writing an Action code that has your DB access code directly in it, write a service class that has DB access code in it, and have your actions call the service class's methods. That lets you reuse the DB access code, and keeps the processing in the Action class focused on the user interface. That makes development and maintenance far easier. jk On Wed, Jun 17, 2009 at 2:29 AM, sprani.kmraj <sprani.km...@gmail.com>wrote: > > Dear volker, > > Thank you so much. > This is what i expected... Now i understood the things. > Can u please tell me that, what you r mean by service routines & RTFM. > > U r telling that DB access code should be in Action class, right.... > So, where the Prepared statements should be in? > what are all the things should be there in Servlet & java Bean? > Please explain. > > regards, > Rani. > > > > > > Volker Karlmeier wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi, > > > > 1) your submit button should submit to some action defined in struts.xml. > > 2) your action class is called (if you have not specified any other, > > "execute" is called. > > 3) the result of your action specifies, which jsp is called next > > > > your code for accessing the DB should be called in 2) (better call > > some service routines that access the database). > > for more information: RTFM > > > > Regards > > > > volker > > > > sprani.kmraj schrieb: > >> Dear All, > >> > >> GoodDay...! > >> Im beginner for Struts programming. > >> I hv started developing a Struts project. > >> I have many doubt.... can u please clarify my doubt.... > >> i have a jsp page which contains the input data(name & password). > >> When i click the submit button, data will have to store in the database. > >> i usally used to write DB connection code & definition of DB(prepared > >> Statements) in servlet. > >> But while using struts.... Where i have to write the code for DB > >> connection > >> & definition... > >> > >> When i click the submit button in JSP... > >> what is the flow in the struts project..... > >> What are all the required files(servlets,java bean,action class,action > >> form.... like that...) > >> > >> Please tell me the flow.... > >> I hv refered many books... but i didnt get the answer to my point.... > > > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.7 (GNU/Linux) > > > > iD8DBQFKOCfYaEMQXBIqssERAsBiAJ9p5OK8mMT02ENsl9zFd4InzMCKhwCffefs > > d3wcCN/k+pbpxOHGOgdswXI= > > =Cwon > > -----END PGP SIGNATURE----- > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/Struts-Flow-in-JSP%2CServlets-Project-tp24054020p24067708.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com