Re: Re: How to send excel files

Herve Tchepannou <[email protected]> Thu, 20 Nov 2003 19:25:47 -0500
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
I ended up doing this

public class MyServlet extends jPublishServlet
{
...
protected void doGet( request, response ) throws ServletException, 
{
   String path = request.requestURI;
   if ( path.endsWith( "/stream/file.xls" ) )
   {
      ... stream here
   }
   else
   {
      super.doGet( request, response );
   }
} // end doGet()
}  // end class


its not the most elegant way, but it works.



> I just wanted to mention that the MultipartRequest
> class from com.oreilly.servlet might be useful
> as well:
> 
> http://servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html
> 
> Hope that helps,
> 
> James
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Jpublish-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jpublish-developer



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/