File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Please help me out. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Please help me out.

Rohit Malhotra

Joined: Jan 29, 2006
Posts: 21

I am posting this question again because it hasnot be answered yet. Please help meout.

i am writing an application whcih allows Users to upload Fils onto the BEA Weblogic Server

My JSP is something like this

<form name="uploadForm" method="post" action="upload" enctype="multipart/form-data" onSubmit="return validate()">
<input type="submit" value="Update" name="Option">
<input type="submit" value="Upload" name="Option">
<input type="submit" value="Search" name="Option">
<input type="submit" value="Checkin" name="Option">
<input type="submit" value="Checkout" name="Option">
<input type="submit" value="Delete" name="Option"><br><br>
<input type="file" name="fileName"><br>
<input type="text" name="checkout"><br>
<input type="submit" value="CheckoutDirectory"><br>

And the Servlet that uploads file is :-

The problem i am facing here is that What do i use to transfer control from servlet to the JSP to allow more files for upload. If i use RequestDispatcher it fails when i try to checkout the File. If i use Response.sendRedirect("UserTask.jsp"); it fails with I am using BEA Weblogic Server. Please help me out.

[Edit by Dave - code tags added]
[ March 02, 2006: Message edited by: David O'Meara ]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

It fails with a SocketException, but you haven't told us if there is any other information with the exception.

How large are the files you are uploading? If they are large, have you tested with smaller ones?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please do not post the same question more than once. If you want more answers, you can clarify your question in the original post. If you feel you have posted in the wrong forum, ask a sheriff or bartender to move it for you. But please do not cross-post. It wastes everyone's time when multiple redundant conversations take place.
[ March 02, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Please help me out.
It's not a secret anymore!