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

Reply

Join Date: Nov 2006
Posts: 38
Reputation: apontutul is an unknown quantity at this point 
Solved Threads: 1
apontutul's Avatar
apontutul apontutul is offline Offline
Light Poster

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

 
0
  #1
May 24th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 38
Reputation: apontutul is an unknown quantity at this point 
Solved Threads: 1
apontutul's Avatar
apontutul apontutul is offline Offline
Light Poster

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

 
0
  #2
May 24th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,610
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 465
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

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

 
0
  #3
May 24th, 2007
> 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.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 38
Reputation: apontutul is an unknown quantity at this point 
Solved Threads: 1
apontutul's Avatar
apontutul apontutul is offline Offline
Light Poster

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

 
0
  #4
May 25th, 2007
ok.got the jsp files being executed...but could'nt view the source code of the .jsp examples
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,610
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 465
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

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

 
0
  #5
May 25th, 2007
For source code navigate to:

Tomcat_Installation_Directory\webapps\jsp-examples\
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC