急,页面跳转错误 把你的Struts-config.xml帖出来看看! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是的,还有你的*Action.java文件也帖出来看下 谢谢两位捧场。返回按钮<logic:equal name="Act08Form" property="syorikubn" value="0"> <td width="300"> <INPUT type="button" STYLE="BACKGROUND-COLOR:#3399CC ;COLOR:#FFFFFF ;font-size:16px ;HEIGHT:35px; WIDTH:150px" value="戻る" class="Button1" onclick="Javascript:doaction('/apply/Act08Action.do?action=back')"> </td></logic:equal> struts-config。xml<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config> <form-beans> <form-bean name="Act01Form" type="jp.co.jn.apply.business.act01.Act01Form" /> <form-bean name="Act02Form" type="jp.co.jn.apply.business.act02.Act02Form" /> <form-bean name="Act03Form" type="jp.co.jn.apply.business.act03.Act03Form" /> <form-bean name="Act06Form" type="jp.co.jn.apply.business.act06.Act06Form" /> <form-bean name="Act07Form" type="jp.co.jn.apply.business.act07.Act07Form" /> <form-bean name="Act08Form" type="jp.co.jn.apply.business.act08.Act08Form" /> <form-bean name="Act11Form" type="jp.co.jn.apply.business.act11.Act11Form" /> </form-beans> <global-forwards> <forward name="apply01" path="/applyWeb/personal.jsp" /> <forward name="apply02" path="/applyWeb/apply02.jsp" /> <forward name="apply03" path="/applyWeb/apply03.jsp" /> <forward name="apply04" path="/applyWeb/apply04.jsp" /> <forward name="apply05" path="/applyWeb/apply05.jsp" /> <forward name="apply06" path="/applyWeb/group.jsp" /> <forward name="apply07" path="/applyWeb/apply07.jsp" /> <forward name="apply08" path="/applyWeb/apply08.jsp" /> <forward name="apply09" path="/applyWeb/apply09.jsp" /> <forward name="apply10" path="/applyWeb/apply10.jsp" /> <forward name="apply11" path="/applyWeb/apply11.jsp" /> </global-forwards> <action-mappings> <action input="apply01" name="Act01Form" path="/Act01Action" scope="request" type="jp.co.jn.apply.business.act01.Act01Action"> <forward name="success" path="/applyWeb/apply02.jsp" /> </action> <action input="apply02" name="Act02Form" path="/Act02Action" scope="session" type="jp.co.jn.apply.business.act02.Act02Action"> <forward name="success" path="/applyWeb/apply03.jsp" /> <forward name="upd" path="/applyWeb/apply02.jsp" /> <forward name="back" path="/applyWeb/personal.jsp" /> <forward name="success1" path="/applyWeb/apply08.jsp" /> <forward name="success2" path="/applyWeb/apply11.jsp" /> </action> <action input="apply03" name="Act03Form" path="/Act03Action" scope="session" type="jp.co.jn.apply.business.act03.Act03Action"> <forward name="check" path="/applyWeb/apply04.jsp" /> <forward name="back" path="/applyWeb/apply02.jsp" /> <forward name="back2" path="/applyWeb/apply03.jsp" /> <forward name="back3" path="/applyWeb/apply02.jsp" /> <forward name="back4" path="/applyWeb/group.jsp" /> <forward name="download" path="/applyWeb/personal.jsp" /> <forward name="success" path="/applyWeb/apply05.jsp" /> <forward name="success2" path="/applyWeb/apply07.jsp" /> </action> <action input="apply06" name="Act06Form" path="/Act06Action" scope="session" type="jp.co.jn.apply.business.act06.Act06Action"> <forward name="success" path="/applyWeb/apply03.jsp" /> <forward name="upd" path="/applyWeb/group.jsp" /> <forward name="success1" path="/applyWeb/apply08.jsp" /> </action> <action input="apply08" name="Act08Form" path="/Act08Action" scope="session" type="jp.co.jn.apply.business.act08.Act08Action"> <forward name="check" path="/applyWeb/apply09.jsp" /> <forward name="back" path="/applyWeb/apply02.jsp" /> <forward name="back2" path="/applyWeb/apply08.jsp" /> <forward name="success" path="/applyWeb/apply05.jsp" /> <forward name="success2" path="/applyWeb/apply07.jsp" /> <forward name="back4" path="/applyWeb/group.jsp" /> </action> <action input="apply11" name="Act11Form" path="/Act11Action" scope="session" type="jp.co.jn.apply.business.act11.Act11Action"> <forward name="back" path="/applyWeb/apply02.jsp" /> <forward name="upload" path="/applyWeb/apply11.jsp" /> </action> </action-mappings> <controller> <set-property property="inputForward" value="true" /> </controller> <message-resources parameter="apply.resources.msg" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" /> </plug-in> </struts-config> action/* * システム :Web電子申請システム * クラス名 :証明書申請書-入力アクションクラス * 作成 :2008/03/25 HRK * 著作権表示 :*/package jp.co.jn.apply.business.act08;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.apache.struts.action.Action;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionForward;import org.apache.struts.action.ActionMapping;import jp.co.jn.apply.com.sys.*;import javax.servlet.http.HttpSession;/** * 証明書申請書-入力アクション クラス * @version 1.0 * @author HRK */public class Act08Action extends Action { /** * Constructor */ public Act08Action() { super(); } /** * ACTIONクラス中様様な機能を実行する * * @param mapping ActionMapping * @param form ActionForm * @param request HttpServletRequest * @param response HttpServletResponse * @throws Exception * @since 1.0 */ public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { Command Act08command = null; ActionErrors errors = new ActionErrors(); ActionForward forward = new ActionForward(); HttpSession session = request.getSession(true); String action = request.getParameter("action"); if(!this.isTokenValid(request)) { if(!action.equals("back3") && !action.equals("back4") && !action.equals("download")){ forward = mapping.findForward("syserror"); return forward; }else{ this.resetToken(request); this.saveToken(request); } } else { this.resetToken(request); this.saveToken(request); } if("download".equals(action)){ Act08command =new Act08CreatePdfCommand(); Act08command.action(mapping,form,request,response,errors,forward); } if(!errors.isEmpty()) { saveErrors(request, errors); forward = mapping.getInputForward(); return (forward); } if("check".equals(action)) { forward = mapping.findForward("check"); }else if("back".equals(action)){ forward = mapping.findForward("back"); }else if("back2".equals(action)){ forward = mapping.findForward("back2"); }else if("back3".equals(action)){ forward = mapping.findForward("back3"); }else if("back4".equals(action)){ forward = mapping.findForward("back4"); }else if("download".equals(action)){// forward = mapping.findForward("download");// return null; forward = mapping.findForward(null); }else if("success".equals(action)){ forward = mapping.findForward("success"); }else if("success2".equals(action)){ forward = mapping.findForward("success2"); } return (forward); }} if(!action.equals("back3") && !action.equals("back4") && !action.equals("download")){ forward = mapping.findForward("syserror"); 这里不是转走了吗? 建议你继承这个类DispatchAction,而不是Action类,这样就不用用这么多的if语句了! 没用,我加了&& !action.equals("back") 后也没作用。和原来一样 关于邮件群发的问题【请您放下脚步进来指教一二,谢谢!】 学习j2ee的过程 java上传附件问题! spring管理session事务 关闭远程桌面,为什么tomcat会自动关闭 大家来看看为什么我的ActionForm不能得到FormFile,谢谢 求《开发自己的搜索引擎——Lucene 2.0+Heriterx》这本书的示例源代码! jboss的问题 搞不掂了 : Weblogic6.1下EJB部署问题 帮忙看看这个错误什么意思? ejb3.0 webservice 获得IP? 请问,如何获得ejb3.0 webservice 的调用者的IP??谢谢
<td width="300">
<INPUT type="button" STYLE="BACKGROUND-COLOR:#3399CC ;COLOR:#FFFFFF ;font-size:16px ;HEIGHT:35px; WIDTH:150px" value="戻る" class="Button1" onclick="Javascript:doaction('/apply/Act08Action.do?action=back')">
</td>
</logic:equal>
struts-config。xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="Act01Form" type="jp.co.jn.apply.business.act01.Act01Form" />
<form-bean name="Act02Form" type="jp.co.jn.apply.business.act02.Act02Form" />
<form-bean name="Act03Form" type="jp.co.jn.apply.business.act03.Act03Form" />
<form-bean name="Act06Form" type="jp.co.jn.apply.business.act06.Act06Form" />
<form-bean name="Act07Form" type="jp.co.jn.apply.business.act07.Act07Form" />
<form-bean name="Act08Form" type="jp.co.jn.apply.business.act08.Act08Form" />
<form-bean name="Act11Form" type="jp.co.jn.apply.business.act11.Act11Form" />
</form-beans>
<global-forwards>
<forward name="apply01" path="/applyWeb/personal.jsp" />
<forward name="apply02" path="/applyWeb/apply02.jsp" />
<forward name="apply03" path="/applyWeb/apply03.jsp" />
<forward name="apply04" path="/applyWeb/apply04.jsp" />
<forward name="apply05" path="/applyWeb/apply05.jsp" />
<forward name="apply06" path="/applyWeb/group.jsp" />
<forward name="apply07" path="/applyWeb/apply07.jsp" />
<forward name="apply08" path="/applyWeb/apply08.jsp" />
<forward name="apply09" path="/applyWeb/apply09.jsp" />
<forward name="apply10" path="/applyWeb/apply10.jsp" />
<forward name="apply11" path="/applyWeb/apply11.jsp" />
</global-forwards>
<action-mappings>
<action input="apply01" name="Act01Form" path="/Act01Action" scope="request" type="jp.co.jn.apply.business.act01.Act01Action">
<forward name="success" path="/applyWeb/apply02.jsp" />
</action>
<action input="apply02" name="Act02Form" path="/Act02Action" scope="session" type="jp.co.jn.apply.business.act02.Act02Action">
<forward name="success" path="/applyWeb/apply03.jsp" />
<forward name="upd" path="/applyWeb/apply02.jsp" />
<forward name="back" path="/applyWeb/personal.jsp" />
<forward name="success1" path="/applyWeb/apply08.jsp" />
<forward name="success2" path="/applyWeb/apply11.jsp" />
</action>
<action input="apply03" name="Act03Form" path="/Act03Action" scope="session" type="jp.co.jn.apply.business.act03.Act03Action">
<forward name="check" path="/applyWeb/apply04.jsp" />
<forward name="back" path="/applyWeb/apply02.jsp" />
<forward name="back2" path="/applyWeb/apply03.jsp" />
<forward name="back3" path="/applyWeb/apply02.jsp" />
<forward name="back4" path="/applyWeb/group.jsp" />
<forward name="download" path="/applyWeb/personal.jsp" />
<forward name="success" path="/applyWeb/apply05.jsp" />
<forward name="success2" path="/applyWeb/apply07.jsp" />
</action>
<action input="apply06" name="Act06Form" path="/Act06Action" scope="session" type="jp.co.jn.apply.business.act06.Act06Action">
<forward name="success" path="/applyWeb/apply03.jsp" />
<forward name="upd" path="/applyWeb/group.jsp" />
<forward name="success1" path="/applyWeb/apply08.jsp" />
</action>
<action input="apply08" name="Act08Form" path="/Act08Action" scope="session" type="jp.co.jn.apply.business.act08.Act08Action">
<forward name="check" path="/applyWeb/apply09.jsp" />
<forward name="back" path="/applyWeb/apply02.jsp" />
<forward name="back2" path="/applyWeb/apply08.jsp" />
<forward name="success" path="/applyWeb/apply05.jsp" />
<forward name="success2" path="/applyWeb/apply07.jsp" />
<forward name="back4" path="/applyWeb/group.jsp" />
</action>
<action input="apply11" name="Act11Form" path="/Act11Action" scope="session" type="jp.co.jn.apply.business.act11.Act11Action">
<forward name="back" path="/applyWeb/apply02.jsp" />
<forward name="upload" path="/applyWeb/apply11.jsp" />
</action>
</action-mappings> <controller>
<set-property property="inputForward" value="true" />
</controller> <message-resources parameter="apply.resources.msg" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
</struts-config>
/*
* システム :Web電子申請システム
* クラス名 :証明書申請書-入力アクションクラス
* 作成 :2008/03/25 HRK
* 著作権表示 :
*/package jp.co.jn.apply.business.act08;import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;import jp.co.jn.apply.com.sys.*;
import javax.servlet.http.HttpSession;/**
* 証明書申請書-入力アクション クラス
* @version 1.0
* @author HRK
*/public class Act08Action extends Action { /**
* Constructor
*/
public Act08Action() { super(); }
/**
* ACTIONクラス中様様な機能を実行する
*
* @param mapping ActionMapping
* @param form ActionForm
* @param request HttpServletRequest
* @param response HttpServletResponse
* @throws Exception
* @since 1.0
*/
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception { Command Act08command = null;
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward();
HttpSession session = request.getSession(true);
String action = request.getParameter("action"); if(!this.isTokenValid(request)) {
if(!action.equals("back3") && !action.equals("back4") && !action.equals("download")){
forward = mapping.findForward("syserror");
return forward;
}else{
this.resetToken(request);
this.saveToken(request);
}
} else {
this.resetToken(request);
this.saveToken(request);
}
if("download".equals(action)){
Act08command =new Act08CreatePdfCommand();
Act08command.action(mapping,form,request,response,errors,forward);
} if(!errors.isEmpty()) {
saveErrors(request, errors);
forward = mapping.getInputForward();
return (forward);
} if("check".equals(action)) {
forward = mapping.findForward("check");
}else if("back".equals(action)){
forward = mapping.findForward("back");
}else if("back2".equals(action)){
forward = mapping.findForward("back2");
}else if("back3".equals(action)){
forward = mapping.findForward("back3");
}else if("back4".equals(action)){
forward = mapping.findForward("back4");
}else if("download".equals(action)){
// forward = mapping.findForward("download");
// return null;
forward = mapping.findForward(null);
}else if("success".equals(action)){
forward = mapping.findForward("success");
}else if("success2".equals(action)){
forward = mapping.findForward("success2");
} return (forward); }
}
forward = mapping.findForward("syserror");
这里不是转走了吗?