"Daniel Wang" <> wrote:
>How do I access the form bean in struts?
>
>For example, the bean called formBean has a method called isError(String
>param).
>
>Suppose the user enters information in Form.jsp and gets redirected to the
>action, and then because he missed some required fields, is sent back to
>Form.jsp. How would I get the formBean, and how would I call the above
>method?
From your JSP page you use the Struts HTML tags. Look here:
http://jakarta.apache.org/struts/use...ruts-html.html
If you need to make a decision based on the isError property, you can
query it with the Struts Logic tags:
http://jakarta.apache.org/struts/use...uts-logic.html
But it's often easier to query bean properties and make decisions by
using the JSTL tags:
http://www.manning-source.com/books/...ayern_apxA.pdf
--
Tim Slattery