You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ralph Churchill <ch...@gmail.com> on 2005/03/02 17:57:55 UTC

RedirectFilter and JBoss 3.2.6

I'm noticing some strange behaviour when using the RedirectFilter with
Jboss 3.2.6 (Tomcat 5.0). If I have an index.html specified as the
welcome-file, that seems to be served when I go to
http://localhost:8080 instead of redirecting to
http://localhost:8080/app. I did not have this problem with Jboss
3.2.3. I know this is a borderline off-topic question, but I was
curious if anyone else was having this problem... Here's a portion of
my web.xml:

    <filter>
        <filter-name>redirect</filter-name>
        <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
        <init-param>
            <param-name>redirect-path</param-name>
            <param-value>/exec</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>redirect</filter-name>
        <url-pattern>/</url-pattern>
    </filter-mapping>
    <servlet>
        <servlet-name>myapp</servlet-name>
        <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>myapp</servlet-name>
        <url-pattern>/app</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

Thanks. 

RMC

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: RedirectFilter and JBoss 3.2.6 [solved]

Posted by Ralph Churchill <ch...@gmail.com>.
FYI: I was able to solve this by using a servlet as the welcome-file
instead, e.g.:

     <servlet>
         <servlet-name>myapp</servlet-name>
         <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
         <servlet-name>myapp</servlet-name>
         <url-pattern>/app</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
         <welcome-file>myapp</welcome-file>
     </welcome-file-list>

Thanks.

RMC

On Wed, 2 Mar 2005 10:57:55 -0600, Ralph Churchill
<ch...@gmail.com> wrote:
> I'm noticing some strange behaviour when using the RedirectFilter with
> Jboss 3.2.6 (Tomcat 5.0). If I have an index.html specified as the
> welcome-file, that seems to be served when I go to
> http://localhost:8080 instead of redirecting to
> http://localhost:8080/app. I did not have this problem with Jboss
> 3.2.3. I know this is a borderline off-topic question, but I was
> curious if anyone else was having this problem... Here's a portion of
> my web.xml:
> 
>     <filter>
>         <filter-name>redirect</filter-name>
>         <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
>         <init-param>
>             <param-name>redirect-path</param-name>
>             <param-value>/exec</param-value>
>         </init-param>
>     </filter>
>     <filter-mapping>
>         <filter-name>redirect</filter-name>
>         <url-pattern>/</url-pattern>
>     </filter-mapping>
>     <servlet>
>         <servlet-name>myapp</servlet-name>
>         <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>myapp</servlet-name>
>         <url-pattern>/app</url-pattern>
>     </servlet-mapping>
>     <welcome-file-list>
>         <welcome-file>index.jsp</welcome-file>
>     </welcome-file-list>
> 
> Thanks.
> 
> RMC
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org