首页面下拉框内容状态的保持 博客分类: 2006年以前项目总结 JSPXML
程序员文章站
2024-03-19 15:45:40
...
(1)将该form定义为ValidatorForm
public class Tab_ch_userfeedbackForm extends ValidatorForm {
。。。。
}
(2)strutus-config.xml文件修改
<action path="/Tab_ch_userfeedback/list" parameter="list" type="com.srt.vas.colortone.backgroud.controller.Tab_ch_userfeedbackAction"
scope="session" name="tab_ch_userfeedbackForm" validate="false">
<forward name="success" path="/page/Tab_ch_userfeedback/summary.jsp"/>
</action>
(3)相应的ActionForward performLis
request.setAttribute("tab_ch_userfeedbackForm", form);
(4)调用的jsp页面在页头增加
<%
Tab_ch_userfeedbackForm tab_ch_userfeedbackForm = new Tab_ch_userfeedbackForm();
if (request.getAttribute("tab_ch_userfeedbackForm") != null) {
tab_ch_userfeedbackForm = (Tab_ch_userfeedbackForm)request.getAttribute("tab_ch_userfeedbackForm");
}
%>
public class Tab_ch_userfeedbackForm extends ValidatorForm {
。。。。
}
(2)strutus-config.xml文件修改
<action path="/Tab_ch_userfeedback/list" parameter="list" type="com.srt.vas.colortone.backgroud.controller.Tab_ch_userfeedbackAction"
scope="session" name="tab_ch_userfeedbackForm" validate="false">
<forward name="success" path="/page/Tab_ch_userfeedback/summary.jsp"/>
</action>
(3)相应的ActionForward performLis
request.setAttribute("tab_ch_userfeedbackForm", form);
(4)调用的jsp页面在页头增加
<%
Tab_ch_userfeedbackForm tab_ch_userfeedbackForm = new Tab_ch_userfeedbackForm();
if (request.getAttribute("tab_ch_userfeedbackForm") != null) {
tab_ch_userfeedbackForm = (Tab_ch_userfeedbackForm)request.getAttribute("tab_ch_userfeedbackForm");
}
%>