Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
MVC2 question

MVC2 question

2007-09-03       - By Alexandre Seabra

 Back
Leon,

Frist of all, I wanna say hi to the community. I just sign in the
list, and hope we have a good time!

I don't remember reading a book about MVC2, but informaly, with
friends at work, this subject comes up some times. The MVC2 is not
doesn 't depend on struts. Struts uses is implemented using its
strategy. In youu message, topic 5, talk about the essetial part of
MVC2. You don't need to map all servelts. You can map ALL requests to
one same servelt and use a factory command pattern so take you request
(same strategy that actions are created).
The fact that there is only one controlled entrance to you program,
tell if you have a MVC or MVC2.
I hope I made myself clear.

Alexandre

On 9/3/07, Leon Rosenberg <rosenberg.leon@(protected)> wrote:
> 1) there is no such thing as MVC2.
> You are probably mixing things up: Model2 for JSP Development and MVC Pattern.
>
> 2) If you are talking about struts 2, there is a major difference
> between a servlet and an action, since the action incorporates both,
> request data and logic, which servlet doesnt.
>
> 3) If you are talking about struts 1, you have to take in mind, that a
> servlet is much more heavyweighted as an action.
> You can't control the servlet's creation, what you can do with
> actions, since you (or the framework for you) are creating the action
> at the point they are needed.
> You can't control number of the instances of the servlet, its servlet
> containers decision.
>
> 4) if you stick with the servlet interface you have to manage request
> dispatching yourself in each servlet, again and again.
>
> 5) You have to map each servlet in the web.xml, blowing it for an app
> which has like 100 actions.
>
> 6) It's easier to create a class hierachy with actions as with
> servlets (still its possible with servlets too), sharing generic
> methods across actions.
>
> 7) it's easier to test it with mock objects.
>
> 8). It just looks better :-)
>
> Leon
>
> On 9/1/07, debussy007 <debussy007@(protected)> wrote:
> >
> >
> > Instead of having one front servlet, have one servlet for one action.
> > Sounds more oriented object to me.
> >
> >
> > newton.dave wrote:
> > >
> > > --- debussy007 <debussy007@(protected)> wrote:
> > >> what is the benfit of having the front controller
> > >> dispatching the request to the appropriate
> > > controllers?
> > >> Why not calling the appropriate controller directly?
> > >
> > > How would you do that?
> > >
> > > d.
> > >
> > >
> > >
> > >
> > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ _____
__ ____ ___
> > > Shape Yahoo! in your own image.  Join our Network Research Panel today!
> > > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
> > >
> > >
> > >
> > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/MVC2-question-tf4219667
.html#a12437988
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Atenciosamente,
        Alexandre Seabra.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.