• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletActionContext.getServletContext().getContextPath()

 
Meenatchi Sundar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
im new to servlets,jsp and struts framework.my Doubt is that in our project they are using the line ServletActionContext.getServletContext().getContextPath().What does it mean?Can anyone clear my doubts?
 
lokesh pattajoshi
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
ServletActionContext.getServletContext() returns ServletContext object so using the return object getContextPath() method has been called which will return the context path of your application.

Regards,
Lokesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic