If you have a request- or session-scoped regular formBean called "myform", a simple call like this will output the value of property "myfield" <c:out value="${myform.myfield}" /> But with dynaBean, you have to qualify the property name with "map": <c:out value="${myform.map.myfield}" /> Hope that helps! wiwit
[EMAIL PROTECTED] 10/07/2004 11:05 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject grab form bean was Re: form reset Hey guys, Thanks for the response on my first question. Turns out I'm an idiot and was pre-filling a form element via the value parameter of a <html-el...> tag. However this now leads to a second question. How do I grab the form bean and the fields? I'd like to print the value of a form field either on an error or success. Searching the list, it looks like I can do something like this: <jsp:useBean id="myform" class="package.class" scope="session"/> <c:out value="${myform.myField}"/> Trying this in my app doesn't seem to work... any clues? I have my <action... > setup with scope "session" and my forward "success" with a redirect of "false". --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]