• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to run a jsp page  RSS feed

 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello to all of u

i m bit comfortable with SERVLET and please tell me that how to run a JSP page.i m using TOMCAT.
someplace it is written that " write the program ,save under the root of tomcat i.e in my system it is tomcat 4.1 and to store in tomcat4.1\helloworld.jsp ,,, and then after start the server write in the url --:
http://localhost:8080/hello.jsp.

but it is giving error while running.please tell me the procedure.
thank you
bye
 
pankaj patil
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
before runing the program check whether your tomcat is running properly.
by typing url:
http://localhost:8080/
then try this

store your jsp page in root
 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
i have checked that my SERVER is running and i have opened with the page of TOMCAT.

i have my directory as --:::
c:\program files\apache group\tomcat4.1\
i stored my JSP page under \tomcat4.1\ i.e \tomcat4.1\hello.jsp
butit is not running,,,,,,is there any ned to compile it/
thank you
gaurav
 
pankaj patil
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
copy your folder apache group and save it directly as c:\apache group

set your path again in syatemvariable
and then try it
store your jsp files in c:\apache group\tomcat4.1\webapps\root
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read The Fine Manual.
It will tell you how to deploy your web applications and it's not the way you've done it.

You placed your JSP in the wrong place. I'm not going to tell you what the correct place is because the manual will explain that to you (and it also is different for different servers and configurations and I don't want to handhold you when you start using another server, so you should get accustomed to reading manuals now).
 
Gert Cuppens
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to know more about JSP and Tomcat, one very good book is the "Apache Tomcat Bible". It explains how to download and install Java 2 SDK, MySQL, Tomcat, Eclipse, ... and it gives an entire web application as an example of how to build following the instructions of the MVC (Model-View-Controller) model 2. You will see how JSP's and servlets communicate.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read The Fine Manual.


Nobody would ever tell me what the 'F' stood for.
Thank you
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:


Nobody would ever tell me what the 'F' stood for.
Thank you


What else would it stand for?
After all, as manual writers ourselves we make sure they're fine don't we?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeroen Wenting:

After all, as manual writers ourselves we make sure they're fine don't we?


Yes, lest our users tell us to: Go fine ourselves.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!