Drop down list population fails after validation fails

Posted by sarah on Stack Overflow See other posts from Stack Overflow or by sarah
Published on 2010-04-27T06:25:21Z Indexed on 2010/04/27 6:33 UTC
Read the original article Hit count: 166

Filed under:

Hi All,

I am polpulating data in drop down reading from request scope,i am doing validaiton of fe w field after submission i wont get data in drop down i am using struts and the corresponding form bean defn is like

  <action path="/userProcess" name="userForm"
    type="com.actions.UserManagementAction"         
            parameter="method"          
            input="/views/AddUsers.jsp"
            scope="request" > 
         <forward name="success" path="/views/User_Management.jsp" />

    </action>

and the drop down listing is

  <select name="roleName">
    <c:forEach items="${roleNames}" var="role">
      <option value="${role}">${role}</option>
     </c:forEach>
    </select>

how should i handle this ?

© Stack Overflow or respective owner

Related posts about java