aspose file tools*
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
Author

Please help me out.

Rohit Malhotra
Greenhorn

Joined: Jan 29, 2006
Posts: 21
Hi,

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 java.net.SocketException. 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
Rancher

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
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Please help me out.