Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling JSP within JBuilder servlet  RSS feed

MIke Deskis
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attempting to call a JSP file from within a servlet with
the following code within JBuilder and Tomcat:
getServletContext().getRequestDispatcher("jsp1.jsp").forward(req, res);

I get a null exception pointer on the attempt to find the jsp1.jsp file via getRequestDispatcher. I know it needs to exist where the servlet can find it. Where does it need to be placed? There must be a path either in JBuilder or Tomcat that it must be stored. Does anyone know?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!