I want to upload files through Commons FIleUpload API. As Commons FileUpload API requires HttpServletRequest for uploading files (e.g. fileItemsList = servletFileUpload.parseRequest(httpServletRequest)). Parsing HttpServletRequest is the necessary step while uploading in Commons FileUpload.
I have got httpServletRequest from RequestCycle. e.g. ((ServletWebRequest) getRequest()).getHttpServletRequest() or ((WebRequest)requestCycle.getRequest()).getHttpServletRequest() but this request already being parsed automatically in RequestCycle, before reaching servletFileUpload.parseRequest(httpServletRequest). So, "Request is already been parsed..." exception occur. That's why i want to use Servlet's doGet(request, response) method for getting HttpServletRequest(without parsing). If not servlets, Is there any other way to handle FileUploading (through Apache Commons API) in wicket ? Thanks... ________________________________ From: Peter Thomas <[email protected]> To: [email protected] Sent: Tuesday, September 8, 2009 11:39:58 AM Subject: Re: Usage of Servlets in Wicket, How ? Refer this: http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html If that doesn't help you should briefly explain what your requirement is. There may be a better way to achieve it within Wicket instead of hacking around with servlets. On Tue, Sep 8, 2009 at 10:57 AM, FaRHaN <[email protected]> wrote: > but how can we call it from our wicket web page ? > > > > > ________________________________ > From: Jeremy Thomerson <[email protected]> > To: [email protected] > Sent: Tuesday, September 8, 2009 11:10:49 AM > Subject: Re: Usage of Servlets in Wicket, How ? > > servlets are totally separate from Wicket - write a servlet and add it to > your web.xml. See any servlet example on the web (non-Wicket related) for > assistance. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Mon, Sep 7, 2009 at 11:54 PM, FaRHaN <[email protected]> wrote: > > > Hi, > > > > Is there any example in Wicket that uses Servlets (doGet() & doPost()). I > > mean how can we configure Servlets in our wicket application and use > > doGet(request, response) & doPost(request, response) methods. I know > web.xml > > configuration for Servlets but how can we use doGet() & doPost() methods. > Do > > we need wicket:ids in Servlets ? > > Is there any reference for such type of example ? > > > > Thanks... > > > > > > > > > > > > >
