Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,157 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,028 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



How to set up stuff with TOMCAT

 
Reply to this topicStart new topic

How to set up stuff with TOMCAT

thientanchuong
post 18 Apr, 2008 - 10:50 AM
Post #1


New D.I.C Head

*
Joined: 18 Nov, 2007
Posts: 6


My Contributions


Dear all,

I am now learning in school about JSP and try JSP on TOMCAT

with Tomcat , I do not have knowledge about, Can you teach me how to fix out some error when I set up Tomcat.

After getting zip of tomcat file, I unzip and put it to C directory so its path would be: C:\Tomcat

I create 1 folder call web in webapps subdirectory and WEB-INF inside of web, another called classes inside of WEB-INF . so this path should be: C:\Tomcat\webapps\WEB-INF\classes.

Next step. I create 1 file html call index.html in web folder, and another called web.xml in WEB-INF. (web.xml I copied from folder call example which is stored from the zip.)

now , i start the server and get the path: http://localhost:8080/ and have some questions :

question 1-- How can I remove 8080 so that link is shorter which should be http://localhost/ ? Or Can I change text " localhost " to any name I like ? How can I do it ?

question 2--, I use this path http://localhost:8080/web to store the html inside. However, I got message let me know it could not find resource named web , Why ??? How can I fix it ?

question 3-- I do not like the index page of tomcat when it presents, I want to change it, but where and how can I change it ?


I am looking forward to hearing the answers from you
, please help !!!

Regards

Hung




User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 18 Apr, 2008 - 11:56 AM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,939



Thanked 27 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


Answer to Question 1: http://www.klawitter.de/tomcat80.html

As far as changing the name of localhost, you'll have to enter that name into C:\windows\system32\drivers\etc\hosts file, so that Windows can resolve the domain name to your local address of 127.0.0.1
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/5/08 05:34PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month