We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,983 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

struts validator

hi every one. I have form and in that that form some of fields values are taken from request object .
and am validating fields values using struts validate() method. once i submit form if any error in fields
validate method will throws error but the request object content is get null o list will become empty. how can i retain the request object s please help me.

<html:form action="/ext/test" >
<%if ( request.getAttribute("eirbean") != null ) {
        EirBean eirbeanRequest = (EirBean) request.getAttribute("eirmbean");

        typeListList = eirmbeanRequest.getType();

    }%>


<hml:text name="test" />
 <html:select property="Type" >

                            <%
                            if(Type!=null){
                                for(ArrayList<Object> type:typeListList){%>

                                    <html:option value="<%=type.get(0).toString() %>"></html:option>

                               <% }
                            }

                            %>


                        </html:select>

</html:form>

thank you.....

2
Contributors
1
Reply
1 Day
Discussion Span
2 Months Ago
Last Updated
6
Views
chandub
Newbie Poster
16 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

hai chandub,

this is not correct place to ask questions like above

this is related javascript/DHTML/Ajax forum only

but your question is related JAVA forum

pls redirect your requirement post in JAVA forum of daniweb

you may get help from there

happy coding

radhakrishna.p
Posting Whiz in Training
260 posts since Nov 2012
Reputation Points: 29
Solved Threads: 59
Skill Endorsements: 10

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0572 seconds using 2.67MB