How to make session invalid when user refresh the page?

How to make session invalid when user refresh the page?

I have a <form> in a JSP file that has another JSP file as an action.
I have main.jsp that has <form> with action.jsp file as an action.
Now when I submit the <form>, request forwarded to action.jsp and it will take the action. But this file is taking so long, hence user refresh the page again and again, hence duplicate request processing is occuring.
I want to prevent this.

Similar Messages

  • How to make an anchor link also refresh the page?

    I'm trying some new things with some widgets (compositions) and I'd like to make certain anchor links also refresh my page (on the mobile version of my website). I tried putting the entire link in instead of just selecting my anchor (.com/mypage#myanchor) but that only works the first time (maybe because the user already is on .com/mypage#myanchor ?)
    A bit of Googling found me a way to do this:
    window.location.href = 'mypagetoreload.htm#jumptosection1';
    window.location.reload(true);
    but I don't know how to use this in Muse..
    Thanks in advance!

    Im experimenting with some different versions of a mobile version of my website. In this one I'm trying to put all content (everything except the header and footer) in a composition slideshow. I made the triggers invisible and placed them over my menu buttons in the header, so that the content scrolls horizontally. I like this because people only need to load 1 page (my mobile version only has about 6 pages) and they can also swipe between content, like my product pages.
    This all worked out fine, but now every "page" is the same length (because in reality its just one page with a slideshow on it). So now I had to add content to some pages (like home and about us) to kinda fill all space (the pages with my products on it have alot more content). I decided to put pages together, like put "about us" on the same page as "home". I made an anchor and linked to that anchor with my "about us" menu button. But, as "about us" is on slide 1 with home, the slideshow must also reset when people click it (otherwise you would only scroll down on the wrong slide). If I make my website refresh the slideshow resets (it would also work if i open the link in a new window, but that'd be very annoying).
    English isn't my first language, please excuse my bad grammer.
    Thanks in advance!

  • How can I make the spry accordion remember the panel open when I refresh the page or jump to a new page?

    How can I make the spry accordion remember the panel open
    when I refresh the page or jump to a new page?
    I am using the accordion feature on all my pages as a
    navigation aid. It has three panels. When you refresh the page the
    panel goes back to the default pane... Is there a way of
    controlling this so that the browser can remember the pane that is
    open (say set a variable, cookie, other?)

    Look for "Set the default open panel" on the following page:
    http://labs.adobe.com/technologies/spry/articles/accordion_overview/index.html
    Keep in mind you would need to change that bit of code on
    every page. The only way to do it more dynamically would be to
    include a custom javascript or PHP/ASP style script in order to
    change the value.

  • Safari 6.1 freezes and then can't connect to the server when I refresh the page

    Hi everyone.
    I have a Mid 2010 13" Macbook. It is running the following..
    Processor: 2.4 GHz Intel Core 2 Duo
    Memory: 4GB 1067 MHz DDR3
    Graphics NVIDIA GeForce 320M 256 MB
    Software OS X 10.8.5 (12F45)
    Hard Drive: 320GB
    Recently Safari has been acting up. Everything will be working fine but then it will freeze and when I switch to another tab that tab will be white, as will all other tabs when I switch to them. When I refresh the page it force refreshes all other pages but on a lot of the pages (Facebook, Twitter, google, Gmail, mostly things with a password I think) it says that it can't make a secure connection to the server. I tried switching to Chrome and the same thing happened and then I switched to the Guest User and the same thing happened.
    It has also been telling me that I have no more space on the startup disk but I'm not sure how that can be the case. I currently have 272GB free of a 319GB hard drive so I'm not sure what the problem is here! When I restart the mac everything is fine again but I have noticed it is taking longer for the mac to start up now. I have repaired disk permissions, I have reset Safari and cleared the history. I have downloaded OmniDiskSweeper and it has told me that the highest usage is in Spotify caches and my Gmail folder. So I deleted the Spotify caches and deleted all my emails. I then tried to delete the mail folder in Finder but when I do it just builds itself back up again.
    When I used Disk Utility to verify the disk it found no issues.
    I tried to shut down and restart it to run the hardware test but it doesn't boot up, it just takes a lot longer to reach the log in screen.
    I don't know what else to try! Any help would be welcomed.

    Try this DNS server ..
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click OK.
    Quit and relaunch Safari to test.

  • When I load an index.html file, the page looks fine, but when I refresh, the page shrinks.

    I am using Dreamweaver. I open an index.html file in Firefox and it looks fine. When I make changes, and then refresh in Firefox, the page will shrink. If I close out Firefox and open the file in Firefox, it's fine until it's refreshed and then it shrinks again.
    The file has one background image that is 1024px by 768px. I made sure the browser was completely open and I have a 27 inch monitor, so there is no reason for it to shrink down.
    I've opened the same file in Chrome and Explorer and this doesn't happen.
    I've uninstalled and reinstalled Firefox hoping this would help, but it didn't.
    Suggestions on how to make this stop?

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages

  • My google calander won't let me add new events; my pandora won't load; and a youtube video pops up randomly on both these sights when I refresh the page.help!!

    These seem to be problems with firefox, but I am not computer savvy so I don't know for sure. I have cleared history, cache, cookies and rebooted the computer. Other users of the computer said it was acting funny but provided no details. Sometimes also a tab just randomly closes. Any help would be appreciated.
    Thanks!!

    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • How to make an item be remembered once the page is changed?

    Hi,
    For my school project I am trying to create a drag and drop product on Adobe Flash CS4 using Action Script 3.0.
    I have three keyframes:
    - The first one has tops to be dragged and dropped onto the model
    -The second one has skirts/trousers to be dragged and dropped onto the model
    -The third has shoes to be dragged and dropped onto the model
    But once the top has been dragged and droped and the next button is selected displaying the skirts/trousers, the top which has been dragged and dropped onto the model is no longer displayed.
    Does anyone know what coding I need to add to get each item of clothing to be remembered once it has been dragged and dropped onto the model, so it is visible on the following pages?
    Many Thanks

    Thank you very much for your response.
    I'm so sorry, this is probably a really silly question but how can I make the items of clothing hidden on the layers where I don't want them seen?
    I am also having real problems with my 'next' button in the second key frame.
    I am recieving two errors for this button and have tried everything that I can think of, so was wondering if you were able to have a look at my coding for this button and tell me if it is correct bearing in mind that the button is on the second keyframe but should take you to the third.
    The first error I am recieving is:
    'TypeError: Error #1010: A term is undefined and has no properties'
    for the line
    'femaleDragAndDropPage.femaleMenu.nextButtonBottoms.addEventListener(MouseEvent.CLICK, onNextButtonBottomsClick);'
    -The nextButtonBottoms is the button leading from the second to the third key frame-
    The second error I have is:
    'TypeError: Error #1034: Type Coercion failed: cannot convert NextButton@246159c1 to PinkNextButton.
    at flash.display::MovieClip/gotoAndStop()
    at Main/onNextButton3Click()'
    for the line
    'femaleDragAndDropPage.femaleMenu.gotoAndStop(2);'
    -This line is for my next button on the first keyframe which leads to the second one and only appears when it is selected-
    On the first keyframe, there is also a next button (with a different instance name) which leads to the second keyframe which works fine so I used the same coding for the next button leading from the second to third keyframe but changed the instance name. This is where I then recieved the errors so cannot view the rest of my pages which come after this one.
    Thank ypu so much for your help!

  • Cleanup the validation errors when refresh the page

    hi,
    I have registration page and I did apply some validation rules on each form field, when I start the application and try to get the validation errors, and i got validation error accordingly. Now when I refresh the page, the validations errors are not cleaning, is there any way to cleanup errors?
    those are fixed until we put correct values in the form fields?
    Waiting for reply....!
    thanks,
    Sumant K

    Hi Crystal,
    Based on the error message ”TASK ERROR:The file "C:\tempfile\data.xml" was not found. Please verify the file path and try again."”, we can infer that the issue is caused by the file path is incorrect.
    To troubleshoot this issue, please double-check the relevant file data.xml exists in the current server file path. And also make sure the current user or proxy account has required permissions to access the file and the folder that contains the file.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Newbie help - refreshing the page and validating?

    When entering a userID and password, how would I make the values in the textbox disappear when I refresh the page/press F5?
    Also how would I check the 2 textboxes in a jsp page, if their empty/null and if they are redirect them to that same page?
    Thanks in advance! =)

    bump

  • Firefox does not load the iframes until i refresh the page once i refresh the page it does work fine any idea y its so.....

    when i refresh the page all the details rellated to product is loading fine..the page contains two iframes with different src...the src for iframes is being provided from javascript

    Greasemonkey has a file which has metadata on your installed scripts. I remember looking at it once when there was a controversy about updates, but I don't know how to mine it for data.
    What happens if you exit Firefox and startup in your old profile and install GM 1.14 beta? Does that rescue your original setup?

  • When I place a post on facebook it disappears when I go back in to check on it. My friend told me to refresh the page but I don't know how to do that.

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/675115]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My post on facebook disappear. My friend told me to try refreshing the page but I don't see a refresh button. How can I do this?
    == This happened
    ==
    A few times a week
    == when i began posting on facebook
    ==
    == Troubleshooting information
    ==
    none
    == 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 Firefox/3.6.3 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-getplusplusadobe16249
    *nphpclipbook
    *DivX Web Player
    *Office Plugin for Netscape Navigator
    *Adobe Shockwave for Director Netscape plug-in, version 10.2
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Coupons, Inc. Coupon Printer DLL
    *Adobe PDF Plug-In For Firefox and Netscape
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *iTunes Detector Plug-in
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Some users have reported as many as 8 or 9 attempts were necessary before success.
    If the issue persists...
    Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • How to set session timeout per user

    Hi,
    Ho do I set the session timeout per User in the
    Application.cfm File??
    I tried using
    <cfif SESSION.UID EQ 1>
    <CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
    sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
    </cfelse>
    <CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
    sessiontimeout="#CreateTimeSpan(1,0,0,0)#">
    </cfif>
    But this didnt work because the cfapplication seems to have
    to be at the top before I call the variable SESSION.UID which
    I set on my login page..
    Someone know how to do this??
    Regards
    Martin

    Martin,
    Your code example cannot work because the "session" scope
    doesn't exist until your application scope is defined. So you have
    to handle this manually. Here's how you can get it done. First,
    define your application to the maximum sessiontimeout you want to
    have.
    <CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
    SESSIONTIMEOUT="#CreateTimeSpan(1,0,0,0)#">
    Then, I don't know how you are doing your login
    authentication but when you have authenticated the user, you need
    to define the userid and the most recent activity in the session.
    Also determine your timeout value based on the userid. See example:
    <CFIF IS_AUTHENTICATED>
    <CFSET session.user.uid = form.userid>
    <CFSET session.user.most_recent_activity = now()>
    <CFIF session.user.id eq 1>
    <CFSET session.user.timeout_mins = 20>
    <CFELSE>
    <CFSET session.user.timeout_mins = 1440>
    </CFIF>
    </CFIF>
    Now, all you have to do is check whether the user has been
    idle for too long and kill the session by purging all session
    variables. For example:
    <!--- if user id is defined, this means user is logged in
    --->
    <CFIF structKeyExists(session, "user") and
    structKeyExists(session.user, "id")>
    <!--- check if timeout has expired --->
    <CFIF datediff("n", session.user.most_recent_activity,
    now()) gt session.user.timeout_mins>
    <!--- timeout has expired, kill the session and log the
    user out --->
    <CFSET StructClear(session)>
    <!--- insert your logout code here --->
    <CFELSE>
    <!--- user hasn't timed out, so reset the most recent
    activity to now --->
    <CFSET session.user.most_recent_activity = now()>
    </CFIF>
    </CFIF>

  • How to make top level navigation not refresh

    Hello Guys,
    I have a question concerning on my External Facing Portal, my boss wants that when I click on a tab or a link in the Top Level Navigation , to load the content in the Content Area without refreshing the whole page, What I want is that when I click on a tab or link of the Top Level Navigation , the Top Level Navigation and the MasterHead not to refresh and that the content be loaded and refreshed only in the Content Area. The only way I know to do this is by making a frameset of my page and to make the masterhead and toplevel navigation a frame and the detalied navigation a frame and the content area a frame, and in the links to put the target property to the name of the content area frame, but I don't know if this is possible to do in the portal, I see that all is embedded and I don't know how to make a frameset like this in the portal.
    Any highlights to solve this will sure be appreciated.
    Thanks
    Rewarding points will be given.
    Luis

    Hi,
       When you are implementing External Facing Portal, i think you have used Light Framework Page.  In Light Framework Page, only one Framework has been used, so when you click on the top level navigation, the whole page will get refresh, so there is no otherway as of my knowledge.  If you use standard framework page in portal, it is possible to do (i.e. the content area only get refresh)  and the concept of your External Facing Portal is eliminated here.
    Regards,
    Venkatesh. K
    /* Points are Welcome */

  • Where the session begin when user login

    Hi all,
    Just want a detail understanding of where the session starts when user login in ATG application (handle login), and where the session ends (handlelogout)
    thanks and regards
    333

    Session management is completely application server related.
    ATG do not play any role in session management.
    Refer this doc to under how session is created and managed.
    http://docs.oracle.com/cd/E19644-01/817-5451/dwsessn.html
    Peace
    Shaik

  • How can I make signature darker when I print the report?

    I need to put my manager's signature on the report. The signature is too light, How can I make it darker when I print the report?
    I used file link and OLE, both did't make it.
    Thanks.

    No way to do it directly in the report. You need to work with signature image file using any graphic software to increase its contrast. The easiest probably would be to use Paintbrush and change the image to black-and-white, then save back as jpeg file.

Maybe you are looking for

  • How to boot to Windows XP from Mac Desktop

    Hi I have just installed Lepard/BootCamp/Windows XP and am wondering how to get to Windows from Mac when I'm logged on to Mac. I can access it via System Preferences but end up resetting my start up preferences to Windows in order to reboot from ther

  • Libclnysh.so.1.0 : cannot open shared object file..

    Hi, I was running Oracle for linux successfuly for about 2 weeks now.. until from yesterday, I am starting to recieve the following error when i run svrmgrl libclnysh.so.1.0 : cannot open shared object file : No such file or directory But, however sv

  • Malware issues

    A couple hours ago I received an alert from MalwareAntimalware telling me it had stopped a 'potentially dangerous program frm installing itself' on my Skype account. It gave me further information regarding program number, Type, Port, and Process. I

  • 8120 call list and email list resets

    I have a Pearl 8120 and the call list and email / SMS list keeps resetting.  It's fairly frustrating since I can't retain emails for long or return some calls. The software is up to date and I'm using Desktop 6 (just downloaded). Any tips would be ap

  • Cisco LMS 4.2 Appliance on VMware vSphere 4.0

    Hi all, I'm currently trying to install the Cisco LMS 4.2 Appliance on a VMware vSphere 4.0 environment. I'm following the http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/4.2/install/guide/instl.html#wp1689675 guide. I dow