jsp 页面 调用 action

 

<result name="mgtsd1" type="redirect">/market/magercentAction!mgtsd.action</result>

for循环

<ww:bean   >  
               <img src='/pages/smailgame/web/images/yxfl_01_30.gif' width='17' height='13' />
           </ww:iterator>
         

用于action 跳转 action

<ww:property value="contsp.content" escape="true" />

escape="true" 显示html标签是显示还是执行 方法 是true 还是false 自己去试吧

 

<ww:action />

name="netAction!fengqing"     代表引用的action 名字

namespace="/agritour"     代表 action 的相对路径 webwork xml 里

executeResult="false"     如果是 true 那么 相当于 jsp inculde

=========================================

jsp     碟代标签用法

<ww:iterator value="#lis.engpins" status="status">
  
     <td width="130" height="180">
     <table width="109" height="67" border="0" cellpadding="0" cellspacing="0" class="bkang">
                 <tr>
                   <td align="center" valign="middle"><a href="/agritour/agritour/netAction!fengqing.action?idl=<ww:property value="id"/>"><img border="0" >
     <tr>
     </ww:if>
     </ww:if>
     </ww:iterator>

=====================================

 

status="status"     相当于 for 循环     i

============================

如果是 action 挑转   

直接引用 List 名字 无需利用

===========================================

<%@ taglib uri="/WEB-INF/tag/webwork.tld" prefix="ww"%>

标签 的引用

========================================

spring 的 配置文件

***********************************************************************************************

<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">


<!-- hibernate datasource =================================================================== -->
       <bean />
       </bean>
       <!-- ========================================================================================= -->
    
    
       <!-- 引入前后台的 Spring 配置文件      重点*******

================================================================ -->
<import resource="classes/com/bts/web/agritour/agritour-spring.xml" />
       <!-- ========================================================================================= -->
    
    
</beans>

 

*************************************************************************************

 

webwork xml

 

================================

<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">

<xwork>

    
       <include file="webwork-default.xml"/>
    
       <package name="default" extends="webwork-default">
       </package>
    
       <include file="/com/bts/web/agritour/agritour-xwork.xml" />
    
    
</xwork>

================================

配置

地层 webwork xml

******************************************************

<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">

<xwork>

    
       <include file="webwork-default.xml"/>
    
       <package name="default" extends="webwork-default">
       </package>
    
       <include file="/com/bts/web/agritour/agritour-xwork.xml" />
    
    
</xwork>

****************************************************************

spring 地层配置

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

<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

 

<bean />
</bean>

</beans>

相关文章:

  • 2021-08-31
  • 2021-05-29
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案