wangxiaoenen 2015-06-23 14:03 采纳率: 0%
浏览 1392

MyEclipse和Tomcat的问题 求哪位大神帮忙指教一下拜托拜托急急急

这是Action包里的

package com.bus.cnu.action;

import com.carver.ptm.core.persistence.base.BaseDao;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.bus.cnu.service.*;

import com.bus.cnu.vo.BusRoundExceptionManage;

public class DoorExceptionManageAction extends BaseAction {

private static final long serialVersionUID=1L;

private IBusRoundExceptionManageService busroundexceptionmanageservice;

public String QuaryAll(){

HttpServletRequest request=ServletActionContext.getRequest();

List brems=busroundexceptionmanageservice.queryAll();

request.setAttribute("BREMS", brems);

return "success";

}

public String GetBREM(){

HttpServletRequest request=ServletActionContext.getRequest();

Integer bremid=Integer.parseInt(request.getParameter("bremid"));

BusRoundExceptionManage brem=busroundexceptionmanageservice.GetBusRoundExceptionById(bremid);

request.setAttribute("BREM", brem);

return "success";

}

public String GetUpdateBREM(){

HttpServletRequest request=ServletActionContext.getRequest();

Integer bremid=Integer.parseInt(request.getParameter("bremid"));

BusRoundExceptionManage brem=busroundexceptionmanageservice.GetBusRoundExceptionById(bremid);

request.setAttribute("BREM", brem);

return "success";

}

public String Update(){

HttpServletRequest request=ServletActionContext.getRequest();

Integer bremid=Integer.parseInt(request.getParameter("bremid"));

String reason=request.getParameter("manage");

BusRoundExceptionManage brem=busroundexceptionmanageservice.GetBusRoundExceptionById(bremid);

brem.setReason(reason);

if(busroundexceptionmanageservice.Update(brem)){

return "success";

}

return "fail";

}

public IBusRoundExceptionManageService getBusroundexceptionmanageservice() {

return busroundexceptionmanageservice;

}

public void setBusroundexceptionmanageservice(

IBusRoundExceptionManageService busroundexceptionmanageservice) {

this.busroundexceptionmanageservice = busroundexceptionmanageservice;

}

public static long getSerialversionuid() {

return serialVersionUID;

}

}

这是Struts里的
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">





/common/login.jsp
/common/main.jsp

    <action name="QueryAll" class="DoorExceptionManageAction" method="QuaryAll"> 
        <result name="success">/dispatcher/door_abnormal.jsp</result>

    </action>

    <action name="GetBREM" class="DoorExceptionManageAction" method="GetBREM"> 
        <result name="success">/dispatcher/door_abnormal_detail.jsp</result>

    </action>

    <action name="GetUpdateBREM" class="DoorExceptionManageAction" method="GetUpdateBREM"> 
        <result name="success">/dispatcher/abnormal_handle.jsp</result>
    </action>

    <action name="Update" class="DoorExceptionManageAction"> 
        <result name="success">/dispatcher/abnormal_handle_next.jsp</result>
        <result name="fail">/dispatcher/door_abnormal_detail.jsp</result>
    </action>
</package>


这是报错截图
图片说明

  • 写回答

2条回答 默认 最新

  • Carry_Dominator 2015-06-23 14:23
    关注

    500错误都是服务器端的错误,你去百度一下tomcat参数配置!

    评论

报告相同问题?

悬赏问题

  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python