关于 在struts2里 使用 通配符的问题!it's necessary for web!
2014-04-20 18:16
489 查看
if you are doing your webwork ,and touched a nests problem, many methods mapping to one action,
you should use {} and * for it,which way can make you easy to work.
let's see how to use it.
when your Acntionname is LoginAction and it has been controlled by your springframework,try to mark it be login,
and action name is "login_*" with method="{1},so the * is mapping your methods in your LoginAction,and they will be
getby the
you should use {} and * for it,which way can make you easy to work.
let's see how to use it.
when your Acntionname is LoginAction and it has been controlled by your springframework,try to mark it be login,
and action name is "login_*" with method="{1},so the * is mapping your methods in your LoginAction,and they will be
getby the
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction and
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilterwhile you do it in this way,your jsppage should be write action="login_?";[/code]
相关文章推荐
- C++Builder中关于INDY库的使用 以及一些问题的解决(E2238 Multiple declaration for 'fd_set')
- 关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'
- 实用程序软件包(关于使用静态函数报错问题“Static function declared but not defined in C+++ "eh.h is only for C++!"报错问题)
- 关于在使用spring出现类似java.sql.SQLException: Access denied for user 'XXX'@'localhost' (using password: YES)
- 关于Scope 'session' is not active for the current thread的问题
- 关于session过期返回主页解决方案之一以及js中的“和'使用问题
- 关于dbunit报Duplicate entry '????' for key 'xxx'错误的问题
- mysql压缩包如何使用及PoolableConnectionFactory 和Access denied for user 'testdb'@'localhost'问题的解决
- 关于MATLAB函数不可用问题。??? Undefined function or method 'minfo' for input arguments of type 'double'.
- web.py 直接使用示例代码,web.application报错, 'module' object has no attribute 'application',问题原因分析
- VM中使用svn检出代码出现Password for '(null)' GNOME keyring问题的解决办法
- 使用MySQL API时出现如下问题的解决方法:Access denied for user 'root'@'localhost' (using password: YES)
- 关于 nor it's doXxx() equivalent is defined in action class 的问题解决办法
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- 使用ACE日志策略时遇到的问题:DLL::open failed for ACE: Error: check log for details Unable to find service 'Logger'
- 关于VB中除法运算符'/'和'/'的问题
- Unrecognized configuration section 'system.webServer' CKFinder - Setup Wizard for ASP
- 关于通配符'_'不能起占位的作用
- 解决Unity的 The file 'MemoryStream' is corrupted! Remove it and launch 崩溃问题
- 关于spring整合mybatis报错:Type handler was null on parameter mapping for property 'department'.