Maybe you should start with;

http://java.sun.com/products/servlet/articles/tutorial/

Instead of wikipedia or the struts documentation.

When you've got a grasp of what servlets and webapps are, then it might be
time to re-visit struts.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle
Sent: 29 May 2007 18:57
To: Struts Users Mailing List
Subject: Re: [S2] Obtaining Session/Request Object

On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- yitzle <[EMAIL PROTECTED]> wrote:
> > Now I need to figure out what classifies a Servlet vs a Web 
> > Application.
>
> Er...
>
> In case you're serious, a servlet is part of a web application.
>
> d.

Let me see if I get this...
According to Wikipedia: "A Servlet is an object that receives a request
(ServletRequest) and generates a response (ServletResponse) based on the
request. [1]"
Shouldn't that make a web server a servlet? Or must it be a Java Object?
Tomcat is a web application.
Struts2 is a framework. It basically provides a bunch of pre-built classes
and interfaces, and allows a MVC setup. The controller gets the request. The
model does some business logic and the viewer generates a response. The
viewer uses JSP, and JSPs are turned into servlets.
Is the model a web application? A web servlet? Or just a normal Java Object
(POJO?) that I need to make SessionAware?

[1] http://en.wikipedia.org/wiki/Servlet

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to