At 1:26 PM -0700 8/5/01, ericdev wrote:
>scenario:
>Need to sign up a user. What is the right way of doing so in the MVC? I
>assume the following:
>
>Java Server Pages Model 2 Semantics
>1) Input.jsp : has no java bean, forwards to controller jsp

No. Controller == servlet. Servlet forwards to JSP if you REALLY must use JSP.

>2) Controller jsp : looks around for parameter passed, and forwards again to
>right place
>should do error checking here, to avoid persisting to beans, in the case of
>faulty input

This should be .java, not .jsp. And input validation should be in
field classes (.java). See below.

Why not lose the JSP and use http://virtualschool.edu/jwaa instead?
It's demo has a login class that does exactly what you want. Less
overhead, more secure, and designed with MVC in mind from the outset
unlike JSP. Detects errors at compile time. And so forth.
--
   For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
Based on Java Web Application Architecture: http://virtualschool.edu/jwaa
Brad Cox, Ph.D.; [EMAIL PROTECTED] 703 361 4751

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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