This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting request from ActionContext class

 
Mahendran Aiyappan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic