论坛首页 Java企业应用论坛

tapestry4配置

浏览 2453 次
锁定老帖子 主题:tapestry4配置
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-11-22  
 

<!---->

<!---->

  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"

  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">

 

<application name="MyTapestry4"></application>

    <!---->

  <meta key="org.apache.tapestry.page-class-packages" value="com.tapestry4">

    <!---->

    <meta key="org.apache.tapestry.visit-class" value="com.tapestry4.MyVisit">

    <!---->

    <meta key="org.apache.tapestry.global-class" value="com.tapestry4.MyGlobal">

    <meta key="org.apache.tapestry.disable-caching" value="true">

    <meta key="org.apache.tapestry.default-page-class" value="true">

  

 

web.xml文件书写格式

<!---->

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" span=""></web-app>

 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee

 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

 <display-name></display-name>MyTapestry4

 <filter></filter>

  <!---->

  <filter-name></filter-name>redirect

  <filter-class></filter-class>org.apache.tapestry.RedirectFilter

 

 <filter-mapping></filter-mapping>

  <filter-name></filter-name>redirect

  <url-pattern></url-pattern>/

 

 <servlet></servlet>

  <!---->

  <servlet-name></servlet-name>MyTapestry4

  <servlet-class></servlet-class>

   org.apache.tapestry.ApplicationServlet

 

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

 

 <servlet-mapping></servlet-mapping>

  <servlet-name></servlet-name>MyTapestry4

  <url-pattern></url-pattern>/app

 

 <o:p></o:p>

样例Home.page的书写格式

<!---->

<!---->

  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"

  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">

<page-specification></page-specification>

    <!---->

    <component id="loginForm" type="Form"></component>

        <binding name="listener" value="listener:loginSubmit"></binding>

        <binding name="clientValidationEnabled" value="true"></binding>

   

  

    <component id="username" type="TextField"></component>

        <binding name="value" value="username"></binding>

        <binding name="validators" value="validators:required"></binding>

        <binding name="displayName" value="literal:&lt;/span&gt;&amp;lt;span style=" new=""></binding>【用户名】"/>

   

  

    <component id="password" type="TextField"></component>

        <binding name="value" value="password"></binding>

        <binding name="hidden" value="true"></binding>

        <binding name="validators" value="validators:required,minLength=6"></binding>

        <binding name="displayName" value="literal:&lt;/span&gt;&amp;lt;span style=" new=""></binding>【密码】"/>

   

  

论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics