Sohaila Roberts wrote:
>
> Hi, ok i don't get an error anymore (thank you to those who helped me with
> that). I removed the ObjectOutputStream from my code, but now my servlet
> doesnt seems to not be run even tho a connection to is is established.
> (The servletrunner thing where it says the servletname: init thing doesnt
> happen, which is why i assume its not run)
>
If URL its Ok, It should!


> public void downloadFile(UserData data) throws Exception
> {
...
>         out.flush();
>         out.close();
> }

I think, you should read the result of the servet
(the content the servlet wrote).

>
> public void doPost(HttpServletRequest req, HttpServletResponse resp)
>         throws ServletException, IOException
> {
...
>                 out.println("Content-Base: /tmp/"+data.getFileName());
>             }

And I supose, later you will send the file contents through
the servlet response.

Damien

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to