tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Resolved: (TAPESTRY-364) Page access via a friendlly url doesn't execute in pageBeginRender
Date Fri, 01 Jul 2005 16:59:59 GMT
     [ http://issues.apache.org/jira/browse/TAPESTRY-364?page=all ]
     
Howard M. Lewis Ship resolved TAPESTRY-364:
-------------------------------------------

    Resolution: Invalid

You don't have a mapping for *.html in your web.xml, so the request is not routed through
the Tapestry ApplicationServlet.

> Page access via a friendlly url doesn't execute in pageBeginRender
> ------------------------------------------------------------------
>
>          Key: TAPESTRY-364
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-364
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Scott Walter

>
> I have setup friendly urls in my hivemodule.xml as:
> <module id="tapestry4sandbox" version="1.0.0" package="com.scottwalter.sandbox.tapestry4">
>   
>     <contribution configuration-id="tapestry.state.ApplicationObjects">
>       <state-object name="visit" scope="session">
>         <create-instance class="com.scottwalter.sandbox.tapestry4.Visit"/>
>       </state-object>   
>     </contribution>
>     
>     <contribution configuration-id="tapestry.state.ApplicationObjects">
>       <state-object name="global" scope="application">
>         <create-instance class="com.scottwalter.sandbox.tapestry4.Global"/>
>       </state-object>   
>     </contribution>     
>     
>     <contribution configuration-id="tapestry.url.ServiceEncoders">
>       <page-service-encoder id="page" extension="html" service="page"/>
>     </contribution>
>     
>     <contribution configuration-id="tapestry.url.ServiceEncoders">
>         <direct-service-encoder id="direct" stateless-extension="direct" stateful-extension="sdirect"/>
>     </contribution> 
>     
>     <contribution configuration-id="tapestry.url.ServiceEncoders">
>       <asset-encoder id="asset" path="/assets/"/>
>     </contribution>    
>     
>     <contribution configuration-id="tapestry.url.ServiceEncoders">
>       <extension-encoder id="extension" extension="svc" after="*"/>
>     </contribution>       
> </module>
> When I try to access a page that is in a subdirectory (dir1) via friendly url (http://localhost:8080/tapestry4sandbox/dir1/Link1.html)
the page is returned but the code behind my pageBeginRender is not executed.  I
> Here are my servlet mappings:
>   <servlet>
>     <servlet-name>tapestry</servlet-name>
>     <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>     <load-on-startup>0</load-on-startup>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>/app</url-pattern>
>   </servlet-mapping>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>*.page</url-pattern>
>   </servlet-mapping>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>*.external</url-pattern>
>   </servlet-mapping>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>*.direct</url-pattern>
>   </servlet-mapping>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>*.sdirect</url-pattern>
>   </servlet-mapping>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>*.svc</url-pattern>
>   </servlet-mapping>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name>
>     <url-pattern>/assets/*</url-pattern>
>   </servlet-mapping>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message