incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luciano Resende <luckbr1...@gmail.com>
Subject Re: Pass HttpServletRequest parameter to JCRImageUploadServiceImpl.addPictureToAlbum() from a JS
Date Fri, 15 Oct 2010 16:54:52 GMT
On Fri, Oct 15, 2010 at 8:03 AM, Subash Chaturanga <subashsdm@gmail.com> wrote:
> Hi all,
>
> I want to use a method in the service called JCRImageUploadServiceImpl which
> requires HttpServletRequest instance as an input parameter.
>
> I exactly use this service from another service called PicasaSubscription
> which is called from upload.js. So, that means I have to pass
> the HttpServletRequest parameter from the upload.js . I Googled how to
> access request object from java script. But couldn't find an exact solution.
> How can I come up with a solution to this problem ?
>
>

Maybe you could clarify what you are trying to accomplish here. In
theory, these APIs should be invoked independent of being in a
"servlet"  environment and having a dependency on HttpServletRequest
might not be a good idea.

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Mime
View raw message