Ad (728x90)

Filled Under: ,

404 for no action mapping in struts

Interview Questions Learn Struts
Normally we got 404 errors in web application and in struts the requested page which is not having mapping in config file, we can specify a default mapping to action with below code:

<action
name="/error404"
unknown="true"
forward="/Error404.jsp/>

"Unknown" attribute should be defined as true in case you wish to redirect the request to given page in forward attribute.

This is the way you can handle a no mapping action error in struts.

Unknown

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment

Please write to us here...

 

We are featured contributor on entrepreneurship for many trusted business sites:

  • Copyright © Tekhnologia™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.