I ran into this problem, too, that JRun's methods to get the HttpSession
from the request were failing with multipart/form-data that was POSTed.  The
jrunsessionid was in the request but JRunSessionContext didn't look for it
in this scenario.

To work around the problem I created a dummy session to get the
HttpSessionContext.  I used the jrunsessionid (which I got from the request)
to get the session from the context.  Then I got rid of the dummy session
(semi-pseudo code):

String sessionID = request.getStringParameter( "jrunsessionid" );
HttpSession dummySession = request.getSession( true );
HttpSessionContext sessionContext = dummySession.getSessionContext();
HttpSession httpSession = sessionContext.getSession( sessionID );
dummySession.invalidate(); 

Hope this helps.

Jane Lawrence

--- In [EMAIL PROTECTED], "Makarand" <[EMAIL PROTECTED]> wrote:
> Dear Friends,
> 
> I am using enctype="multipart/form-data" for the first form (one.jsp); I
am
> also doing URL rewriting in one.jsp to send accross the session and
storing
> the variable in the HttpSession using the method setAttribute() and then
> trying to retrieve the same in the second form (two.jsp) through
> HttpSession's getAttribute() method; but, I am not able to get the session
> id which I have set in the first page (one.jsp) when cookies are disabled.
> Could anyone help me out with this issue so that I can make some settings
so
> that I can get the session in the second form.
> 
> The two files I mentioned above are attached alongwith.
> 
> 
> Best regards,
> 
> Makarand.
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
> Archives: http://www.mail-archive.com/jrun-talk@h.../
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to