Solved

How to prevent Struts <form> appening JSessionid

Posted on 2004-10-27
307 Views
Last Modified: 2012-06-21
Hello,
My struts application generates an HTML form similar to the following;

<form name="reportForm" method="post" action="/access/report.do;jsessionid=5DCF3E28211E40A1DEF37CC5A00DBCA9">
   ... form elements ...
</form>

I have a two-part question:  what is the JSession id variable that gets appended to the action URL - my best guess is that its a unique UUID that the server uses for something or other?
Is it absolutely essential?  can't this Id be stored invisibly by the client browser?
I'd like to remove it if this won't disrupt the operation of my forms...

thx.
0
Question by:blackfrancis75
    3 Comments
     
    LVL 92

    Accepted Solution

    by:
    its the session id.
    its used to track the session if the browser does not have cookies enabled.
    0
     
    LVL 5

    Author Comment

    by:blackfrancis75
    thanks, I have gotten rid of the JSessionId by using a plain HTML <form> element for the form in question.
    I guess by doing this i'm sacrificing support for non-cookie enabled browsers...?
    0
     
    LVL 92

    Expert Comment

    by:objects
    thats right, from the server perspective every request will be from a different session.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now