Place this stancza below your welcome-file-list in your web.xml. You can use a static HTML page or a JSP.

<error-page>
    <error-code>404</error-code>
    <location>/error404.jsp</location>
</error-page>

-Bill Siggelkow

Caroline Jen wrote:

I have many links in my web site.  And, for example;
the name of my web site is XYZCompany. and we type
http://localhost:8080/XYZCompany to get to view the
web site.

For example, there is a link 'directory' to get to the
web page that shows the directory of the company.  And
users can type
http://localhost:8080/XYACompany/directory

to get to it.

When users mis-type the word 'directory', I would like
to show a page saying 'the requested page cannot be
found'.  How do I handle it in Struts.

I think that I have to prepare a .jsp page with the
message 'the requested page cannot be found' in it. I
think that the control should be in the
struts-config.xml. But, I do not know how to do it. Please help me.




_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to