Stacia Carr wrote:

> I am building a site using EJBs and JSPs.
>
> In coding a user registration page I was hoping to find  an elegant solution
> for form processing (something similar to the <jsp:setproperties name="id"
> property="*"> tag used for java beans in connection with the useBean tag).
>

You will find just such a beast in a utility class in the Struts framework,
available at <http://jakarta.apache.org/struts>.  Check out the
BeanUtils.populate() method.


>
> In the Fields/Kolbs JSP text we found a diagram showing flow from jps to
> servlet to EJB in order to do form parameter sets, gets and validation.
>
> This leading us to believe that the intended method for accessing EJBS from
> a JSP is through a Java Servlet.
>
> Does anyone have any pearls of wisdom to throw down on this subject?
>

The Struts framework presents one approach to dealing with form validation, using
an MVC design approach.  It doesn't deal specifically with EJBs for the model or
the business logic -- regular JavaBeans can be used as well -- but they could
easily be integrated in a Struts-based application.

>
> Thanks-
> Stacia Carr
> [EMAIL PROTECTED]
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to