LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2008, 03:05 PM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Question What do i need to use java in my websites?


Hi All,
Well as the title explains, i'd like to put some java into a webpage and i've never done this before so don't know what i need to do exactly. I have an apache server up and running but i get the feeling to use java i need to use apache tomcat... or add it to my already runnning apache server??

Can any one give a brief explaination on this so i can get started.
Cheers,
MJ
 
Old 11-27-2008, 04:57 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

All you need to do is embed your Java Applet into the web page with an <applet> tag.

Dave
 
Old 11-27-2008, 05:04 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
That would depend on what you mean by inserting java. If it is just applets, then a couple of tags will do. If you were considering server pages and servlets, then you would need a servlet container such as tomcat (which can act as a stand-alone server but which can also be combined with apache).
 
Old 11-27-2008, 05:58 PM   #4
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Thanks people, :-) didn't realise it was so simple... it is just applets.
Well i was hoping to get some sort of text edit java stuff on a webpage so i can edit some files etc. But i'll test just using a hello world type java page and see hw i go.

Thanks for the info.
MJ
 
Old 11-27-2008, 11:25 PM   #5
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
Tomcat usually uses a different port for providing (usually port 8080 AFAIK). If you have great plans for Java, then you should make Tomcat work on your server.

Also have a look on OpenLaszlo. It runs on top of tomcat and uses Java to provide Flash files created at run-time: gives a very appealing effect. It uses it's own scripting language to provide the files.

Last edited by Tinkster; 10-30-2010 at 05:04 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can ping websites, can visit websites with ip address, cannot visit with Web address TheGeneralsLounge Linux - Networking 2 03-29-2007 03:07 AM
Websites on the same ip gubak Linux - Networking 3 10-31-2006 06:25 AM
some well known websites not seen powah Linux - Networking 7 09-10-2006 01:41 AM
java can't read from some websites Ynot Irucrem Programming 10 06-07-2005 11:27 PM
Websites that sell websites..? mScDeX General 2 12-29-2003 04:01 PM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration