LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What do i need to use java in my websites? (https://www.linuxquestions.org/questions/linux-newbie-8/what-do-i-need-to-use-java-in-my-websites-686690/)

helptonewbie 11-27-2008 02:05 PM

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

ilikejam 11-27-2008 03:57 PM

Hi.

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

Dave

jay73 11-27-2008 04:04 PM

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).

helptonewbie 11-27-2008 04:58 PM

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

salter 11-27-2008 10:25 PM

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.


All times are GMT -5. The time now is 04:14 PM.