wicket user wrote:
> 
> I need to get the HttpServletRequest  object in My Application class. In the
> WebPage we can get from 
> 
> ((HttpServletRequest) ((ServletWebRequest)
> getRequest()).getContainerRequest())
> 
> but its not working in Application class.

I'm new to Wicket, but it seems obvious that this is impossible.

The application object exists outside of resp. independent of any
servlet requests. Only Web pages and their components are
concercened with HTTP requests, and thus only they have access.

If you want to store or access something from a request in your
application object -- which is a singleton that's independent from
any request and any session, then there's probably something wrong
with your design.

        Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to