I take the approach of using JSPs as the view but I still don't use servlets as the controller. I just use them for processing requests and then have actual controller defined in other classes. This means that a JSP page will check whether a client is logged in and display some form if so but the form is submitted to the servlet that just validates that no malicious stuff is in the form, that it is valid, that the submission makes sense in the transaction process (maybe it's a duplicate submission). After all that's completed the request is made of the controller to do something. The controller being defined by a separate set of classes.
d. Wilson Edgar wrote: > hi there good people!! > > in an MVC architecture, i'm sort of using servlets as my view, i've been > basically using them to build templates of web pages, and them have some not > web-application specific classes doing all the business logic and/or > database connections. but i've been told that is wrong, that servlets should > take care of the logic, and that i should have .jsp doing the > presentation... but i also heard (from a someone who's opinion i respect) > that .jsp are just as reliable as .asp (which is not very impressing). > so what should i do... > continue developing using servlets as templates (and some front end > validation) or change it all (while still in time) and use jsp together with > servlets. > thanks in advance for your time.. > wills > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 ******************************************************************************* <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently deleting the copy you received. Thank you. ******************************************************************************* ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
