On Fri, Oct 15, 2010 at 8:03 AM, Subash Chaturanga <[email protected]> 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/
