Session is being lost between GET and POST

My application is being developed in Tomcat 4.1.18.
I have a servlet that acts as a Controller and JSP's that make up the View. Basically, the session gets lost in the following manner:
The application's web.xml file is set with Authentication method of Unspecified. Basically, it's not a high security application, we just need to make sure that the user maintains a session throughout the application.
User is presented with a page (login.jsp). They present their credentials. The controller does an include (RequestDispatcher.include) on a jsp (this jsp simply does a setProperty *) to fill the bean. Then, the controller passes control (through RequestDispatcher.forward) to the Action servlet. The Action does some processing and forwards to the next destination. Next, the user clicks on a link (GET) (this causes the URL to be rewritten with the correct session ID). In this particular instance, the user is presented with a form to fill out. The user fills out the form and it POSTS to the controller. At this point, the controller attempts to access the session and it is lost!
Frustrating. Please feel free to email at [email protected] Thanks.

I just tried encoding the FORM ACTION and no dice. I'm pretty new to JSP's so I'm wondering if its something stupid that I'm doing (or not). I've never had this problem using straight servlets before.
It would be hard for me to justify getting rid of the JSP's and going with a straight servlet solution.
I'm also wondering if my Authentication:Unspecified in the web.xml file has anything to do with my current troubles.

Similar Messages

  • Session variable being lost between parent and include file

    I am running into the following scenario: Page 1 includes page 2, on both pages a session variable is returned to the screen. On occasions, page 2 throws an error on the session variable even though it was successfully called on page 1.
    It only happens occassionally, and is very difficult to recreate in order to debug it in realtime. Has anyone run into something like this before? Thanks!

    semi star gazer wrote:
    I am running into the following scenario: Page 1 includes page 2, on both pages a session variable is returned to the screen. On occasions, page 2 throws an error on the session variable even though it was successfully called on page 1.
    It only happens occassionally, and is very difficult to recreate in order to debug it in realtime. Has anyone run into something like this before? Thanks!
    I suspect it has less to do with page-inclusion, more to do with the code on page 2. Suppose, instead of using cfinclude, you had copied the code from page 2 into page 1, and made 1 page of it. Then the error would still have occurred. That's at least my theory.
    Have a look at how the code in page 2 handles the session. There is bound to be something not quite right about it. What kind of error do you get anyway?
    Runtime debugging can be as simple as this:
    <cftry>
    <cfinclude template="page2.cfm">
    <cfcatch type="any">
    <cfdump var="#cfcatch#"><cfabort>
    </cfcatch>
    <cftry>

  • Problems with effects being lost between motion and final cut?

    Hi I have an older version of motion, I am editing a video for my course and I have made some motion graphics with some blurs and fades etc (just this kids of effect, nothing else), when they are imported into final cut they disapear all i have is static text or graphics that crawl across the screen...
    Is this a bug?
    If I let software update do its job would these problems go away.
    Just so you know Final cut 5.1.4 and Motion 2.0.1
    thanks in advance if anyone can help.
    Matt

    Great fix....I started a compression to NTSC and it should be done in 3 hours, I will then boot up FCP, chose a 1 minute clip...follow your directions to the T. and compare the results....I did have this solved when I used NTSC 4:3 before; however, when I chose the menu with the mpeg2 codec, I thought that it would be faster....

  • Hot to Make HTTPS GET and POST calls from ExtendScript

    We are currently porting our ActionScript code to ExtendScript (JavaScript).
    We performed HTTPS GET and POST calls from ActionScript with no problem. I can find no way to make HTTPS calls from ExtendScript. We tried jQuery, but after hours of work we can't get the ExtendScript engine to work with it - even a very, very old version of jQuery.
    What do I do?
    TIA,
    mlavie

    Adobe needs a "Want Answers" button like Quora has because I would press that button on this post.

  • Difference between GET and URL Rewriting in Servlets

    What is the difference between GET and URL Rewriting in Servlets?.Please illustrate with an example.

    Thanks for your reply gimbal.
    GET appends query string at the end of the URL. URL rewriting also does the same thing. It also appends query string right?. Then what is the difference between two. I have this question in my mind for long time.To my surprise an interviewer asked this question in an interview also.

  • HTTPService - GET and POST in Flex

    I'm sending JSON data to a PHP script on the server, and I'm a bit new to the server side stuff so I'm hoping you all can answer a few questions.
    1) I thought using POST was more secure than GET, as GET sends parameters with the URL, but when I send by post, spaces are replaced with %20, so is my data really being sent by POST, or GET?
    2) I thought I had heard that under certain conditions you might send data by POST, but due to a bug Flex actually sends the data by GET. What are the conditions under which this happens?
    3) How can I send usernames and passwords using HTTPS in Flex using HTTPService. I assume I should use HTTPS as it is supposed to be secure.
    4) I've been messing around with PHP to process the data on the server, but quite frankly, working with PHP seems really difficult. I get the data, a PHP print says its an object, but object notataion ->  => does not seem to work. I've used PHP methods to get the object "keys", and also done a little with processing PHP arrays, but it still seems like PHP does not make it easy on you. Anything better for more easily transferring data securely between Flex and MySQL?
    Thanks very much in advance!
    Greg

    Hi Greg,
    What build of Flex are you using?
    1) When using HTTPS the GET URL would also be encrypted, but once decrypted on the server the URL might be logged so it's suggested to not use GET for transmitting credentials.
    In 3.x, the default contentType is application/x-www-form-urlencoded - but what happens to your data depends on the type of the params passed into HTTPService.send(). Are you constructing a JSON request as a String?
    BTW, did you try to set a contentType? I looked at the 3.x SDK source in SVN and the HTTPService contentType property still has metadata which provides code insight in the IDE but it also restricts the values of . When toString() is called on this XML node the root node is unwrapped and the empty string content returned. To avoid this toXMLString() can be called on the XML node to get the entire XML representation.
    3) Load your SWF via HTTPS and use also HTTPS to send your credentials to the server and establish a session. If you tried to use a Basic Auth challenge you'd have to rely on the browser authentication dialog as you can no longer preauthenticate using an "Authorization" header as it is on the list of headers not allowed by flash.net.URLLoader. See the docs for URLRequestHeader used to configure headers with URLLoader:
    http://livedocs.adobe.com/flex/3/langref/flash/net/URLRequestHeader.html
    As for how to send custom credentials... I think if you can solve your issue in 1) then the rest is up to what you want to do on the server. There should be lots of PHP login examples out there too. As a best practice try to delete / null out credentials variables when they're no longer in use on the client or server. Even though you're using HTTPS, consider additionally Base-64 encoding the credentials (for example, you could copy the format of the HTTPS Authorization header with a single "username:password" string) to obscure them in the event that a clear text version of the request is logged, or viewed in a debugger, etc.
    Pete

  • Can't restore previous session (greyed out); lost all tabs and groups

    I've had a similar problem with FireFox version 30 as found in the following question: https://support.mozilla.org/en-US/questions/997956?esab=a&as=aaq
    I lost all my tabs including those in two groups (maybe 100 tabs) that I'd been keeping for a couple of years and in some cases much longer. Very occasionally I'll get the "oops this is embarrassing" message from FF and when I click on the Restore Previous Session button they reappear.
    What happened this time is that when booting my computer (Windows 7), Adobe Flash wanted to download an update, and instead of waiting for the boot to finish as I normally would, I clicked on the Adobe Flash Download Update button. It then opened FF and hung, so I eventually used Task Manager to end FF. After the computer finished booting, when I opened FF it had no open tabs or groups, and the Restore Previous Session option (and each of the other options in that grouping in the History menu) was greyed.
    When investigating, I find I do have the sessionstore.js and sessionstore.bak files from yesterday (each about 4.5 mb), but I don't know how to access them because the Restore Previous Session option is greyed.

    Awesome. And maybe back up your sessionstore.js and sessionstore.bak files somewhere outside of your Firefox settings folder in case you need them for a future recovery. (That would involve copying them back to your active profile folder while Firefox is closed so it finds them when it starts back up again.)

  • Difference between Pre and Post Incrementing a variable

    I have a problem understanding the nuances between i++ and ++i.
    I have run several loops and changed the position of the "++". I noticed that sometimes the out put differs and sometimes the output remains the same.
    Is there a rule of thumb as to whether a variable show be post or pre incremented?
    Thanks

    Thank you all.
    After I asked the question, I did a little research and found this (from JGuru shortcourse):
    Note that x++ and ++x are equivalent in standalone contexts where the only task is to increment a variable by one,that is, contexts where the ultimate evaluation is ignored:
    int x = 4;
    x++; // same effect as ++x
    System.out.println("x = " + x);
    This code produces the output:
    x = 5;
    The next part after this is:
    In the following context, the placement of the increment operator is important:
    int x = 4;
    int y = x++;
    int z = ++x;
    System.out.println(
    "x = " + x + " y = " + y + " z = " + z);
    This code produces the output:
    x = 6 y = 4 z = 6
    ======================================================================
    I thought the out put would be x = 4, y = 6, z = 4.
    I totally lost! How do I interpet this correctly?

  • Connection lost between SA520 and WAP200

    Hi guys!
    I have a problem with the connection between a SA520 and a WAP200. Following scenario exists.
    SA520:
    two VLANs configured with following settings:
    VLAN1: 192.168.167.1/24
    VLAN2: 192.168.2.1/24
    VLAN1 is for a dedicated network for some private computers connected to port one to four of the SA520
    VLAN2 is for guests and bound to the optinal port of the SA520.
    inter VLAN communication from VLAN1 to VLAN2 is activated.
    One WAP200 is directly connected via ethernet cable to the optional port of the SA520 with following IP: 192.168.2.240/24. Two further WAP200 are existent and repeating the signal to increase the range of the W-LAN.
    Now, if I ping from a computer within VLAN1 to the IP of the WAP200 (192.168.2.240) I get replies from that device. But after some amount of pings the connection between the two devices will be lost (no replies), and after 4 to 10 seconds the connection will be restored again. The weird thing is that I wasn't able to discover a reproducible scenario to hang the connection. Some time the connection between the two devices lives for ten minutes and some times it will break down after 30 seconds.
    Does anybody have a hot tip where the fault for this behavior can be?
    Thanks in advance and best regards

    The Connector 1.0 spec does not provide any API's for testing a connection. The 1.0 RA's dont provide any testing capabilities to allow the container to do so. Even if some 1.0 RA's provide such capabilities, the container cannot rely on these non-standard features. So the container cannot really gaurantee that the connection handed to the application is good. There is no way to know unless the application uses it. The Connector 1.5 specification provides API's for test connections.

  • How to Create simple WCF/REST (JOSN,get and post) and deploy to Sharepoint 2013 Server.

    HI All,
       I wan to create a simple WCF/REST service and deployed to SharePoint server , i have created some sample svc file and put in to _vti_bin folder using SharePoint solution using vs 2013 but its not accessible from IIS its always asking the Widows
    Authentcation .
    however my exact requirement is custom service should be accessible without asking the authentication like _vti_bin/Listdata.svc is there any way to do like this ? 
    my reference:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    http://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx
    http://dotnetmentors.com/wcf/wcf-rest-service-to-get-or-post-json-data-and-retrieve-json-data-with-datacontract.aspx
    http://stevenhollidge.blogspot.in/2011/09/wcfwebapi-rest-json-services.html
    Thanks
    SujilKumar
    Software developer

    Hi Sujil
    Greetings. pls check this link
    http://social.technet.microsoft.com/wiki/contents/articles/24194.sharepoint-2013-create-a-custom-wcf-rest-service-hosted-in-sharepoint-and-deployed-in-a-wsp.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • HotSynch Connection gets lost between TE2 and Windows Vista

    I'm trying to hotsync (by bluetooth) between my Tungsten E2 and Windows Vista. I got them speaking to each other, but the hotsync starts and never gets past the Calendar. The laptop looks like it's still running, but the TE2 hotsynch log says the connection was lost.
    Is there a way to keep them connected long enough to sync?
    The TE2 is running Palm OS Garnet v. 5.4.7 and HotSync v. 5.0P
    The laptop is running Windows Vista 7 64 bit, HotSync Manager 7.0.2 and Palm Desktop 6.2.2.
    Thanks!
    Post relates to: Tungsten E2

    Oh, yeah, one more thing..the hotsync works fine by USB cable on the desktop PC running Windows XP, so I don't think there's any corrupted databases on the TE2 (because if there was, then the USB cable hotsync wouldn't work)

  • Messages get lost between IE and AE (IDoc to SOAP - Async)

    Dear Experts,
    in a IDoc to SOAP (Async) scenario a message was not transferred. I could not see any error message in RWB or ABAP Monitoring. When I enter RWB, the column engine is "Integration Engine" and the status is "Successful". At the same time other message with the same message interface were transmitted and they have engine "All" and status "Successful".
    Why was this message not passed on to Adapter Engine? How can I restart the processing, so that the message is transfered?
    Best regards,
    David

    Thank you for your answers:
    @ Divyesh:
    I can't resend the message. It does not have an error status. It says "Successful", although it only can be seen in Integration Engine, not Adapter Engine. There are not SM58 errors.
    @ Krish:
    In ABAP Monitoring all steps were performed as expected. Before and after this message some other messages with the same message interface were transmitted and they are visible in ABAP Monitoring, Inegration Engine and Adpater Engine.
    @Hareenkumar:
    In SAP everything looks like expected.
    The only difference between this message and other messages sent at the same time (which were transmitted correctly) is that in RWB Message Monitoring (Component: Integration Server) the Engine is "Integration Engine" instead of "All". And the message is not visible when you select for component "Adapter Engine".
    Do you have another idea?
    Thanks in advance,
    David

  • After update, Photoshop CC 2014 crashes just after launching - a whole day lost between forums and support

    Here in France, it's getting late, 9.45 PM, that is 12 hours after the first crash of Photoshop CC 2014 on my Mac OS 10.9.4.
    Nothing changed on my computer, excepted the PhCC14 update.
    Then I launched the app and it crashed right after displaying the workframe.
    I tried and tried so many things :
    Ashutosh.Nigam suggested me in this forum to change the permissions to SLStore & SLCache Folder, but it did not work.
    Ali from french Adobe support told me to delete my Settings files, but it was not enough.
    A girl with no name from the same team told me to update my graphics card driver, but, you know, I run the latest Mac OS X version and everything is updated, mademoiselle.
    Stephane sent me a link to a huge page of things to do :
    -  Troubleshoot account-specific fonts, but there wasn't any corrupted font
    - Delete account-specific Adobe cache files but... guess what...
    - Troubleshoot account-specific login items but... yes, that's it, I can see you understand me
    - Reset the access settings on the user account's Library folder... oh god, that was fun, I used the Terminal and sudo commands
    - I checked the disk and repaired all permissions...
    I did all of these things because when I tried to open PhCC in an other admin session, it worked. So it could  be an incompatibility between my session and PhCC. But, but, but, when I tried again to lauch the app in the second session, it worked fine but refused to quit. Ha ha ha.
    Last call to the french support : "Désolé Monsieur, you didn't spend 2000 € for a specific help, but because you have lost a whole day of work, we will pay you back 2€. And no, Photoshop won't work anymore on your session. You have to move all your files to a new session."
    It's unfair ! The software was running gently on my session, Adobe change things and I have to break everything on my computer, move every config from one session to another with absolutely no warranty that it won't crash again.
    It's NOT what I pay Adobe CC  each month for.
    Very disappointed Jean-Luc

    Anyone know how to read a crash report? 
    I can print with Lightroom, there is nothing wrong with the printer, or the file.  But I want to print with Photoshop without a crash.  Besides, Lightroom doesn't give me access to all of my print settings.
    Hoping someone can help, I"m exasperated.....

  • Session variables being lost in IE7

    has anyone else experienced, heard of, or solved this issue?
    I have a web app thats been running fine for 5+ years and using session variables (i'm currently using CF8).
    When a user goes from page to page the session is carried with them so i know their login info. However, recently some users (and not all) have complained that after logging in fine (meaning the sessions variables are created) and go to another page off of the main one only to get a timeout issue. I've compared everything from IE settings to server settings, etc. but found no differences. It's like once they navigate to another page in the app the sessions are not carried to the next page.
    My timeout code is written so that if the session variables that are created at login are not present the message will show.
    Some users had to revert back to IE6 and it worked fine. Is there something they did wrong with ther IE update or is there some sort of server hot fix for this?
    Hope someone can help... i'm baffled.

    That forum you posted is definitely my issue! However it still is unresolved and the users have yet to pinpoint the cause (just like me). I too firmly believe its due to an IE7 upgrade b/c that is when this happens.
    I've checked out the user cookies. I used this script and put it on my server and had the user try it:
    http://www.bennadel.com/blog/730-Testing-ColdFusion-Session-Cookie-Acceptance.htm
    The cookies are passing over to the next pages fine (this script showed a success on the user machines). But ye the sessions are lost in my app. the CFID and CFTOKEN are changing when the user clicks to go to another page after login.
    In fact I have the CF8 server monitor up and running and when someone logs in I can see the their session info under the MEMORY USAGE --> Sessions by memory usage.
    I'm finding that users with this issue can log in fine but the session never gets registered with the server?!? Their CFID and CFTOKEN is not showing as an active session and when they click to another page their CFID is always different than their original?
    Any thoughts?

  • IDoc Data Lost between ECC and MII Message Listener.

    We have recently experienced some network issues which caused the IDoc's to stop flowing outbound from ECC to MII Message Listener.  This happened 3 times during a network switch reconfiguration.  2 of the three occasions the MII Message listener had to be restarted on the MII server in order to get data to flow again.  Interestingly some of the IDocs that were generated during this outage time were processed by the message listener and some didn't.
    We are running MII 12.0 sp11 and ECC 6.0.  The ECC server and MII server are located in different geographic locations.
    When we look at the ECC system in WE05 we see only sucessful status for the IDoc messages saying the Data passed to port OK. 
    When we check the Message listener on the MII end there it only shows processed successfully.  There are no failed messages or messages without rules.
    Where can I check further to see the IDocs that really didn't make it to be processed by the Message Listener on the MII server?
    Also is it possible that these IDocs that got lost somewhere are still sitting on the ECC or MII servers somewhere where we can re-process them?
    And the Last question is, Why didn't the Message Listener handle the network issue automatically instead of needing to restart it?

    Hi Robert,
    Did SAP ever respond/resolve the ticket you created for this issue? Someone told me that this was a known issue, but I have yet to have it verified by SAP. They asked me to simulate the issue - but our non-prod systems are on a VM server with other systems. So I can't exactly start pulling network cables out - I did drop it from the network a few time while sending IDOCs down - but this failed to hang the processing of the IDOCs.
    We're hopefully going to MII 14/15 next year - but the business is keen to resolve this issue as it has impacted production a few times. The MII sites are in some remote regions and I don't think we can really improve the WAN links much further.
    @Christian - thanks for the link, we don't really have an issue with IDOC's not being received, its just the message processing just hangs and we either need to restarted the services or sometimes the system.

Maybe you are looking for

  • Extended notification by email problems with htmlb:link

    Hi, Have problem with link using <htmlb:link id     ="action" reference= "<%= LINK_URL %>" > everything is fine till the END link is shown OK <a class="sapLnk" id="action" href="link" target="blank"> etc. but when i receive email link is with additio

  • Remove Task card in Workspace and Terminate a process

    Hi all, We have a long-lived process that goes through an orchestration of approvers. When I try to terminate the process through the Admin UI console the process just remains in TERMINATING status and never gets terminated. The task card also remain

  • Download multiple files without browse

    Hi, I need to automate a download process in an app I am currently writing. I need to take a bunch of files from a folder on my server ( http://www.somesite.com/folder/) and download them to a specific location on my local disk (C:\server_files\). Be

  • How to force page to scroll when collapsible panel is opened by link

    Hi, I have seen similiar questions asked but not answered, so maybe there isn't away to do this. I have numerous collapsible panels going all the way down the page, actually I just formed a Collapsible Panel Group. They are opened by a list of links

  • ITunes went blank after restoring iPhone

    anyong know how to fix this problem?