tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Billy Kantartzis <bi...@vknet.net>
Subject forwarding from a servlet after writing to disk
Date Tue, 02 Aug 2005 06:08:53 GMT
Hello every-one 
i am trying to have a servlet forward to a jsp page after using the jakarta.common.uploadc
utility to upload a file into tomcat. i have noticed the following behavior; if i request
the forward operarion without performing the upload function the forward is executed. if i
allow trhe file to be uploaded (ei writen to HD) the forward is not executed .
Bellow i am attaching the relevant lines of code 
do you have any sugestions how i can perform this task ?
thank you 
in advance 
Billy 
----- start of code ---
  RequestDispatcher page = null;
// upload the file and return the filename for further use 
     String fn= appacheImpl(request, response);
      page = this.getServletContext().getRequestDispatcher(CONTINUE_FORM);
      request.setAttribute("zipFile",new String (fn));
          
      page.forward(request,response);
      log.info("****** CHECK POINT 1   ******");
      
    } catch (Exception fue) {
----- end of code ---

Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message