This page last changed on Jan 24, 2006 by david@randombits.org.

Cannot resolve external resource into attachment. How do I get access to the current request?

Within your plugin code, you can perform the following static call to get access to the HttpServletRequest object. This then in turn gives you access to the session etc.

HttpServletRequest request = ActionContext.getRequest();
Please note!
The request object may be null in some contexts, so always do a null-test before using the returned request.
Document generated by Confluence on Oct 06, 2009 00:31