In Tomcat 7 in web.xml, how do you set an error-page so that it returns the location but always returns 200, not what the error code would of been (like 404)?
-
I currently have this how do I make it so no matter what page they go to (except a valid one) will given back the index page with a 200 status code <webapp> <error-page> <error-code>404</error-code> <location>/index.jsp</location> </error-page> </webapp>
-
Answer:
You could set the response status in the error-page (/index.jsp). <â response.setStatus(200); %>
Bhuvaneswaran Gopalasamy at Quora Visit the source
Related Q & A:
- What is error code 6 for Yahoo! mail?Best solution by in.answers.yahoo.com
- What does the error code 999 mean?Best solution by Yahoo! Answers
- How do I set up a web page?Best solution by Yahoo! Answers
- How do I set my mail page back to large print?Best solution by ehow.com
- How to install tomcat 7 in windows 7?Best solution by ntu.edu.sg
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.