|
[
Permlink
| « Hide
]
Sergiu Dumitriu added a comment - 24/Dec/06 20:44
Fixed in rev. 1801
I don't think we should use a JSP file for this. This creates a dependency on the JSP compiler which could fail for any reason.
Since you can do the same thing with the HTTP Refresh Header it is better not to use a JSP Do you know any other method to do this? Except apache directives?
<meta http-equiv="Refresh" content="0;url=/xwiki/bin/view/Main/WebHome">
This is client side, which is less efficient than server redirects:
Sure but the /xwiki/ page is not a commonly accessed page so we don't care about performance.
When I used a jsp page to show a nice error message when the XWiki code wa failing a while ago I had this proplem with certain tomcat installations not having access to the java compiler. This creates a requirement on running tomcat under jdk and not only in jre. This could be one of the first pages accessed by people installing XWiki. We don't want this page failing. I believe we should keep it simple. If you really don't want a refresh, then write a servlet.
Ok, I got your point. I'll write a servlet.
Implemented using a simple servlet.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||