Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java on apache

Status
Not open for further replies.

warby1212

Programmer
Jun 9, 2003
183
AU
Hi,
I want to get into some JAVA servlet programming. Does apache support java servlets properly or do I need the SUN web server and indeed does that cost anything?
cheers and thanks for any information.
Stephen

I should write something here.
 
Apache has no problem. Ain't nothin' but a thang. Question is - does your browser have what it takes?

 
Thanks RhythmAce, but what do you mean by does my browser have what it takes?

Cheers Stephen

I should write something here.
 
Some browsers on some OSs can't handle java or java script. In the not too distant past, linux users had to disable jave and java scripts because it would freeze everything. Firefox seems to have taken care of that problem.

 
Thanks RhytmAce, I will continue my resaerch :)
cheers Stephen

I should write something here.
 
Apache by itself does not do servlets, but what you want is to setup tomcat along with apache. Then you can do dynamic pages with jsp's and servlets. Free, multiplatform, and many hosts can support it for you.

Check out the jakarta:tomcat section on tek-tips

Jeb Beasley
\0
 
Thanks for that :) I will!

cheers Stephen

I should write something here.
 
for a novice wont he just include the applet in his HTML file and away he goes? as long as accesses the applet through a competent browser, or am i wrong there?
i am about to do the same and this was my plan gulp!

Binary Intelligence, true or false?
 
Applets are different than servlets.

Applets are downloaded and run by the browser; Servlets are compiled and executed on the server.

For servlets, you'd install something like Tomcat, JBoss, Websphere, etc.

 
warby1212 asked about servlets. They run server side. Servlets running on server place no java requirements on the browser. The browser has no clue how the html got created.

Whether to use an applet or not depends where you want the processing to take place. If you want dynamic processing on the server, go with tomcat.

If you want to do processing on the client, trick menus etc., go with the applet. With applet, stay away from swing or your clients will need to download java plugin to run them.

Applets can communicate back to the server they came from for some interaction like retrieving data in the background, but that then requires somekind of script processing on the server to be very useful.

Check out the java tutorial at java.sun.com for more on applets.
hth
Jeb Beasley \0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top