81,094
社区成员
发帖
与我相关
我的任务
分享
List lview = DbView.DB_view_get();
/* 业务逻辑代码 */
………………
System.out.println("id="+((Dtoobject)llists.get(0)).getSobjid()); /*输出显示*/
HttpSession sess = request.getSession(false);
sess.setAttribute("supobjid", ((Dtoobject)llists.get(0)).getSobjid()); /*第一个视图的对象id,画图页面调用*/
sess.setAttribute("svid", ((Dtoobject)llists.get(0)).getScount()); /*第一个视图的id*,画图页面调用*/
sess.setAttribute("lobj",llists);
return mapping.findForward("sucess"); /*跳转到父页面*/
<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
parameter="method"
path="/login"
scope="request"
type="com.struts.action.LoginAction" >
<forward name="surcce" path="/surcce.jsp"></forward>
<forward name="fail" path="/login.jsp"></forward>
</action>
不知道你配置 struts-config.xml 文件。 我这样配置后 你的这个”return mapping.findForward("sucess"); /*跳转到父页面*/ “ 就直接跳到 surcce.jsp