首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

struts2-blank-2.0.6中example

2012-03-22 
struts2-blank-2.0.6中example求助welcome.jspXML codeullia hrefs:url actionLogin_input/

struts2-blank-2.0.6中example求助
welcome.jsp

XML code
<ul>    <li><a href="<s:url action="Login_input"/>">Sign On</a></li>    <li><a href="<s:url action="Register"/>">Register</a></li></ul>

配置文件中
XML code
<action name="Login_*" method="{1}" class="example.Login">      <result name="input">/example/Login.jsp</result>      <result type="redirect-action">Menu</result></action>


点击"Sign on"连接,通过配置文件调用Login类的input()方法,

但打开Login.java发现里面根本没有input()方法……

为什么会这样,难道调用一个类中不存在的方法也能通过编译?????

[解决办法]
是不是别处定义了别名。。。

热点排行