Created a jsp, whose struts config
<action
       path="/PrepareFacilityAction"
       type="PrepareFacilityAction"
       name="FacilityForm"
       scope="session"
       validate="false"
       input="/pages/Facility.jsp">
<forward name="success" path="/pages/Facility.jsp" redirect="false"/>
    </action>
    <action
       path="/DispatchFacilityAction"
       type="DispatchFacilityAction"
       name="FacilityForm"
       scope="session"
       validate="true"
       input="/pages/Facility.jsp"
       parameter="method">
<forward name="successSave" path="/PrepareFacilityAction.do" redirect="false"/> <forward name="successReturn" path="/PrepareSummAction.do" redirect="false"/>
    </action>


In the JSP have comboboxes.

PrepareFacilityAction

.....
....
request.setAttribute("List1", getList1(form));
...........
...........

The Jsp the combox is filled
...........
..........
<html:select name="FacilityForm" property="selected">
<html:options collection="List1" property="value" labelProperty="label"/>
                       </html:select>

..............
................



The JSP displayes fine with all the values in it. This JSP has required fields in it. Used validator.xml to define al lthe required fields.

There is a Save Button which is the submit button in the JSP. When clicked on Save want the validations to be done and be in the same JSP.

When Clicked on Save, it is not going into the DispatchFacilityAction

But getting the error in JSP
Cannot find bean under name List1 ------ This List1 was in the request when the JSP originally displayed.

Why is this?

How to fix this.

I hope I am clear with my explanation.

Thanks.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to