Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2008, 04:03 PM
Member
 
Join Date: Jun 2008
Posts: 12
Rep Power: 0
Tokajac is on a distinguished road
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.

Code:
      <td width="340" valign="top">
          <html:submit styleId="trackingSubmit" onmouseover="this.id='trackingSubmitSelected'" style="WIDTH: 120px; HEIGHT: 25px"
          onmouseout="this.id='trackingSubmit'" value="Back" onclick="bCancel=true"  property="back"/>

      </td>
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?


Regards

P.S.
I tried with the javascript history too, without success
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-27-2008, 06:27 AM
Member
 
Join Date: Nov 2008
Posts: 85
Rep Power: 0
Deepa is on a distinguished road
Default Re:Back button
Hi,
Use history.Back() method,u will get a ans.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Midlet back button Poonam CLDC and MIDP 5 11-17-2008 10:14 AM
Tim's back! tim Introductions 3 06-29-2008 06:50 AM
Back Ground Midlet krmlkr CLDC and MIDP 1 03-06-2008 02:41 PM
Browser's back button refresh the pages hasansheikh18 JavaServer Pages (JSP) and JSTL 2 01-09-2008 08:59 AM
date one month back senzacionale New To Java 1 12-24-2007 10:02 PM


All times are GMT +2. The time now is 08:17 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org