You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bill Holloway <bi...@gmail.com> on 2007/10/05 22:09:34 UTC

T4: Servlet mapping problem

I haven't seen a lot of coverage on this recently.

We have configured friendly urls for services with the usual .svc
extension.  In our web.xml, we  map "/home" to the tapestry servlet
rather than "/app".  The service links look fine (e.g.,
http://host/restart.svc) but winds up redirected to
/app?service=restart.  This would be ok if we had the default mapping
of /app to the tapestry servlet, but we need /home.

Is there a resolution for this for Tapestry 4.1.2?

Bill

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


Re: T4: Servlet mapping problem

Posted by Alejandro Scandroli <al...@gmail.com>.
Hi Bill

Make sure you have these 2 things:
In tour web.xml declare your RedirectFilter like this:
  <filter>
    <filter-name>redirect</filter-name>
    <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
    <init-param>
      <param-name>redirect-path</param-name>
      <param-value>/home</param-value>
    </init-param>
  </filter>

then in "yourapp".application include this line:
<meta key="org.apache.tapestry.servlet-path" value="/home"/>

I think that's all you need.

Saludos.
Alejandro.

On 10/5/07, Bill Holloway <bi...@gmail.com> wrote:
> I haven't seen a lot of coverage on this recently.
>
> We have configured friendly urls for services with the usual .svc
> extension.  In our web.xml, we  map "/home" to the tapestry servlet
> rather than "/app".  The service links look fine (e.g.,
> http://host/restart.svc) but winds up redirected to
> /app?service=restart.  This would be ok if we had the default mapping
> of /app to the tapestry servlet, but we need /home.
>
> Is there a resolution for this for Tapestry 4.1.2?
>
> Bill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: T4: Servlet mapping problem

Posted by Renat Zubairov <re...@gmail.com>.
Hi

As far as I know friendly URLS are automatically mapped to the Page
service, but Restart is not a Page service, it's a service on it's
own.

What you can do, you can create your own engine instance and map it to
the URL you want, your Engine would serve the requests the way you
need.

Renat

On 05/10/2007, Bill Holloway <bi...@gmail.com> wrote:
> I haven't seen a lot of coverage on this recently.
>
> We have configured friendly urls for services with the usual .svc
> extension.  In our web.xml, we  map "/home" to the tapestry servlet
> rather than "/app".  The service links look fine (e.g.,
> http://host/restart.svc) but winds up redirected to
> /app?service=restart.  This would be ok if we had the default mapping
> of /app to the tapestry servlet, but we need /home.
>
> Is there a resolution for this for Tapestry 4.1.2?
>
> Bill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov

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