How to handle Back button, Browser Refresh problem at server side.

Hi Friends,
How to handle Back button, Browser Refresh problem at server side in java?.
I am able to trace that,
request.getHeader("ACCEPT") is returning value- */*
when the browser was refreshed and returning different MIME types
for all other actions from browser.
I have doubt, will the above solution works always for all servers,browsers?.
Please also specify any solution to handle back button at server side?.
Thanks in Advance.
Venkat..

I'm sorry I don't think tht's the right solution for
the above question....
We must be aware that whatever scripting methdologies
we either javascript/vbscript would executed @
client(browser) side not @ server side....
Dud If U get a good solution keep me updated.....
THANKS & REGARDS,
RAHULMy dear friend ...
the bad news is that u simply cant disable or add any listener to the back button of the browser.
When u hit the back button of ur browser the URL gets re-executed. So in case u have a JSP then the history.forward() is the best solution. [only if the page doesnt get expired similar to secure https sites]
Now dont say that user can have javascript disabled ...those users will have a pretty touch time browsing websites since javascripts r used extensively by almost all websites.
But in case u have an action.do or servlet call then u need to manage it using a session variable since the request will be sent to the server rather than client.
For multiple form submittion issues read the following article in javaworld...
Client vs. server solutions
Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.
In the client-only strategy, a flag is set on the first submission, and, from then on, the submit button is disabled based on this flag. While appropriate in some situations, this strategy is more or less browser dependent and not as dependable as server solutions.
For a server-based solution, the Synchronizer Token pattern (from Core J2EE Patterns) can be applied, which requires minimal contribution from the client side. The basic idea is to set a token in a session variable before returning a transactional page to the client. This page carries the token inside a hidden field. Upon submission, request processing first tests for the presence of a valid token in the request parameter by comparing it with the one registered in the session. If the token is valid, processing can continue normally, otherwise an alternate course of action is taken. After testing, the token resets to null to prevent subsequent submissions until a new token is saved in the session, which must be done at the appropriate time based on the desired application flow of control.
for more details refer :
http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
Hope u got the idea.
FYI I have been using both these ideas in my credit card payment gateway project. This concept has worked really well.

Similar Messages

  • How to handle Back button in IA06 BDC

    Hi all,
    I am calling IA06 inspection screen for an task list operation using BDC from my custom program. on this screen user can change the SAP data. if I save the task list then it's working fine.
    But I have one issue how to control back button, when user make any changes on this screen and click on back button because it calls all the previous screens which i skipped using BDC.
    Or for this particular functionality there is any Function module same as for Characterstics as "CLFM_OBJECT_CLASSIFICATION"
    Please advice.
    Thanks,
    Sanket Sethi

    Hi all,
    Please suggest if there is any function module/ API  to call Task list characteristic screen directly; same as for Task list classification screen using Function module CLAF_CLASSIFICATION_OF_OBJECTS.
    Thanks,
    Sanket Sethi

  • How to handle the F5 browser refresh

    Hi All,
    This may be a very silly question, but I am stuck on this and
    can not find a suitable solution, please advise.
    I have an application where the first screen is a login
    screen, when a user logs in he is redirected to a diferent view
    based on the users login permissions etc. The problem is whenever
    we hit the F5 browser button the wrapper file is refreshed and the
    embeddd swf (flex app) is reloaded reinitializing all the
    application variables etc. This takes the screen view back to the
    login screen although the user is logged.
    How can I handle this?
    I tried using shared objects but this would meen storing
    every value in shared object. Is there any easier way out? Any
    configuration change etc.
    Please help.
    Regards,
    Paromita

    You can handle security and authentication in your J2EE
    server with the web.xml configuration file under the exploded WAR
    directory \flex.war\WEB-INF if you use Flex Data Services,
    LiveCycle Data Services ES or Blaze DS.
    You specify what the login and error pages are. When you try
    and access the Flex wrapper in the browser, you will be redirected
    to the login page if you are not already logged in. If you are
    already logged in, there will be no redirection.
    Here is a sample <login-config> node in web.xml:
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/jblogin.jsp</form-login-page>
    <form-error-page>/jblogin-error.jsp</form-error-page>
    </form-login-config>
    </login-config>

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

  • I purchased a year of adobe cc today. when the screen came up to tell me it was processing my payment, not to hit the "back" button or refresh the page as it could take a few minutes. That was 7 hours ago. The help chat told me it would take 24 hours to p

    i purchased a year of adobe cc today. The screen came up to tell me it was processing my payment, not to hit the "back" button or refresh the page as it could take a few minutes. That was 7 hours ago. I contacted the help chat department and was told it would take 24 hours to process. Is this normal?? Why would the screen tell me "a few minutes" if it's actually 24 hours? Has anyone else had this problem? I am so tempted to just refresh the page and try my luck with my credit card canceling a second payment should it happen. THAT might be faster.

    Hi stephanie palmer,
    We would like to inform you that your order has been placed successfuly and you can strart using the subscription.
    Kindly follow the below mentioned link to install products.
    Creative Cloud Help | Download, install, update, or uninstall apps
    Kindly share the results once done.
    Thanks,
    Atul Saini

  • How to access a JS changed attribute on the server side?

    hi all;
    if i change an attribute on a custom component via java script on the client side.
    how can i access the changed value on the server side?
    in what method will i have the access to this changed field?
    thanks in advance.

    You can hardcode the ID of the component in the backingbean (or some propertiesfile) and use ViewRoot.findComponent(componentId). Using the binding is (much!) more elegant anyway.

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • How to Get the excel sheet formula from the server side into the j2me app?

    How to Get the excel sheet formula from the server side into the j2me application?
    Here the excel sheet is in server side.i want to do get the excel sheet values (only some part of the excel sheet based on some conditions) from server side into j2me.In j2me I want to done some client side validation based on the formula of excel sheet.Then i resend the new updated data to the server.
    But here deosn't know any mehtod to get the excel sheet formula from server side.So kindly help me to get the excel sheet formula from the server.
    So how to get the excel sheet formula frome the server side into j2me Application...
    Plz guide me to solve this issue...
    thanks & regards, Sivakumar.J

    You should not post a thread more than once. You've crossposted this question to another forum. I have deleted that one.

  • How to disable Back Button

    Hi
    i want to dactivate back button of my IE browser in JSp
    how it will happen
    Thanks

    How abt this?
    hi..hi
    <body onunload=fun(false)>
    <form>
    <Input type=submit onClick=fun("true") value=submit>
    </form>
    <script>
    function fun(what) {
    if(what) {
         //do actual submit;
    } else{
         alert("hey dont click that back button :-(  ");
         location.href="a.html";
    </script>
    </body>
    Save the above file as a.html and try..forgot to mention!!

  • How to reinstal back button

    my back button tab has dissapeared.
    How do i get it back.
    thanks

    Your back button where?  If it's on your browser, go to View>Customize Toolbar and drag a back button onto your toolbar.

  • Handling Back Button UIX ADF Application

    Hi,
    I have a similar situation, in which the user goes through 6 steps (UIX pages) on a registration process. If the user is in middle of the registration process and hits the back button, It shows the previous page with entered values, If he hits the submit button again, I'm getting an error "Row currency has changed". How to eliminate this error and is there a way to display a warning message and maintain the state of the application so that the user can continue with the current step of the registration process.
    Thanks a lot.

    you can edit the UIModel.xml file (that corresponds to your UIX file) and in that there is an option to disable the rowCurrency change check. It is called state-token validation.

  • How to handle radio-buttons in FB05  bdc????

    How to change Additional selections radio-button from none to Document numbers in CALL TRANSACTION BACKGROUND MODE..............................................
    Edited by: Raghavender Poosarla on Apr 8, 2008 10:32 AM

    I have BDC requirement of FB05 transaction... I am stuck at one point where this recordin is working in Foreground mode and not in Backgroung mode...The reason being there is a bit in which I am selecting a readio-button from value 'NONE' to 'Document numbers' WHICH IS HAPPENING IN FOREGROUND AND NOT IN BACKGROUND ....Can any one tell is there any special way for handling radio-buttons in recording of an transaction???

  • Handle back button in standard tcode .

    I am doing a BDC on standard tcode MEMASSPO which displays the 3rd screen directly of the tcode.
    Now problem is when I press the BACK button on this screen it takes me to the previous screen of the same tcode.
    My requirement is that it should take me to SAP Menu when i click the BACK button.
    I am pasting the BDC code below:
    START-OF-SELECTION.
      PERFORM bdc_dynpro      USING 'SAPMMSDL' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'MASSSCREEN-VARNAME'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TAB2'.
      PERFORM bdc_dynpro      USING 'SAPMMSDL' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'MASSSCREEN-VARNAME'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=FIND'.
      PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'SVALD-VALUE(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=FURT'.
      PERFORM bdc_field       USING 'SVALD-VALUE(01)'
                                    'ELIKZ'.
      PERFORM bdc_dynpro      USING 'SAPMMSDL' '0200'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=NEXT'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'MASSFVIEW-FIELDTEXT(02)'.
      PERFORM bdc_field       USING 'MASSFVIEW-CHECKBOX(01)'
                                    'X'.
      PERFORM bdc_field       USING 'MASSFVIEW-CHECKBOX(02)'
                                    'X'.
      PERFORM bdc_dynpro      USING 'SAPLMSMT' '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'NONEXT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=OK'.
      PERFORM bdc_dynpro      USING 'SAPLMASS_SEL_DIALOG' '0100'.
      CALL TRANSACTION 'MEMASSPO' USING bdcdata MODE 'E'.
    Please help me.......

    Hi,
    You can do it by appending (at the end of the BDC data) the exit actions when the screen X (the one you get after the BACK button has been pressed) is reached.
    As you run the BDC with mode 'E', it will stop the BDC data when SAP sees that screen X from the BDC data is not the screen currently displayed. Then, if the user displays later the screen X, SAP continues to execute the BDC data from screen X.
    This topic is shortly described here: http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-IsitpossibletosimulateANDSKIPFIRSTSCREENusingBDC%3F
    Sandra

  • FF 4.0 Back Button&Stop/Refresh need HELP!!

    It's oh so nice to complicate things with multiplicities of functions. Please delay the History function and let the Back button be a Back button, make it One Second so that it stops accidentally occurring.
    Make the Back button larger, make it a Square with rounded corners.
    Holy burnt toast, where did the Refresh button and the Stop button go??? Make them obvious and Move to the left of the url field.
    So what was it that is improved in FF 4.0?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • IDVD'08: how to make back button, video chapters and stretch pictures?

    Hi!
    I am new to iDVD'08 so I have 4 questions:
    1) In main menu I created a submenu called "video". It opens new screen with a list of videos. I want to have a back button on this screen too. It should return to a main menu. How can I make it?
    2) I have one big movie in iMovie'08 and want to burn it in iDVD'08 with chapters. So that different events in this big movie could be easily selected. I dont want to crop with big movie into pieces in iMovie. So how can I create such a buttons that point to different parts of movie?
    3) All that dropzones and buttons with preview are fantastic... But! How can I tune photo assigned to them? You know that picture tuning dialog: when you select photo and then can zoom in/out and move photo. Where such a dialog in iDVD?
    4) If I create a button with preview (for example, with a shape of heart) for submenu than folder icon is displayed in that preview. Hoe to place photo or movie just on a preview zone of such button?

    Q: I was curious is there a PRO analog of iMovie and iDVD like Aperture comparing to iPhoto.
    A: Your only options of apple video editing software (with the exception of QT Pro) are as follows:
    1. iMovie 7 (consumer grade video editing software)
    2. iMovie 6 (Free Download from apple's web site assuming you own iLife'08)
    http://support.apple.com/downloads/iMovieHD6
    Also consumer grade however this software is actually better for adding custom chapter markers, exporting back to the camcorder when needed, working with a Timeline, etc.
    3. FCE (I consider this app as pro-sumer software mainly because it's better than iMovie and very much like FCP; with the exception that it cannot be used to open existing FCP projects. That can only be done with apple's FCS 2)
    4. FCP (part of FCS 2) Apple's Professional / High end Video editing software.
    Message was edited by: SDMacuser

Maybe you are looking for

  • APEX validations in updateable reports built on a PL/SQL query

    Sorry if the question is not clear (english is not my mother language) or if the answer already exists on the forum (I have not been able to find it). I build a report on a PL/SQL function query. In this PL/SQL query i use apex_item.checkboxes or tex

  • Using XQuery Transformations

    Hi, I am new to OSB and have been trying my hand creating XQuery transformations. I have been getting the following error while testing the proxy service:           (receiving request) Initial Message Context *          added $body* *     <soapenv:Bo

  • New Configuration Editor

    Hi, Just wanted to know is the new configuration editor is available in Netweaver 7.0. We are currently on basis SP 16. For SAP delivered demo configurations we can see the data just like the configuration editor as explained in Mentor hands on sessi

  • Startup hangs at systemd-fsck [solved]

    Here is a screenshot of where the machine hangs when starting (this is within VirtualBox, Win7 host and an Arch guest)-->  http://i.imgur.com/4KPLmY8.png Not sure how to troubleshoot this, the `Fallback initramfs` has the same issue. Last edited by r

  • My Music on N97

    I have nokia N97 model but I cannot access and use the My Music section on Nokia Music. It says connect your mobile or MTP compatible device to your PC using a compatible USB cable, but it was already connected and I already selected the Media trasnf