click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian A. (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CLK-258) How To Use Click Page As Default Welcome Page in Tomcat
Date Wed, 03 Mar 2010 18:42:31 GMT

     [ https://issues.apache.org/jira/browse/CLK-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adrian A. reassigned CLK-258:
-----------------------------

    Assignee: Adrian A.  (was: Malcolm Edgar)

> 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
>
> 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.


Mime
View raw message