• 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