<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
<form-beans>
<form-bean name="logonForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="username" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>
</form-beans> <global-forwards>
<forward name="success" path="/main.jsp"/>
<forward name="logoff" path="/logoff.do"/>
</global-forwards> <action-mappings>
<action path="/logon"
type="org.monotonous.struts.LogonAction"
name="logonForm"
scope="session"
input="logon">
</action> <action path="/logoff"
type="org.monotonous.struts.LogoffAction">
<forward name="success" path="/index.jsp"/>
</action>
</action-mappings> <controller>
<!-- The "input" parameter on "action" elements is the name of a
local or global "forward" rather than a module-relative path -->
<set-property property="inputForward" value="true"/>
</controller> <message-resources parameter="org.monotonous.struts.ApplicationResources"/>
</struts-config>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
<form-beans>
<form-bean name="logonForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="username" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>
</form-beans> <global-forwards>
<forward name="success" path="/main.jsp"/>
<forward name="logoff" path="/logoff.do"/>
</global-forwards> <action-mappings>
<action path="/logon"
type="org.monotonous.struts.LogonAction"
name="logonForm"
scope="session"
input="logon">
</action> <action path="/logoff"
type="org.monotonous.struts.LogoffAction">
<forward name="success" path="/index.jsp"/>
</action>
</action-mappings> <controller>
<!-- The "input" parameter on "action" elements is the name of a
local or global "forward" rather than a module-relative path -->
<set-property property="inputForward" value="true"/>
</controller> <message-resources parameter="org.monotonous.struts.ApplicationResources"/>
</struts-config>
解决方案 »
- SQL insert into student values 后面括号里的格式是怎样的?
- 怎样调不同的方法导出不同名字的excel表
- 这个异常报了一个星期了还没解决!5555555555555
- struts1怎么防止同一用户在多台电脑上同时登录
- 我不知道这种方式是不是跨站点漏洞,还有如何防范
- 求助!谁能给我一个用springMVC实现文件上传下载的例子?
- 使用myeclipse开发hibernate遇到的问题
- 21天學通J2EE
- tomcat ROOT 問題
- apache和tomcat整合问题:tomcat-Apache.conf和ApacheModuleJServ.dll这2个文件根本找不到啊?!?
- (菜鸟问题)部署完ejb,如何访问发布上去的程序??
- servlet连接EJB问题
注意里面的: <form-beans>
<form-bean name="logonForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="username" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>
</form-beans>
String password = (String) PropertyUtils.getSimpleProperty(form, "password");
这个帖子在这里这么久
呆鸟都不来回复
我都看着实在过意不去了
就把当初学struts从网上抄的例子贴出来给楼主作个参考对了,我想申请当斑竹,不知道该去找那位大人?嘿嘿
想借这个机会把用到的东西总结一下
也让呆鸟和各位老鸟给指点一二
你发消息给
http://expert.csdn.net/Message_Board/Send.asp?sendto=wjmmml
http://expert.csdn.net/Message_Board/Send.asp?sendto=beyond_xiruo
他们,先走一下后门。
然后再发个贴,请支持者Up一下。好像超过50人,还是什么的。我马上注册马甲帮你UP嘿嘿。。