• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access to HttpServlet inside the Action class.

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

what is the use of getting access to HttpServletRequest and using request.getParameter("attributename") inside the Action class of struts2 as all the data is passed through setters and geters only .


 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if you want request headers or want to know the client IP address, you'll need the request object for that...
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I did not thought of that ones
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic