下面是Action 里Execute方法
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
PorductQueryForm porductQueryForm = (PorductQueryForm) form;
try
{
DataSource sqlDataSource=getDataSource(request,"BDH_sqlServer");
Connection sqlConnection=sqlDataSource.getConnection();
Fill fill=new Fill(sqlConnection);
porductQueryForm.SetTradeList(fill.tradeList);//设置FORM LIST
porductQueryForm.SetRateList(fill.rateList);//设置FORM LIST
porductQueryForm.SetgoodsList(fill.goodsNameList);//设置FORM LIST
porductQueryForm.SetSpecification(fill.specificationList);//设置FoRM LIST
porductQueryForm.SetPackageList(fill.PackageList);//设置FORM LIST
mapping.findForward("porductQuery");
}
catch(SQLException er)
{
System.out.print(er.toString());
}
return null;
}
我想导航到ActionMapping配置文件里forward项 这里怎么写!
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
PorductQueryForm porductQueryForm = (PorductQueryForm) form;
try
{
DataSource sqlDataSource=getDataSource(request,"BDH_sqlServer");
Connection sqlConnection=sqlDataSource.getConnection();
Fill fill=new Fill(sqlConnection);
porductQueryForm.SetTradeList(fill.tradeList);//设置FORM LIST
porductQueryForm.SetRateList(fill.rateList);//设置FORM LIST
porductQueryForm.SetgoodsList(fill.goodsNameList);//设置FORM LIST
porductQueryForm.SetSpecification(fill.specificationList);//设置FoRM LIST
porductQueryForm.SetPackageList(fill.PackageList);//设置FORM LIST
mapping.findForward("porductQuery");
}
catch(SQLException er)
{
System.out.print(er.toString());
}
return null;
}
我想导航到ActionMapping配置文件里forward项 这里怎么写!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货