Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

problem with jsp

  Asked By: Gerritt    Date: Feb 28    Category: Java    Views: 648
  

I have a 3 Jsp's
i want to jump from 1st to 3rd page with second page being processed on
server (ie it contain adding data to database). how can i do this thing.

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Jo Fowler     Answered On: Feb 28

From 1st jsp  page redirect to 2nd jsp..
don't have HTML related things in this page..
There is no need for this..
After processing something,send the execution to 3rd page..


Example

1.jsp
-----
Response.redirect("/2.jsp")

2.jsp
-----
After processing something..
Response.redirect("/3.jsp")

 
Answer #2    Answered By: Blaze Fischer     Answered On: Feb 28

just use multi threading..............

 
Answer #3    Answered By: Pam Harrison     Answered On: Feb 28

Why do you have a jsp  that provides no presentation to the user? Put that code
into a separate class or something. Jsp is meant as a presentation layer only,
all your business logic (such as that dealing with databases) should be separate
from the presentation layer.

 
Answer #4    Answered By: Shannon Hughes     Answered On: Feb 28

You can use response.sendRedirect("where you want") method after database
operation in second JSP...

 
Didn't find what you were looking for? Find more on problem with jsp Or get search suggestion and latest updates.




Tagged: