Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / September 2004

Tip: Looking for answers? Try searching our database.

[HELP] Tomcat Questions (With PHPTriad)

Thread view: 
Gerorge Reece-Howe - 08 Sep 2004 07:19 GMT
Hi,

I am running a local server using PHP Triad and am trying unsuccessfully to
install Tomcat 5.5 so I can start learning servlets and web apps.

So far I have downloaded and run the 5.5.exe from jakarta.apache.org and am
not sure of what to do next.

I have read several documents on setting up and I have found them all very
confusing. How do I configure everything so that Tomcat works with my
existing web?

Several issues I have regarding servlets, and I hope someone can answer
these, are:

Does Tomcat run as a part of or along side Apache (1.31 for windows) or does
it replace apache?
Can I run my usual local website and link to a servlet from a standard http
files? For example, I have my Apache docroot configured to c:\webs\webroot\
will Tomcat be tied with that somehow so I could have an hyperlink to
href='http://localhost/servlet/myservlet' from the root index?

Can I post variables to a servlet from a non-servlet web page?

Is there, somewhere, a page that goes through this with painfully clear
step-by-step instructions.

Thanks

Gerorge
Frances Del Rio - 08 Sep 2004 22:28 GMT
don't know if you found answer to yr question yet.. but at any rate, I
went thru same problem, they don't have adequate instructions at
jakarta.apache...  I finally was able to configure and successfully run
tomcat on my pc, both at home and at work, following the these instructions:
http://www.onjava.com/pub/a/onjava/2001/03/29/tomcat.html

read instructions carefully and follow to the letter, it should work, I
have tomcat v. 5.0.27..  at any rate, whatever version you have I think
these instructions should work..

there's also these, although a bit more involved... but useful nonetheless..
http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Configure-Tomcat

good luck, hope this helps...

Frances

> Hi,
>
[quoted text clipped - 26 lines]
>
> Gerorge
John Fereira - 11 Sep 2004 01:34 GMT
> Hi,
>
[quoted text clipped - 4 lines]
> So far I have downloaded and run the 5.5.exe from jakarta.apache.org
> and am not sure of what to do next.

It's a .exe file.  Did you try running it?  

> I have read several documents on setting up and I have found them all
> very confusing.

What did you find confusing?  The Tomcat documentation is actually pretty
complete.  It's a fairly complex system but if you start with the
Introduction and work down through the step in the Users Guide links it's
not that difficult.  

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

> How do I configure everything so that Tomcat works with
> my existing web?

That's explained in the documentation.

> Several issues I have regarding servlets, and I hope someone can answer
> these, are:
>
> Does Tomcat run as a part of or along side Apache (1.31 for windows) or
> does it replace apache?

Sort of, yes, and yes.  Tomcat can be integrated with apache such that it
handles the rendering of servlets producing html or Java Server Pages.  It
can run by itself to render static html or it can be configured with a
Tomcat-Apache connector so that Apache renders the static html pages.

> Can I run my usual local website and link to a servlet from a standard
> http files? For example, I have my Apache docroot configured to
> c:\webs\webroot\ will Tomcat be tied with that somehow so I could have
> an hyperlink to href='http://localhost/servlet/myservlet' from the root
> index?

Yes, as long as you use a tomcat-apache connector, otherwise you need to
specify the port number of Tomcat when accessing servlets
(http://localhost:8080/myservlet)

> Can I post variables to a servlet from a non-servlet web page?

http://localhost:8080/myservlet?var=foo&var2=foo2

> Is there, somewhere, a page that goes through this with painfully clear
> step-by-step instructions.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

or...

Do a search on Amazon.com for "Tomcat".  There are numerous books on the
subject.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.