打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
springmvc commandClass 和 commandName
<bean id="loginBankController"
                                    class="springexample.controller.LoginBankController">
                                    <property name="sessionForm"><value>true</value></property>
                                    <property name="commandName"><value>loginCommand</value></property>
                                    <property name="commandClass">
                                    <value>springexample.commands.LoginCommand</value>
                                    </property>
                                    <property name="authenticationService">
                                    <ref bean="authenticationService" />
                                    </property>
                                    <property name="accountServices">
                                    <ref bean="accountServices" />
                                    </property>
                                    <property name="formView">
                                    <value>login</value>
                                    </property>
                                    <property name="successView">
                                    <value>accountdetail</value>
                                    </property>
                                    </bean>

commandClass 和 commandName 标记决定将在视图页面中活动的 bean。例如,可以通过 login.jsp 页面访问 loginCommand bean,这个页面是应用程序的登录页面。一旦用户提交了登录页面,应用程序就可以从 LoginBankController 的 onSubmit() 方法中的命令对象检索出表单数据。
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
使用spring mvc框架进行文件上传
关于Spring中Commons Validator的使用说明
Spring mvc 3.0 怎么配置velocity tools (dateTool/n...
JSTL中c:set标签
【shiro】使用shiro搭建的项目,页面引用js,报错:Uncaught SyntaxError: Unexpected token <
如何让Spring MVC显示自定义的 Not Found页面
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服