• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

anyone Please Help! Mikalai please help..

 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I REALLY NEED URGENT HELP..
Hello friends ,
I have given my SCWCD with 81% score..and now have got a job recently..working experience is something different than giving an exam..

I want your help on some functionality.We have three pages:-
1.SearchOrderForm.jsp 2.SearchResults.jsp 3. Details.jsp
when i am on the third page and click right mouse button to go back,
the page is gone.Insted of showing the previous page it says page expired.

I have to correct this functionality.I guess SESSION object would be used here .But am not sure how to use it.

on the first page SearchOrderForm.jsp the only place where session is used is:->
if (session.getAttribute("SearchOID") == null )
{

String SearchOID = "OrderSearch";
session.setAttribute("SearchOID", SearchOID);

}
the next page SearchResults.jsp has one place where session is used:->

<a href="<%= session.getAttribute("SearchOID") %>"><img src="/webapp/image/button/return_status_search.gif" width="100" height="40" border="1"></a></td>

Now the last page Detials.jsp has:->
<% if ( session.getAttribute("SearchOID") != null )
{
%>
<a href="<%= session.getAttribute("SearchOID") %>"><img src="/webapp/image/button/return_status_search.gif" width="200" height="30" border="0" alt="Return to Status Search"></a>

while i am on the second page,clicking the back button takes me to the previous page, BUT when i am on the third page, clicking the back button expires the page..WHY SO???
What to do please guide..

Thanks in advance,
mallika shah..
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you arriving at the JSP's? DO you post directly to them or do you go first toa Servlet and then forward to the JSP?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic