• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Context,Servlet,Path info

 
sravanthi pulukuri
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii,
Given a path
'/books/Find/abcd?query=Java'

ContextPath ??
Servlet Path??
Path Info??

please let me know.
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well in the path that you have given, the context path would be /books. The other two depends on the servlet mapping. If I map my servlet to /Find/*, then the Servlet Path would be /Find and Path Info would be /abcd. But if I map my servlet to /Find/abcd, then the servlet path would be /Find/abcd, and there would be no path info...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic