aspose file tools*
The moose likes Struts and the fly likes how to insert,update and delete in multiple jsp page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to insert,update and delete in multiple jsp page?" Watch "how to insert,update and delete in multiple jsp page?" New topic
Author

how to insert,update and delete in multiple jsp page?

Prakash Thangavel
Greenhorn

Joined: Nov 02, 2012
Posts: 5
Hi all,
i m new to this forum and also new to struts. Actually i have worked on jsp pages and we use a centralized jsp page to insert into database.
That is for example various pages dedicated for various masters so, once fill the form and click the submit button. Next using ajax it will redirect to the centralized jsp page, which has the script to insert into the appropriate table into database.
Now actually i want to achieve this in struts.
If my doubt is worthless, dont mind.
Please help me to achieve this.
Thanks and Regards
Prakash
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297

Hi Prakash,

Welcome to JavaRanch. Please refer Example .It will give you some idea.

Regards
Jatan
Prakash Thangavel
Greenhorn

Joined: Nov 02, 2012
Posts: 5
Hi Jatan,
Thanks for your reply, actually i have gone through some examples related to this from google.
I found examples using dispatchaction, lookupdispatchaction.
These are used to achieve my requirement under a single jsp page.
But my doubt is that how to do the same in more than a single jsp page.
That is should i follow the same procedure in all the jsp pages from which i m trying to insert,edit and delete.

Thanks and Regards
Prakash
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297

Hi Prakash,

It depends on you whether you want to use single jsp for separate for isnert,update,delete... You can configure jsp in struts xml file.

Regards
Jatan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to insert,update and delete in multiple jsp page?