struts显示空白页? 你調試一下看代碼有沒有執行到 return mapping.findForward("success"); 這裡 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 action根本没有进入!!!我改了几个地方还是跑空白~好像以前也遇过类似问题,一般是配制文件问题!有时候重改了配制莫名奇妙就好了~~ type写hellowordaction<action path="/hellowordaction" type="包。/hellowordaction" name="hellowordactionform" parameter="mehtode" scope="request" validate="false"> 对啊!我的type写错了!应该是hellowordaction,太粗心了,我试试 前面2个例子都很正常~~~为什么楼主的就空白呢~~难道是传说中的超级人品~~<form-bean name="loginForm" type="struts1.loginForm" /> <form-bean name="TestForm" type="struts1.TestForm"/> <form-bean name="hellowordactionform" type="struts1.hellowordactionform"/>/////////////////////////////////////////// <action-mappings> <action name="loginForm" path="/result" type="struts1.loginAction" scope="request" input="/result.jsp"> <forward name="success" path="/result.jsp" /> </action> <action path="/testaction" type="struts1.TestAction" name="TestForm" input="/test.jsp" scope="request"> <forward name="testsuccess" path="/test.jsp" /> </action> <action path="/hellowordaction" name="hellowordactionform" type="struts1.hellowordaction" scope="request" input="/whosayhelloword.jsp"> <forward name="sss" path="/sayhelloword.jsp" /> </action> 少见多怪!这种事情我遇多了,有时我显示不出来,关掉Eclipse,再启动,运行Tomcat居然就成功了!!找不到任何原因,没修改任何代码................ delete parameter="mehtode" try again 原因找到了!是我action的问题,其中的execute方法中的参数,必须严格按照这样的顺序(ActionMapping,ActionForm,HttpServletRequest,HttpServletResponse),调换其中任何一个的顺序都会导致不走Action 用PreparedStatement访问mssql,字符参数类型能否指定是varchar?(用sqljdbc4.jar) sping mvc配置问题? sql server 建立odbc数据源出错!! 用过Heritrix爬虫的指点我下 紧急求助:POI 操作excel里面字体的设置 哪里有好的培训呢关于测试工程师 SessionFactory问题 请问如果JMS服务器死了,客户端的信息能够在客户端保存吗? 应用程序如何使用连接池 帮忙看看这个帖,200分一并相送,在线等。 请教struts标签的问题。谢谢! hibernate 配置问题?
好像以前也遇过类似问题,一般是配制文件问题!有时候重改了配制莫名奇妙就好了~~
<action path="/hellowordaction"
type="包。/hellowordaction"
name="hellowordactionform"
parameter="mehtode"
scope="request"
validate="false">
<form-bean name="TestForm" type="struts1.TestForm"/>
<form-bean name="hellowordactionform" type="struts1.hellowordactionform"/>
/////////////////////////////////////////// <action-mappings>
<action
name="loginForm"
path="/result"
type="struts1.loginAction"
scope="request"
input="/result.jsp">
<forward name="success"
path="/result.jsp" />
</action>
<action
path="/testaction"
type="struts1.TestAction"
name="TestForm"
input="/test.jsp"
scope="request">
<forward name="testsuccess" path="/test.jsp" />
</action>
<action
path="/hellowordaction"
name="hellowordactionform"
type="struts1.hellowordaction"
scope="request"
input="/whosayhelloword.jsp">
<forward name="sss" path="/sayhelloword.jsp" />
</action>