How to go back on page by not sending request to servlet

Hello,
I have create web application using JSP and servlets. When I press a button I send request to servlet and it redirects me to jsp page where the results are displayed, then in that page I press a button and go to other servlet which redirects me to other JSP.
I want to make a button on the third JSP page to go back to second JSP page by not sending request to servlet. For e.g. in FireFox, I press back button and it takes me back. But I want that the same action like in firefox would work with my created button.
How can I do that?
Edited by: peliukasss on Sep 14, 2010 3:28 PM

evnafets wrote:
You wnat your created button to act the same as the "back" button in the browser?Yes, thats exactly what I need.
Then all you need to do is invoke some javascript on it.
After a quick google search, the most commonly suggested solution appears to be:
onclick="history.go(-1)"
Thanks for your reply.

Similar Messages

  • I can't get to my profile page to log in. it keeps going directly to the admin page. Any idea how I go back a page to log in?

    can't get to my profile page to log in. it keeps going directly to the admin page. Any idea how I go back a page to log in?

    Giving more information  will help.
    What happens if you log out of "admin page"?
    Best.

  • How do I back up my iPhone notes in to my iCloud?

    How do I back up my iPhone notes to my iCloud?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    What gets Backed Up
    iCloud http://support.apple.com/kb/PH2584
    iTunes http://support.apple.com/kb/ht4946

  • Go back one page does not work

    Since I had to reinstall Firefox 3.6.15, the "go back one Page" does not work in many cases. Sometimes by clicking on history and manually returning, it works. Id there a fix for this problem, because it is new.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Error ERR-1016 Application "118" Page "1" not found (requested language="en

    Hi friends,
    I created an application with 3 pages in it..
    1-------2------3
    where 1-----> login page
    2----->report
    3----->forms
    I deleted report page----2, and i also changed the target page in login page, so that soon after press the login page it will directly go to page 3...
    If im clicking that login page icon means it is working fine......it is going to page 3
    But if i clicked the "RUN APPLICATION"---the big icon of the application means, it is directing to the page 2----report
    which i was deleted, as it showing the error
    Error ERR-1016 Application "118" Page "1" not found (requested language="en
    Since i doesnt want to go to page 1 which is in deleted state, i need is soon after click that "RUN APPLICATION"---the big icon it has to go to page 8 directly like, when it is going to page 8 when i clicking the individual login page icon.......
    Thanks
    Harry..

    I don't know if I quite follow...Make sure you check all of you page processes and your page branches.

  • Error ERR-1016 Application "107" Page "0" not found (requested language="en

    I tried to clear cache to solve a "Not Data Found: error and now I am getting this error. I am going from bad to worst.
    I press a submit button to insert rows into a table which worked fine until I did the following:
    (1) used the "Return Key Into Item" on Auto Row Processing(DML) - to display the PK and to use later.
    (2) After which, I started getting ORA:01403: No Data Found - which I tracked to a caching problem.
    (3) Now when I clear cache, I am getting "Error ERR-1016 Application "107" Page "0" not found (requested language="en-us")"
    What is the deal?

    I solved the problem.
    In my attempt to figure out the "No Data Found Error" , clear cache and "Display the PK key on page 2", I changed the "Optional URL Redirect" on my SUBMIT button.
    I set the following options "Clear Cache, Set These Item, With These Items" which caused the page to redirect to page 0.
    I cleared the settings and the error when away!

  • How to go back a page on the web

    i have recently somehow deleted the arrows in the top left hand corner of a webpage that allows you to go back a page - how do you get them back??

    If you mean the back arrow in the Safari toolbar ...
    Select View/Customize Toolbar and then drag the arrow items back to that location before clicking Done

  • Drop list next to Forward and Back one page in not in current 5.0 or 4.0. Is this available some way, or do I have to go back to version 3?

    In version 3.x, there was a down arrow next to the Back and Forward one page lateral arrows that displayed recent pages accessed in order. This made it easy to locate a page several steps away. Now it is necessary to go to the History menu at the top bar to accomplish the same result. Can the drop menu in the current bar be reinserted?

    The drop-down marker on the Back/Forward button was removed. You can:
    *right-click the Back/Forward button for the drop-down
    *HOLD down left-click on the Back/Forward button for the drop-down
    *Install this extension to restore the drop-down marker to the Back/Forward button:
    **https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 8.3.0 (Very old. You may need to remove in Windows Control Panel > Add or Remove Programs)
    *Shockwave Flash 10.3 r181 ('''''May be current. In Add-ons > Plugins, the current version is 10.3.181.26''''')
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • My comment on your "contact us" page will not send.

    I'm not sure "sad" is the right word to describe my feelings at this moment. Yesterday I was notified there is a new version of Firefox available. I chose not to upgrade at that time. The next time I opened Firefox the new version downloaded automatically. Now every time I go to the Internet I get the "Hooray! Your Firefox is up to date." I love you but I just want to start with my home page of choice.
    (I attempted to send this on your contact page but it would not send)

    How would you like to us help you?

  • Send Request to servlet every time with the back button

    Hi,
    We are designing a web site in which all the pages are dynamic depending on what he does with his ordering system. Problem is when the uers request a change to the orders (eg deletes) the page is generated again. But the user can use the back button to see the deleted order.
    Question. Is there any way to send a request to the server everytime the back button is pressed.
    I have already added this to the top of my generated pages.
    response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setHeader("Expires" , "0");
    I tried both the POST and GET request too.
    Any help would be appreciated.
    Thanks.

    This is an issue of never ending discussions. If you did a search for similar topics in this forum, you'd encounter various opinions including examples of suggested solutions.
    You can also see various real life behaviors on various real web sites.
    Personally, I don't want to put too much effort in disabling the back button. The back button is a mere display of the previous page and not the state of the application. As a user I like websites which do not mess with the browsers back button and let me see what I did on the previous page.
    If the user tries to do something with this deleted order, you should be able to track that and display a suitable error message.
    BTW, those headers do not have any effect on browsers back button. They merely control caching of pages.

  • SPNego - J2ee did not send request for authentication

    Hi All,
    I have configured SPNego and completed all setup as per  documentation. When I use the browser  to access the portal, it is prompting for user id and password. If we manually enter the  id and password on AD, it works fine. Somehow not able connect to j2ee without prompting for id and password.
    To troubleshoot this, traced the http traffic using winshark and found that j2ee engine did not send any request for kerberos authentication.
    Is there way to check on the server side to make sure spnego is configured properly  and server is able to send kerberos authentication ?
    Appreciate your help !
    Thanks!

    Login to your Visual Admin, then go to -->Security Provider -->com.sun.security.jgss.accept -->Krb5LoginModule
    Add a Parameter isInitiator and Value false. Save it and take a bounce of J2EE.
    This should solve your login page problem Otherwise paste the default trace.
    You can also read my BLOG  : Common SPNEGO Implementation Issues
    Reward points if my suggestion was helpful -

  • How to go back one page to an open application (from Safari)?

    For example, if I have one of my applications open and I follow the link to open the products page, it launches Safari accordingly. However, when I have finished looking at that page, how do I close down Safari and go back to the last screen I was looking at in the application I had open?
    Can I do this without having to press the home button taking me back to the Home screen, re-opening the app I was using and finding the bit I was looking at before?

    no, that is the only way to do it.

  • How to get back lost photos or notes?

    My friend had never sunk his ipod touch 5 before so we sunk it to my laptop. When it was done we realized his photos and notes were gone from his ipod. His apps are on the laptop and ipod, but not the photos or notes. Is there anyway we can get the photos and notes back to his ipod? (icloud was not set up)

    With no backup to restore from:
    - If you used PhotoStream then try getting photos from your PhotoStream. See that topic of:
      iOS: Importing personal photos and videos from iOS devices to your computer
    - If you used iCloud then setting up the iPod with the same same iCloud account should bring the notes back.

  • How to go back a page in finder using gesture like OS Snow Leopard

    I used to be able to do "back" in finders, and safari or any other web brower by swipping 3 fingers to the left on the touch pad in OS Snow Leopard. Does anyone know how do I do it in Lion?

    Hi Thanks, but i just found the answer. It is as below.
    https://discussions.apple.com/message/15675137#15675137
    Thanks for your reply.

  • How to find out current PAGE NAME (not Page No) in SAPSCRiPT

    Hi,
    Is there anyway i can find the current page name in sapscripts which i can check in IF condition and accordingly perform some task. I searched and found out ITCTG-TDPAGE structure but its giving me error when i try to print in text element editor.
    Regards
    Amber

    Hi Amber,
    the otf[]-Table is located in a function group...
    Sry, forgot to add this.. that's the thing without a system available
    To solve your problem, I would work with the otf-data. I just can give you suggestion because the solution might be a bit bigger.
    Set yourself a unique string into the line you want to draw a box (perhaps @BOX1). Afterwards you can replace this variable with things you want to do. There is a lot possible with having the otf-data itself.
    Important is, that you do this before calling CLOSE_FORM
    Regards
    Florian
    BTW: OP are the first two unique chars in the line
    Here is a example-coding
    FIELD-SYMBOLS: <gt_otf> TYPE ssftotf,
       <ls_otf> TYPE itcoo.
    ASSIGN ('(SAPLSTXC)OTF[]') TO <gt_otf>.
       IF sy-subrc = 0 AND <gt_otf> IS ASSIGNED.
    LOOP AT <gt_otf> ASSIGNING <ls_otf>
         WHERE tdprintcom = 'ST'
         AND tdprintpar+7 = '@UL1'.
    ENDLOOP.
       ENDIF.

Maybe you are looking for

  • I Need A Clasical Report For  The Following Specification Plz

    With out Using any ALVS .                                                       SALESORDER REPORT TABLES : VBAK,                    VBAP,                     KNA1. INPUT FIELDS :  Sales Document  (RANGE)----   (vbak-vbeln)                            

  • How do I access my music on two different computers?

    I have the latest version of iTunes on my external hard drive, which I thought would make it easier to use iTunes on different computers. I have purchased quite a bit of music and have ripped several CDs, but I can't access any of it when I use my ex

  • Is Adobe Flex suitable to build a Multimedia Presentation?

    I am looking for some advice on the suitability of using Adobe Flex for building a Multimedia presentation system. I have watched numerous videos about Flex and even tried some tutorials but before I make a decision on Technologies for a project I am

  • Database performance: avg. DB time is high

    My system is ECC6, MSSQL 2005 64 bit. I got a ERA report from my solution manager and it showed that we had a performance problem. Our performance overview is red because of the database performance. The avg. DB time in ms is 2768890,3. It's very hig

  • Field-symbols working

    Hi Friends, I am facing some problems with regards to handling of Field-symbols. 1.  How can we do a move-corresponding like thing with a FIELD_SYMBOL. We have two Field-symbols and both are referring to lines in Internal tables. But there are some l