You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hensley, Richard" <Ri...@McKesson.com> on 2005/05/12 23:19:37 UTC

Form URL forming in Tapestry 4.0

I use the following servlet mapping

    <servlet>
        <servlet-name>starteam</servlet-name>

 
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>

        <load-on-startup>0</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>starteam</servlet-name>

        <url-pattern>/starteam</url-pattern>
    </servlet-mapping>


In this case, my context is /

When I hit my home page, I the following url for the a form:

           <form method="GET" action="/app" name="search">

Which is not right. Where would I start chasing this down?

It should be:

           <form method="GET" action="/starteam" name="search">

Richard


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


Re: Form URL forming in Tapestry 4.0

Posted by Howard Lewis Ship <hl...@gmail.com>.
In 3.0, there was just the one mapping, so it could figure it out. 
Servlet API lacks some *necessary* introspection along these lines, so
now if you don't use "/app", you have to tell Tapestry what you did
use.

On 5/12/05, Paul Ferraro <pm...@columbia.edu> wrote:
> You need to define a "org.apache.tapestry.servlet-path" <meta> value in
> your .application file.  You can optionally define it elsewhere:
> http://jakarta.apache.org/tapestry/current/UsersGuide/hivemind.html
> (see section on the app-property hivemind prefix)
> 
> Paul
>  
> Hensley, Richard wrote:
> 
> >I use the following servlet mapping
> >
> >    <servlet>
> >        <servlet-name>starteam</servlet-name>
> >
> >
> ><servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
> >
> >        <load-on-startup>0</load-on-startup>
> >    </servlet>
> >
> >    <servlet-mapping>
> >        <servlet-name>starteam</servlet-name>
> >
> >        <url-pattern>/starteam</url-pattern>
> >    </servlet-mapping>
> >
> >
> >In this case, my context is /
> >
> >When I hit my home page, I the following url for the a form:
> >
> >           <form method="GET" action="/app" name="search">
> >
> >Which is not right. Where would I start chasing this down?
> >
> >It should be:
> >
> >           <form method="GET" action="/starteam" name="search">
> >
> >Richard
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Re: Form URL forming in Tapestry 4.0

Posted by Paul Ferraro <pm...@columbia.edu>.
You need to define a "org.apache.tapestry.servlet-path" <meta> value in 
your .application file.  You can optionally define it elsewhere:
http://jakarta.apache.org/tapestry/current/UsersGuide/hivemind.html  
(see section on the app-property hivemind prefix)

Paul

Hensley, Richard wrote:

>I use the following servlet mapping
>
>    <servlet>
>        <servlet-name>starteam</servlet-name>
>
> 
><servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>
>        <load-on-startup>0</load-on-startup>
>    </servlet>
>
>    <servlet-mapping>
>        <servlet-name>starteam</servlet-name>
>
>        <url-pattern>/starteam</url-pattern>
>    </servlet-mapping>
>
>
>In this case, my context is /
>
>When I hit my home page, I the following url for the a form:
>
>           <form method="GET" action="/app" name="search">
>
>Which is not right. Where would I start chasing this down?
>
>It should be:
>
>           <form method="GET" action="/starteam" name="search">
>
>Richard
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>  
>


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