[Tapestry5] 页面无法解释t5

duprint 2010-01-26
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
    <head>
        <title>app Start Page</title>
    </head>
    <body>
        <h1>app Start Page</h1>

        <p> This is the start page for this application, a good place to start your modifications.
            Just to prove this is live: </p>

        <p> The current time is: ${currentTime}. </p>


        <p>
            [<t:pagelink t:page="Start">refresh</t:pagelink>]
        </p>
    </body>
</html>

web.xml内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>testTypestry</display-name>
<context-param>
  <param-name>tapestry.app-package</param-name>
       <param-value>cn.com.lchots.testTypestry</param-value>
</context-param>
<filter>
<filter-name>app</filter-name>
<filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>app</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>


运行报错
TP Status 403 - URI /Start.tml may not be accessed remotely.

--------------------------------------------------------------------------------

type Status report

message URI /Start.tml may not be accessed remotely.

description Access to the specified resource (URI /Start.tml may not be accessed remotely.) has been forbidden.

如果把<url-pattern>/*</url-pattern>星号去掉,*.tml可以跑起来,但没有解释<t:上面最基本的连接都没有
雪山之巅 2010-04-27
我也遇到这种情况,tomcat的用户也设置了,还是没用,不知道阁下怎么解决的?
fantify 2010-04-28
url应该是/start,而不是/start.tml啊
Global site tag (gtag.js) - Google Analytics