my dog learned polymorphism
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting request from ActionContext class" Watch "Getting request from ActionContext class" New topic

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: 138
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:
subject: Getting request from ActionContext class
It's not a secret anymore!