Results 1 to 2 of 2

Thread: Back button

  1. #1
    Tokajac is offline Member
    Join Date
    Jun 2008
    Rep Power

    Default Back button

    This task seems to be easy, but i stuck up for a while.

    I need to create a sequence of 3 web pages 2 times: first time for adding, second time for editing. Every page has a BACK button inside the .jsp code.

    I did the adding part and most of the code i reused (copy-paste) in editing part. Everything works fine EXCEPT the BACK button in the editing part.
    Actually, the editing button BACK goes to the same page where the adding BACK button goes.

    Java Code:
          <td width="340" valign="top">
              <html:submit styleId="trackingSubmit" onmouseover="'trackingSubmitSelected'" style="WIDTH: 120px; HEIGHT: 25px"
              onmouseout="'trackingSubmit'" value="Back" onclick="bCancel=true"  property="back"/>
    How should i go BACK to the appropriate page? Can you post me code for button inside the .jsp that will function same as the browsers back button?


    I tried with the javascript history too, without success

  2. #2
    Deepa is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default Re:Back button

    Use history.Back() method,u will get a ans.

Similar Threads

  1. Browser's back button refresh the pages
    By hasansheikh18 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-31-2011, 05:44 PM
  2. Problem with Midlet back button
    By Poonam in forum CLDC and MIDP
    Replies: 5
    Last Post: 11-17-2008, 10:14 AM
  3. Tim's back!
    By tim in forum Introductions
    Replies: 3
    Last Post: 06-29-2008, 06:50 AM
  4. Back Ground Midlet
    By krmlkr in forum CLDC and MIDP
    Replies: 1
    Last Post: 03-06-2008, 02:41 PM
  5. date one month back
    By senzacionale in forum New To Java
    Replies: 1
    Last Post: 12-24-2007, 10:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts