高手帮帮忙,很急,我是新手郁闷的找不出来,谢谢大家帮忙,struts(MVC)

losedirection 2006-12-05 10:49:40
1.StandardWrapperValve[action]: Servlet.service() for servlet action threw exception

javax.servlet.ServletException: For input string: "??"

javax.servlet.ServletException: For input string: "??"

2.javax.servlet.ServletException: No bean found under attribute key one
不知道这个两个错是什么原因,找也找不出来,请大家帮忙,是JBulid下
...全文
221 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
losedirection 2006-12-05
  • 打赏
  • 举报
回复
这个是Action
public class YginfoAction extends DispatchAction {
public ActionForward getFirstPage(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
//YginfoActionForm form = (YginfoActionForm) actionForm;
List list=YginfoAccess.getYginfos("");
request.setAttribute("yginfos",list);
return mapping.findForward("yginfo");
}
public ActionForward operateUpdate(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
int ygxxbh=Integer.parseInt(request.getParameter("ygxxbh"));
YginfoActionForm form=YginfoAccess.getOneYginfo(ygxxbh);
request.setAttribute("oneyginfo",form);
List htmloptionlist=BmxxAccess.getBMHttpOptionList();
request.setAttribute("htmloptionlist",htmloptionlist);
return mapping.findForward("ygupdate");
}
public ActionForward operateJsxx(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
YginfoActionForm form = (YginfoActionForm) actionForm;
int ygxxbh=form.getYgxxbh();

List jslist=XtjsbAccess.getJsxxs("");
request.setAttribute("jsxxs",jslist);
List yhjs=XtjsbAccess.getYhjsxxs(ygxxbh);
request.setAttribute("yhjsxxs",yhjs);
return mapping.findForward("xtjsb");
}
public ActionForward executeUpdate(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
return null;
}
public ActionForward executeYhjsxxs(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
return null;
}


}
losedirection 2006-12-05
  • 打赏
  • 举报
回复
那个角色表是checkbox框
losedirection 2006-12-05
  • 打赏
  • 举报
回复
是这样的:就是给一个用户付角色
ygjbxx的属性:ygxxbh,xm,yhbh、、、、、、、
xtyhb:yhbh,yhmc、、、、、、
yhjs:yhbh,jsbh、、、、、、
xtjsb:jsbh,jsxm、、、、、、
这是access类
public static List getJsxxs(String cond){
String sql="select D.jsbh,D.jsmc from ygjbxx A,xtyhb B,yhjs C,xtjsb D where A.ygxxbh=B.ygxxbh and B.yh=C.yh and C.jsbh=D.jsbh "+cond;
System.out.println(sql);
return Java_reflect.GetBeanList(sql,XtjsbActionForm.class);

}

public static List getYhjsxxs(int ygxxbh){
//String sql="select D.jsbh from ygjbxx A,xtyhb B,yhjs C,xtjsb D where A.ygxxbh=B.ygxxbh and B.yh=C.yh and C.jsbh=D.jsbh and A.ygxxbh="+ygxxbh;
String sql="select C.jsbh from ygjbxx A,xtyhb B,yhjs C where A.ygxxbh=B.ygxxbh and B.yh=C.yh and A.ygxxbh="+ygxxbh;
System.out.println(sql);
OpenDB open=new OpenDB("sqlserver");
return open.getColList(sql);

在XtjsbActionForm里只添加了两个属性jsbh,jsxm




























凉凉二点凉 2006-12-05
  • 打赏
  • 举报
回复
把你的代码贴出来
losedirection 2006-12-05
  • 打赏
  • 举报
回复
第一个不知道是不是类型不相称?
mydragon 2006-12-05
  • 打赏
  • 举报
回复
把你的程序介绍一下,贴一点代码上来,还有你的配置文件,这样才好说一些。
freedom2001 2006-12-05
  • 打赏
  • 举报
回复
第二个好象是bean与JSP里的属性对应关系不对,
第一个你打出来看看是不是乱码造成的问题

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧