I need to redirect the incorrect URL to my server to a specific page.
how can I make that possible?
I need to redirect the incorrect URL to my server to a specific page.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use default action for that in your struts.xml. See http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-ActionDefault.
Or there is also
Unknown Handlersin Struts2 http://struts.apache.org/2.x/docs/unknown-handlers.html if you need a more complex solution.