944,184 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 3413
  • JSP RSS
May 24th, 2007
0

jsp not running & can't view the jsp source code on tomcat

Expand Post »
hi friends.....I created a folder under webapps put 2 files 1html & 1jsp. though the html one is running the jsp one isn't. the error message:

HTTP Status 404 - /helloJSP/hello.jsp

type Status report

message /helloJSP/hello.jsp

description The requested resource (/helloJSP/hello.jsp) is not available.

I've set the JAVA_HOME (environment variable>user variable) as "D:\Program Files\Java\jdk1.5.0_10"

moreover I can't view the apache tomcat inbuilt jsp source-codes, though the examples are running.


hope I've made myself clear. please help I'm stuck badly.
Reputation Points: 10
Solved Threads: 1
Light Poster
apontutul is offline Offline
38 posts
since Nov 2006
May 24th, 2007
0

Re: jsp not running & can't view the jsp source code on tomcat

I've also put a WEB_INF folder with a web.xml file in it(copied it from ROOT).

I've named the file as hello.jsp but it still showing its type as "text document", should'nt it be "JSP file"??

I can also execute & view codes of the servlet examples.
Reputation Points: 10
Solved Threads: 1
Light Poster
apontutul is offline Offline
38 posts
since Nov 2006
May 24th, 2007
0

Re: jsp not running & can't view the jsp source code on tomcat

> The requested resource (/helloJSP/hello.jsp) is not available.
This error usually means the container is unable to locate file. There is some problem with the path that you specify. If your root folder is "HelloJSP", and if your jsp file is present in the root folder, you just need to type:
http://localhost:8080/HelloJSP/hello.jsp

Post the code if it still doesn't solve your problem since I have no idea what you are trying to do.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006
May 25th, 2007
0

Re: jsp not running & can't view the jsp source code on tomcat

ok.got the jsp files being executed...but could'nt view the source code of the .jsp examples
Reputation Points: 10
Solved Threads: 1
Light Poster
apontutul is offline Offline
38 posts
since Nov 2006
May 25th, 2007
0

Re: jsp not running & can't view the jsp source code on tomcat

For source code navigate to:

Tomcat_Installation_Directory\webapps\jsp-examples\
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC