aspose file tools*
The moose likes Struts and the fly likes Getting request from ActionContext class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting request from ActionContext class" Watch "Getting request from ActionContext class" New topic
Author

Getting request from ActionContext class

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hi guys,

I have a doubt on how to get the HttpServletRequest object from ActionContext object. I tried in the following way.But what I need to give in the get method argument which should be a key.




Please give me your comments
Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
I think you should be able to use getApplication() method of action context.

If that does not work the try this key
StrutsStatics.SERVLET_CONTEXT. probably it shud work


Paras Jain
SCJP 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting request from ActionContext class
 
Similar Threads
Dumb Interfaces Question
Get the exception object into Interceptor
ActionInvocation.getAction() method
Setting request parameter from interceptor and accessing in ActionClass
interceptor not working in struts 2