hello all, I am making two pagee, one is List page which show the datas,another is a Edit page which create the new datas. the struts-config.xml: <action path="/MatterList" type="com.***.webapps.jin.admin.action.MatterListAction" name="MatterListForm" scope="request" validate="true"> <forward name="new" path="/do/MatterEdit" redirect="true"/> <forward name="success" path="/WEB-INF/jsp/job/MatterList.jsp" redirect="false" /> </action> <action path="/MatterEdit" type="com.***.webapps.jin.admin.action.MatterEditAction" name="MatterEditForm" scope="request" input="???????" validate="true"> <forward name="success" path="/WEB-INF/jsp/job/MatterEdit.jsp" redirect="false" /> </action> I want to add the validate check in MatterEditForm, how to set the input tag and redirect tag , path tag which in action tag. And there is several combobox on the Edit page, which read data from database in EditAction,I set like this < input="/WEB-INF/jsp/job/MatterEdit.jsp > ,that the value of combobox which setAttibute in Action can not be find. Please help me, thank you.
this is the combobox setting code in ActionForm try { List prefecture = PrefectureFactory.getAll(getDataSource()); for (int i = 0; i < prefecture.size(); i++) { maform.setPrefecturecode(((Prefecture) (prefecture.get(i))) .getCode()); } request.setAttribute("prefecture", prefecture); } catch (SQLException sqle) { log.fatal(sqle.getMessage()); sqle.printStackTrace(); } try { List job = JobFactory.getAll(getDataSource()); for (int i = 0; i < job.size(); i++) { maform.setJobcode(((Job) (job.get(i))).getCode()); } request.setAttribute("job", job); } catch (SQLException sqle) { log.fatal(sqle.getMessage()); sqle.printStackTrace(); } try { List customer = CustomerFactory.getAll(getDataSource()); for (int i = 0; i < customer.size(); i++) { maform .setCustomercode(((Customer) (customer.get(i))) .getCode()); } request.setAttribute("customer", customer); } catch (SQLException sqle) { log.fatal(sqle.getMessage()); sqle.printStackTrace(); } try { List customerperson = CustomerPersonFactory.getAll(getDataSource()); for (int i = 0; i < customerperson.size(); i++) { maform.setCustomerpersoncode(((CustomerPerson) (customerperson .get(i))).getCode()); } request.setAttribute("customerperson", customerperson); } catch (SQLException sqle) { log.fatal(sqle.getMessage()); sqle.printStackTrace(); } request.setAttribute(mapping.getName(), maform); __________________________________ TSUKAME EIKOU! KAGAYAKE EGAO! Yahoo! JAPAN JPC OFFICIAL INTERNET PORTAL SITE http://pr.mail.yahoo.co.jp/para/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]