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]