关于struts2.0的配置文件 怎么这么多地方都开始用struts2.0了吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <action name="Logon!*" method="{1}" class="com.cleversoft.struts2.demo.Logon"> <result type="redirect-action">Menu</result> <result name="input">/Logon.jsp</result> </action>“method="{1}"”等价于“method=input”,这是通配符式的写法。 那这个1具体是指的什么意思?这个1是用来代替input的吗?不知道在哪个文档里有这个的介绍。Login_* 这个又是什么意思? 推荐一个学习struts2.0的bloghttp://www.blogjava.net/max/category/16130.html我看完了 还不错. <action name="Login_*" method="{1}" class="mailreader2.Login">中Login_*带*是什么意思?method="{1}"带{}这个是什么意思?====================================================name="Login_*"代表这个action处理所有以Login_开头的请求method="{1}"根据前面请求Login_methodname,调用action中的以methodname命名的方法class="mailreader2.Login"action的类名称如jsp文件中请求Login_validateUser的action名称,根据上面配置,调用action类mailreader2.Login类中方法validateUser()又如:对于Login_update请求,将会调用mailreader2.Login的update()方法。它的用法同webwork中的!符号的作用,相当于是一个通配符。 关于axis的配置问题,请高手指教 关于hibernate多对一的问题 JSF中使用foreach的问题?求救 问个送分问题 徐佳进来!!!!!!!!!! web自动化嗅探下载器的设计 菜鸟struts问题,关于errors输出 实体bean的关联 和 表的主外健 有什么关系?是互斥的还是共同存在的还是其他??? 学习方案,请高手指点 ibatis 的xml文件中sql语句中的参数写法问题 关于axis2的问题,很迷惑 求一个eclipse下开发struts+spring+hibernate的简单例子
class="com.cleversoft.struts2.demo.Logon">
<result type="redirect-action">Menu</result>
<result name="input">/Logon.jsp</result>
</action>
“method="{1}"”等价于“method=input”,这是通配符式的写法。
Login_* 这个又是什么意思?
http://www.blogjava.net/max/category/16130.html我看完了 还不错.
中Login_*带*是什么意思?method="{1}"带{}这个是什么意思?
====================================================
name="Login_*"
代表这个action处理所有以Login_开头的请求
method="{1}"
根据前面请求Login_methodname,调用action中的以methodname命名的方法
class="mailreader2.Login"
action的类名称如jsp文件中请求Login_validateUser的action名称,根据上面配置,调用action类mailreader2.Login类中方法validateUser()
又如:
对于Login_update请求,将会调用mailreader2.Login的update()方法。它的用法同webwork中的!符号的作用,相当于是一个通配符。