Issue Details (XML | Word | Printable)

Key: XWIKI-608
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Sergiu Dumitriu
Reporter: Sergiu Dumitriu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Add a default index page redirecting to /bin/view/Main/

Created: 24/Dec/06 20:43   Updated: 26/Oct/07 11:48
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 1.0 B2

Issue Links:
Related
 

Date of First Response: 24/Dec/06 21:26
Resolution Date: 03/Jan/07 05:22


 Description  « Hide
The index.html file contains links to the installation instructions and the main page. After the user installed the wiki, the html file can be removed, and the remaining index.jsp file will automatically redirect to the main page.

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Sergiu Dumitriu added a comment - 24/Dec/06 20:44
Fixed in rev. 1801

Ludovic Dubost added a comment - 24/Dec/06 21:26
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

Sergiu Dumitriu added a comment - 24/Dec/06 21:38
Do you know any other method to do this? Except apache directives?

Ludovic Dubost added a comment - 24/Dec/06 21:42
<meta http-equiv="Refresh" content="0;url=/xwiki/bin/view/Main/WebHome">

Sergiu Dumitriu added a comment - 24/Dec/06 21:48
This is client side, which is less efficient than server redirects:
  • not all browsers understand this
  • this is considered bad practice by W3C

Ludovic Dubost added a comment - 29/Dec/06 15:36
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.


Ludovic Dubost added a comment - 29/Dec/06 15:37
If you really don't want a refresh, then write a servlet.

Sergiu Dumitriu added a comment - 29/Dec/06 18:18
Ok, I got your point. I'll write a servlet.

Sergiu Dumitriu added a comment - 03/Jan/07 05:22
Implemented using a simple servlet.