Hello Atishay, thanks for answer. The thing is I'm using Apache, I'm writing on
Perl or PHP, I know just basics of JSPs (as I have VB-ASP specialization on the past,
and tell the truth they're pretty close, at least familiar). I want to give my
clients access from their FTP account to one folder - public_html to control their
content, so thats why I need to deploy all not in webapps, but in htdocs. Because
other pages are served by Apache. Thts why I telling that it wolud be great to have
basic instructions about. I figure it out by myself - all works fine jsp and applets
erved by Tomcat, php,pl,cgi - by Apache, but it was pretty hard at start to make it
work together.

Thanks.

Sunday, September 26, 2004, 3:08:11 AM, you wrote:

> 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



-- 
Best regards,
 Eugene                            mailto:[EMAIL PROTECTED]


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

Reply via email to