The form I submit to the server looks like this:
<form name="import"
action="/iasm/up?jsessionid=171522984155438517&984155773018" method="post"
enctype="multipart/form-data">
<input type="hidden" name="action" value="importContacts">
<input type="hidden" name="sourcetype" value="outlook_csv">
<input type="file" size="40" name="sourcefile" value="Browse...">
<INPUT TYPE=SUBMIT NAME="btnSubmit" VALUE="Import">
<INPUT TYPE=SUBMIT NAME="btnSubmit" VALUE="Cancel">
</form>
Then in my servlet I do something like this:
public void doPost(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException{
HttpSession session = req.getSession( false );
...
And "session" is NULL for this type of request which it shouldn't be.
As I mentioned this works well in other application servers like Weblogic.
bent
-----Original Message-----
From: Matthew L. Wright [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:25 PM
To: JRun-Talk
Subject: Re: Error in handling of multipart requests?
Now, how are you making this request? I've done app's like this as well and
I've never had this problem. Can you send me the snippet of code or a more
detailed description of how you are making the request?
Matt
Matthew L. Wright
Java Internet Programmer
Jupiter One
Web World Studios West Coast
www.jupiterone.com
(818) 763-2927
----- Original Message -----
From: "Bent Olsen" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 5:09 PM
Subject: Error in handling of multipart requests?
> Hi
>
> I have a page where users can upload a file to the application server.
> When doing this post request the content type is "multipart/form-data".
> My application is session based and I rely on the session to be alive for
> all requests. But when I make this request JRun doesn't recognize the
> current session (the "jsessionid" parameter IS set). I tried the same
thing
> on other application servers and it works just fine on them so it must be
a
> JRun problem. Is this a known bug and does anybody know a way to work
> around it?
>
> Thanks,
> Bent
>
> PS: I'm running JRun 3.0 sp2 with IIS 4 and JDK1.3 on WinNT
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists