Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher.include throwing NullPointerException

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

I am having a JSP file in which i am doing



I am geting this value Before Including The servlet printed but after that it throws me a NullPOinterException at rd.include(request,response) .Please let me the reason why this is happening ??

Thank you.
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if /MyServlet does not exist as a mapping, the RequestDispatcher will be null.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This exists i have mentioned this in web.xml .

Any suggestions please .
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the corresponding web.xml code ?
 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems to be issue within the configuration file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic