Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how change HTTP Status 404 page

Status
Not open for further replies.

fuadhamidov

Programmer
Sep 22, 2003
98
TR
hi

i have developed a e-commerce site. There are a number of meta tags at top of all pages. so a number of search engine should has saved the url.

1.then i have changed same jsp's name or have deleted.
becouse of this or any other reason when the user type wrong url 'HTTP Status 404' page is displayed. i want to change this page. where is this page stored. is there any way to change it.

2. when there is an error on compile, i dont want that, the user can see the exception message on screen. i also want to change it also.

thanks for any help
 
are you using apache or iis to redirect to tomcat, or is tomcat just sitting on port 80 ?
 
i use apache on port 80 in my local
but the site hosted run on tomcat redirected from iis

i need a solution for second case. but it is better to learn solution for both case
 
hi

i have found an example from google

The following tags should print in web-inf/web.xml

Code:
<error-page>
    <error-code>404</error-code>
    <location>/error/my404error.htm</location>
</error-page>

as i try,it should be print after 'welcome-file-list' tag. otherwise tomcat gives error in my computer.

The tags abouve is in address: the man has a problem but i cant understand. He prints it in different file : tomcat conf/web.xml file
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top