re: Tomcat thing again...!

Hi there,
I have downloaded Apache Tomcat 5.0 onto my computer at the moment. I'm currently running the J2EE 1.4 edition on my computer as well. At the moment i'm trying to get a few jsp pages working but having no luck. I've tried saving them almost everywhere (i mean everywhere!) and having no luck. I think the problem is i can't understand what Tomcat is or where i should be running it. Any clarification or help on the matter would be greatly appreciated.
Thank you.......

Comments

  • : Hi there,
    : I have downloaded Apache Tomcat 5.0 onto my computer at the moment. I'm currently running the J2EE 1.4 edition on my computer as well. At the moment i'm trying to get a few jsp pages working but having no luck. I've tried saving them almost everywhere (i mean everywhere!) and having no luck. I think the problem is i can't understand what Tomcat is or where i should be running it. Any clarification or help on the matter would be greatly appreciated.
    : Thank you.......
    :
    :

    Hi,

    I'm not 100% certain it's the same in Tomcat 5.0 (I'm still running 4.1) but you should save JSPs in the $Tomcat_home$webappsROOT directory. Example: let's say you have a login.jsp file. You place it in that directory, start Tomcat, and then go to http://localhost/login.jsp and you should see the page. Depending on what error you get, it could be a few things - you should go to http://localhost first to make sure Tomcat is starting properly. The other thing to check is the $Tomcat_home$confweb.xml file. There should be a line that says:




    This tells Tomcat where to locate JSP files based on the URL you type in. Incidentally, if you want to add other web-app locations to the webapps directory, just create the directories and add their context paths to the web.xml file. Example:



    Hope this helps.
  • : : Hi there,
    : : I have downloaded Apache Tomcat 5.0 onto my computer at the moment. I'm currently running the J2EE 1.4 edition on my computer as well. At the moment i'm trying to get a few jsp pages working but having no luck. I've tried saving them almost everywhere (i mean everywhere!) and having no luck. I think the problem is i can't understand what Tomcat is or where i should be running it. Any clarification or help on the matter would be greatly appreciated.
    : : Thank you.......
    : :
    : :
    :
    : Hi,
    :
    : I'm not 100% certain it's the same in Tomcat 5.0 (I'm still running 4.1) but you should save JSPs in the $Tomcat_home$webappsROOT directory. Example: let's say you have a login.jsp file. You place it in that directory, start Tomcat, and then go to http://localhost/login.jsp and you should see the page. Depending on what error you get, it could be a few things - you should go to http://localhost first to make sure Tomcat is starting properly. The other thing to check is the $Tomcat_home$confweb.xml file. There should be a line that says:
    :
    :
    :
    :
    : This tells Tomcat where to locate JSP files based on the URL you type in. Incidentally, if you want to add other web-app locations to the webapps directory, just create the directories and add their context paths to the web.xml file. Example:
    :
    :
    :
    : Hope this helps.
    :






    Thank you very much, very helpfull......

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories