I have made a java code in eclipse. which is running properly. Now I need to make a web interface an use that code...Please tell me which is the easiest way to do it. I want to know in which language I can use that java code directly to develop the web content.
Asked
Active
Viewed 85 times
0
-
in Java? you know you can write web applications in Java, right? most likely, what you want is to import your code in a new web application, rather than to copy it – Stultuske Jun 19 '14 at 12:33
-
Forget Java applet please... Applet are not designed for web development and they got lot of problems. – lpratlong Jun 19 '14 at 12:36
-
I do not understand your question. Do you want to code something like https://ideone.com/ ?? – lpratlong Jun 19 '14 at 12:37
-
http://stackoverflow.com/questions/1283468/web-user-interface-for-a-java-application – Mustafa sabir Jun 19 '14 at 13:05
2 Answers
-1
First suggestion is to create an JSP interface for your code. Other possibility is to use JavaFX, as you can see for example in Example JavaFX code for Building a Simple GUI Application.

Mihai8
- 3,113
- 1
- 21
- 31
-1
If you turn your Java code into a RESTful webservice then you open up the possibility to call it from any language at all, including simple Javascript in a HTML file.
Recommended reading:
Wiki page: http://en.wikipedia.org/wiki/Representational_state_transfer
Java way to do RESTful webservices: https://jax-rs-spec.java.net/

Gimby
- 5,095
- 2
- 35
- 47