You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2007/05/29 22:55:43 UTC
[OT] Re: [S2] Obtaining Session/Request Object
--- yitzle <yi...@users.sourceforge.net> wrote:
> So, it would seem a Strut project is a servlet. It
> runs inside the web container, receives an HTTP
> request, generates and sends an HTTP response. Meets
> all the criteria. Right? Now, how do you define a
web
> application?
You may wish to seek elsewhere for non-Struts related
questions. I'm starting to feel like we're doing your
homework for you.
A "Struts project" is not a servlet. A Struts project
might *have* a servlet (and in S1 is pretty much
guaranteed to have at least one), but in S2 they might
be considered an anomaly.
A web application is any application that runs on the
web, like a blog, or web email, or social site, or
whatever.
d.
____________________________________________________________________________________Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: [OT] Re: [S2] Obtaining Session/Request Object
Posted by "Forsberg, Mike" <mi...@amd.com>.
First off, I think the notion of sighting wikipedia as the end all be
all of a definition is highly suspect. After all, anyone can change the
Wikipedia at any time. For instance
http://en.wikipedia.org/wiki/The_Colbert_Report#_note-34
"On January 29, 2007, Colbert cited the case where Microsoft was alleged
to have hired someone [52] to tamper with Wikipedia..."
I like all the responses that Google has for define:servlet. You may
want to quote one of them for your answer.
http://www.google.com/search?q=define:Servlet
This does sound a lot like a homework question or an interview question.
Hope I helped,
-----Original Message-----
From: anexpert@gmail.com [mailto:anexpert@gmail.com] On Behalf Of yitzle
Sent: Tuesday, May 29, 2007 4:29 PM
To: Struts Users Mailing List
Subject: Re: [OT] Re: [S2] Obtaining Session/Request Object
On 5/29/07, Dave Newton <ne...@yahoo.com> wrote:
> I'm starting to feel like we're doing your
> homework for you.
I'm sorry you feel that way.
If you prefer not to reply, its your prerogative.
I am just trying to understand the technology.
> A "Struts project" is not a servlet. A Struts project
> might *have* a servlet (and in S1 is pretty much
> guaranteed to have at least one), but in S2 they might
> be considered an anomaly.
"JSPs are compiled into Java Servlets by a JSP compiler. [1]"
The way I see it, so long as the result is a JSP page, the project
contains a servlet.
Granted, one can easily write the viewer component without JSP, but I
think its fair to guess that a large percentage of Struts projects
make use of JSP pages.
> A web application is any application that runs on the
> web, like a blog, or web email, or social site, or
> whatever.
A blog, web mail or social site that was written in Java and runs on
or inside a standard server such as Tomcat would be a servlet, though.
As far as I can tell, it meets all the requirements.
It sounds like, for any program (end point; excluding containers, such
as Tomcat, Struts, etc) accessed via a browser, if it is written in
Java, it is a servlet, otherwise its a web application.
How about a solid clear definition of a servlet?
[1] http://en.wikipedia.org/wiki/JavaServer_Pages
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [OT] Re: [S2] Obtaining Session/Request Object
Posted by Dave Newton <ne...@yahoo.com>.
--- yitzle <yi...@users.sourceforge.net> wrote:
> "JSPs are compiled into Java Servlets by a JSP
> compiler. [1]" The way I see it, so long as the
> result is a JSP page, the project contains a
servlet.
Semantics.
The developer rarely, if ever, needs to care that a
JSP page is compiled into a servlet.
> A blog, web mail or social site that was written in
> Java and runs on or inside a standard server such as
> Tomcat would be a servlet, though.
You are incorrect. A blog, web mail, or social site
*may* contain *one or more* servlets. Or it may not.
As I said before.
> It sounds like, for any program (end point;
> excluding containers, such as Tomcat, Struts, etc)
Struts is not a container.
> if it is written in Java, it is a servlet, otherwise
> its a web application.
You are incorrect. A servlet may be a single component
of a web application. Web applications do not *need*
to use servlets. For example, Struts 2, a member of
the Struts family this mailing list serves, does not
use servlets. A Struts 2 web application *may* use a
servlet. As I also said before, this is relatively
unusual.
> How about a solid clear definition of a servlet?
Servlets are classes that implement the Servlet
interface.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html
*Please* do basic JEE environment research somewhere
more appropriate: there are a *ton* of resources
available on the web that explain this in great
detail.
If you have Struts-related questions this is a great
place to get them answered. Other forums are more
appropriate for asking general JEE questions.
d.
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [OT] Re: [S2] Obtaining Session/Request Object
Posted by yitzle <yi...@users.sourceforge.net>.
On 5/29/07, Dave Newton <ne...@yahoo.com> wrote:
> I'm starting to feel like we're doing your
> homework for you.
I'm sorry you feel that way.
If you prefer not to reply, its your prerogative.
I am just trying to understand the technology.
> A "Struts project" is not a servlet. A Struts project
> might *have* a servlet (and in S1 is pretty much
> guaranteed to have at least one), but in S2 they might
> be considered an anomaly.
"JSPs are compiled into Java Servlets by a JSP compiler. [1]"
The way I see it, so long as the result is a JSP page, the project
contains a servlet.
Granted, one can easily write the viewer component without JSP, but I
think its fair to guess that a large percentage of Struts projects
make use of JSP pages.
> A web application is any application that runs on the
> web, like a blog, or web email, or social site, or
> whatever.
A blog, web mail or social site that was written in Java and runs on
or inside a standard server such as Tomcat would be a servlet, though.
As far as I can tell, it meets all the requirements.
It sounds like, for any program (end point; excluding containers, such
as Tomcat, Struts, etc) accessed via a browser, if it is written in
Java, it is a servlet, otherwise its a web application.
How about a solid clear definition of a servlet?
[1] http://en.wikipedia.org/wiki/JavaServer_Pages
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org