On Sun, 26 Sep 2004 02:47:19 -0300, Eugene
<[EMAIL PROTECTED]> wrote:
> Hello,  also it would be great if they can give some information where
> and how to place jsp pages if somebody want to use Tomcat with Apache.
 by default the deployment folder is webapps. 
--------refer conf-->server.xml------------------
<host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true">

> I  figure it out by myself after some hours of learning basics of JSP.
> But  tell the truth I never seen clear instructions how exactly newbie
> can   deploy   the   page   or  application.  All  books  starts  from
there is a common deployment descriptor for all apps which is place in
conf->web.xml
> "HelloWorld.."  but  there  no  any  word about ROOT, about how to use
> custom directory under Apache or without it and things like this. I've

If u place any application in webapps it will be loaded automatically.
say i create a folder test in webapps. create a folder WEB-INF under test.
create a web.xml it containing the following
----------
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
  <display-name>This is a test folder </display-name>
  <description>
     Welcome to the test folder
  </description>
<web-app>
--------------
this is the deployment descriptor specificallty for webapplication test.
for putting java beans u need to create a classes folder under WEB-INF
and all ur java classes go in there. if u create testClass.java under
WEB-INF-->classes folder then u need the following in ur jsp page to
access it.
=========
<jsp:useBean id="myclass" class="testClass"/>
=========
under test u can put jsp pages.
to access jsp pages u need to type
http://localhost:8080/test

test will be automatically loaded because appBase is webapps as per
our settings in server.xml
other wise we need to add a context in server.xml under <host> to load
the application.


> discovered that the balancers theme also looks like some kind of black
> magic and not just for me.
> 
> Sunday, September 26, 2004, 2:21:52 AM, you wrote:
> 
> > On Sat, Sep 25, 2004 at 09:44:20PM -0700, hbklau wrote:
> > : I have a few questions here. I am running tomcat 5 on my windows 98. It goes
> > : like this, I had deleted the index.jsp but how come i still able to view the
> > : index.jsp when i type http://locahost:8080?
> 
> > Sounds like you tried to customize one of the demo apps.  This usually
> > isn't a good idea, since those JSPs come precompiled and are thus
> > hard-mapped as servlets in web.xml.
> 
> > You want to start from scratch.  Follow the instructions on the Tomcat
> > website for "first webapp" or something of that nature.
> 
> > For the Tomcat developers: is there a need for a "blank" sample webapp,
> > for which JSPs aren't precompiled and users can directly tweak?  (This
> > app may already exist; I've never poked through the demos.)  I volunteer
> > to create one. That should reduce confusion with the newer users and
> > trim list traffic accordingly.
> 
> > -QM
> 
> -- 
> Best regards,
>  Eugene
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
:)
Atishay Kumar
Btech, SEM VII
DA-IICT
Gandhinagar - 382009
India
ph: +91 9825383948
/****************************************************************************
 * Learn the rules as you would need them to break them properly *
 ****************************************************************************/

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

Reply via email to