954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

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.

apontutul
Light Poster
38 posts since Nov 2006
Reputation Points: 10
Solved Threads: 1
 

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.

apontutul
Light Poster
38 posts since Nov 2006
Reputation Points: 10
Solved Threads: 1
 

> 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.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

ok.got the jsp files being executed...but could'nt view the source code of the .jsp examples

apontutul
Light Poster
38 posts since Nov 2006
Reputation Points: 10
Solved Threads: 1
 

For source code navigate to:

Tomcat_Installation_Directory\webapps\jsp-examples\

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You