This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

web hosting my app  RSS feed

 
Ed Dablin
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I do the following (alternatively, what do I need to learn to do the following):
I've written a Java app that asks for you name and replies "Hello, name".
How do I host this on the internet?
For example, do I ftp the class and expect my hosting company to run it on their JVM?
Or do I upload the source code and compile it on the server?
Or do I need to learn a new technology like servlets and JSP?
When I try to find simple answers on forums, I get lost in a maze of Tomcats, Apaches, Ajaxs and stuff I don't know about.
I am not looking for a detailed explanation, just a simple roadmap of what I have to do next
 
Campbell Ritchie
Marshal
Posts: 55751
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about writing it as an applet and embedding it in your webpage? I know that is an old‑fashioned method nowadays, however.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, applets are obsolete. Using servlet, you would upload the servlet class file. Using JSP, you would upload the JSP file. Either way, you need a hosting company that supports Java hosting - not all do. You can test that it's working beforehand by installing Tomcat on your machine. Apache is not needed.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!