aspose file tools
The moose likes Servlets and the fly likes simpleJSP can't run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "simpleJSP can Watch "simpleJSP can New topic

simpleJSP can't run

vivi santa

Joined: Feb 02, 2001
Posts: 26
I was trying to run a simple JSP.
<%@page import="java.util.Date"%>
The current time is <%=new Date().toString() %>
then I save it as simpleJSP.jsp and place it in the root directory C:\Java\Chapter11\JSPExample\simpleJSP.jsp
Then I deploy the JSPExamples application in Tomcat by adding the following entry to my tomcat directory\conf\server.xml
<Context path =/JSPExamples" docBase="c:\Java/Chapter11/JSPExamples"></Context>
Then I restart my Tomcat and point the browser to http://localhost:8080/JSPExamples/simpleJSP.jsp but the file is not found. Can anyone explain this to me and how can I make it run?
Thanks in advance
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hai vivi santa,
hope this will help you.
change the following context tag:
<Context path =/JSPExamples" docBase="c:\Java/Chapter11/JSPExamples"></Context>
<Context path ="/JSPExamples"
all the best
give reply(

Have you tried LearnNowOnline?
subject: simpleJSP can't run