You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Adrian A. (JIRA)" <ji...@apache.org> on 2010/03/03 19:44:27 UTC
[jira] Closed: (CLK-258) How To Use Click Page As Default Welcome
Page in Tomcat
[ https://issues.apache.org/jira/browse/CLK-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian A. closed CLK-258.
-------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
Documentation has been updated as requested in the issue comment.
> How To Use Click Page As Default Welcome Page in Tomcat
> -------------------------------------------------------
>
> Key: CLK-258
> URL: https://issues.apache.org/jira/browse/CLK-258
> Project: Click
> Issue Type: Improvement
> Components: documentation
> Reporter: Joel Schmidt
> Assignee: Adrian A.
> Priority: Minor
> Fix For: 2.2.0
>
>
> Tomcat (and perhaps other servlet containers (such as JBoss, which embeds Tomcat) does not dispatch URL's in the welcome-file-list to a servlet, even if there is a servlet-mapping which matches the URL. Thus, Click pages don't work properly as a welcome page, unless a little something extra is done. The simplest solution is to use a jsp that directs to the Click page as the welcome-file.
> In web.xml:
> <welcome-file-list>
> <welcome-file>/welcome-redirect.jsp</welcome-file>
> </welcome-file-list>
>
> In welcome-redirect.jsp:
> <%@ page language="java" contentType="text/html; charset=UTF-8" %>
> <%@ page isThreadSafe="true" isErrorPage="false" session="false" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
> <c:redirect url="/welcome.htm" />
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.