-----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

Reply via email to