补充一下
--------------------------leftAction--------------------------
public class LeftAction extends Action
{
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{
LeftForm leftForm = (LeftForm) form;
Vector rs = new Vector(2);
rs.add(new LabelValueBean( "CSDN ", "001 "));
rs.add(new LabelValueBean( "百度 ", "002 ")); request.setAttribute( "custList ", rs);
return (new ActionForward(mapping.getInput()));
}
}
--------------------------leftAction--------------------------
public class LeftAction extends Action
{
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{
LeftForm leftForm = (LeftForm) form;
Vector rs = new Vector(2);
rs.add(new LabelValueBean( "CSDN ", "001 "));
rs.add(new LabelValueBean( "百度 ", "002 ")); request.setAttribute( "custList ", rs);
return (new ActionForward(mapping.getInput()));
}
}
解决方案 »
- 学会java 可以有哪些就业方向(请高手指点,初学者用得到)
- Struts2.0怎么样配置使用AjaxAnywher
- 错误“使用了未经检查或者不安全的操作”
- 关于Double类型的问题
- 关于hibernate查询一个非常困惑的问题(中文查询条件转成乱码),求救!
- 有木有人在项目中使用jquery-easyUI。我发现这个UI版本更新很快
- 请问我用Jbuilder作了一个JavaBean的jdbc访问数据库的一个程序,请问如何将其放置到实际的环境下呢?需要注意些什么问题?
- ! 关于在JSP/SREVLET中调用EJB组件的问题???
- 如何获取到C3P0连接池当前的状态
- 这个hibernate语句如何写,麻烦指点一下
- 请问,这个Struts问题怎么解决?
- 2道头疼的题目,请赐教. ~
我找找以前写的代码……