Wrox Home  
Search P2P Archive for: Go

  Return to Index  

servlets thread: Newbie - Deploying servlets on tomcat 4.0


Message #1 by "Rudi Doku" <rudidoku@h...> on Fri, 23 Nov 2001 04:56:48
------=_NextPart_001_0000_01C17838.DEC46880
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for you input chanoch.

Cheers,

Rudi
 
 
----- Original Message -----
From: Chanoch Wiggers
Sent: 27 November 2001 04:34
To: Servlets
Subject: [servlets] Re: Newbie - Deploying servlets on tomcat 4.0
 
well, rather than making the login page the first page that comes up, you
should make sure that it is the first page in your site. In that page, yo
u
should check if the user if logged in and if not, forward the request to 
the
login page, with enough information to find the first page back. Since yo
u
check this in every page on your site you dont need to start the user in
that page, they will be forwarded there automatically if they are not log
ged
in.

chanoch

-----Original Message-----
From: Karega Scott [mailto:karega_scott@h...]
Sent: 25 November 2001 03:21
To: Servlets
Subject: [servlets] Re: Newbie - Deploying servlets on tomcat 4.0


Although I have not used WAR files, Tomcat 4 documentation says:

Copy the web application archive file into directory C:\Tomcat\webapps\.
When Tomcat is started, it will automatically expand the web application
archive file into its unpacked form, and execute the application that way
.
This approach would typically be used to install an additional applicatio
n,
provided by a third party vendor or by your internal development staff, i
nto

an existing Tomcat installation. NOTE - If you use this approach, and wis
h
to update your application later, you must both replace the web applicati
on
archive file AND delete the expanded directory that Tomcat created, and t
hen

restart Tomcat, in order to reflect your changes.



>From: "Rudi Doku" <rudidoku@h...>
>Reply-To: "Servlets" <servlets@p...>
>To: "Servlets" <servlets@p...>
>Subject: [servlets] Re: Newbie - Deploying servlets on tomcat 4.0
>Date: Sat, 24 Nov 2001 21:56:27 +1000
>
>Thanks for the help Karega Scott.
>
>I have followed your suggestion but I still have a few outstanding
>questions.
>
>1. I have built a war file for my servlet. Where should I put that?
>2. I want the first page that is displayed when tomcat starts to be
>login.jsp. The file login.jsp is in the following directory webapps\arti
st.
>I changed the contextpath setting in the server.xml file to the followin
g:
>   <!-- Tomcat Root Context -->
>      <Context path=3D"/artist" docBase=3D"artist" debug=3D"0"/>
>
>Any feedback will be very much appreciated.
>
>Cheers,
>
>Rudi
>
>
>----- Original Message -----
>From: Karega Scott
>Sent: 23 November 2001 15:00
>To: Servlets
>Subject: [servlets] Re: Newbie - Deploying servlets on tomcat 4.0
>
>
>First of all, Tomcat is case sensity. Here is the directory structure fo
r
>Tomcat.
>webapps\my directory
>webapps\my directory\WEB-INF
>webapps\my directory\WEB-INF\classes
>webapps\my directory\WEB-INF\lib
>
>Compiled Servlets can go in the classes directory, while jar file can go
 in

>the lib directory
>
>
> >From: "Rudi Doku"
> >Reply-To: "Servlets"
> >To: "Servlets"
> >Subject: [servlets] Newbie - Deploying servlets on tomcat 4.0
> >Date: Fri, 23 Nov 2001 04:56:48
> >
> >Hello,
> >I just installed the latest version of tomcat and successfully created
 a
> >jsp page.
> >
> >I would really appreciate it if someone could point me in the right
> >direction in relation to deploying servlets on tomcat. I set up my
>project
> >structure as recommended in the tomcat documentation, just for
> >standardization.
> >
> >I'm familiar with the setup of the web.xml file in relation to servlet
s.
>I
> >just need to know the directory structure under the webapps directory
> >where i should deploy my jar/class files.
> >
> >I'm only asking because I want to start of with good habits right from
>the
> >start. I'm looking on the web for some examples, but any
>hints/suggestions
> >would be very much appreciated.
> >
> >Regards,
> >
> >Rudi
> >
> >
> >---
> >SIGS Conference for Java Development
> >Targeted, focused classes, expertise level classes
> >taught by Java gurus, rigorous tutorials, and
> >exhibit floor makes SIGS Conference for Java
> >Development a learning experience unlike any
> >other. Join over 10,000 developers and programmers
> >from across the U.S. and around the world who
> >have benefited from attending SIGS/101 Conferences.
> >http://www.javadevcon.com
> >To unsubscribe send a blank email to leave-servlets-674901H@p...
om
> >
>
>
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>---
>SIGS Conference for Java Development
>Targeted, focused classes, expertise level classes
>taught by Java gurus, rigorous tutorials, and
>exhibit floor makes SIGS Conference for Java
>Development a learning experience unlike any
>other. Join over 10,000 developers and programmers
>from across the U.S. and around the world who
>have benefited from attending SIGS/101 Conferences.
>http://www.javadevcon.com
Get
>more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
>
>
>---
>SIGS Conference for Java Development
>Targeted, focused classes, expertise level classes
>taught by Java gurus, rigorous tutorials, and
>exhibit floor makes SIGS Conference for Java
>Development a learning experience unlike any
>other. Join over 10,000 developers and programmers
>from across the U.S. and around the world who
>have benefited from attending SIGS/101 Conferences.
>http://www.javadevcon.com
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.as
p


---
SIGS Conference for Java Development
Targeted, focused classes, expertise level classes
taught by Java gurus, rigorous tutorials, and
exhibit floor makes SIGS Conference for Java
Development a learning experience unlike any
other. Join over 10,000 developers and programmers
from across the U.S. and around the world who
have benefited from attending SIGS/101 Conferences.
http://www.javadevcon.com

---
SIGS Conference for Java Development
Targeted, focused classes, expertise level classes
taught by Java gurus, rigorous tutorials, and
exhibit floor makes SIGS Conference for Java
Development a learning experience unlike any
other. Join over 10,000 developers and programmers
from across the U.S. and around the world who
have benefited from attending SIGS/101 Conferences.
http://www.javadevcon.com
To unsubscribe send a blank email to $subst('Email.Unsub')G
et more from the Web.  FREE MSN Explorer download : http://explorer.msn.c
om


  Return to Index