This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Calling JSP within JBuilder servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling JSP within JBuilder servlet" Watch "Calling JSP within JBuilder servlet" New topic
Author

Calling JSP within JBuilder servlet

MIke Deskis
Greenhorn

Joined: Jun 04, 2001
Posts: 1
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?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling JSP within JBuilder servlet
 
Similar Threads
JDBC with JBuilder 7/8/9/X
A link in jsp point to another jsp without mapping
Accessing data in .txt file from a servlet...
How does ActionAervlet find the action class ?
terminate a JSP page