杨庆荣的博客

工作之余接单:公司产品展示网站建设、电商网站建设、小程序、app开发。+86 13714715608

Unable to instantiate Action

点击 6280    创建时间 2014-01-10 18:25:12

Unable to instantiate Action, registerBean, defined for 'register' in namespace '/'registerBean  
 com.opensymphony.xwork2.XWorkException  
 at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:312)  
 at

<bean id="smtp" class="com.wudimei.mail.Smtp">  
 <property name="host" value="smtp.qq.com" />  
 </bean>  
 <bean id="registerBean" class="com.wudimei.user.RegisterAction" scope="prototype">  
 <property name="userService" ref="userService"></property>  
 <property name="smtp" ref="smtp"></property>  

 </bean>

<package name="user" namespace="/" extends="struts-default">  

 <action name="register" class="registerBean">  

 <result name="register">/templates/user/register.jsp</result>  
 <result name="input">/templates/user/register.jsp</result>  
 </action>  
 </package>
proxy = getActionProxy("/user/register.do");

struts2的action在配置时要使用bean id做为class的值。

能输出了,做一下笔记。

上一篇: rong framework 1.0 发布了
下一篇: qt Error: LNK1104: cannot open file ‘gdi32.lib’的解决办法solved