+ 8

How do you connect a java program to a web page??

What is needed to connect a java program to a web page for gathering data from the user, querying a database, and reporting the results back to the web page? ty!

5th Aug 2018, 11:56 PM
Lisa F
Lisa F - avatar
9 Respuestas
+ 9
Use WebAssembly to compile high level language functions of C, Python or Java to low level browser codes which are callable by JavaScript on web apps or websites. https://stackoverflow.com/a/47483989
6th Aug 2018, 10:17 AM
Calviղ
Calviղ - avatar
6th Aug 2018, 6:28 AM
Jerome Esplana
Jerome Esplana - avatar
+ 4
if i understand this correctly the progression of technologies are that java applets were the past, jsps are today, and webassembly is the future? thanks.
7th Aug 2018, 12:39 PM
Lisa F
Lisa F - avatar
+ 3
ty Calvin! webassembly is fascinating. do you think it will become an inevitable new standard ??
6th Aug 2018, 11:43 AM
Lisa F
Lisa F - avatar
+ 3
I think WebAssembly has phenomenal potential, due to it enables powerful high level languages to precompile into browsers native codes that available for web applications. Imagine the real time C applications, operating systems and other powerful graphic software like Adobe and Autocad software that could be executed seamlessly with high performance on our browsers, readily available on internet. It would be a game changer.
6th Aug 2018, 12:36 PM
Calviղ
Calviղ - avatar
+ 2
Use applets in java. First write your applet and compile. Then add it your page by using <applet code="FILE_NAME.class"></applet tag. But this wouldn't work for chrome. Try IE or firefox
6th Aug 2018, 4:22 PM
Seniru
Seniru - avatar
6th Aug 2018, 10:10 AM
Martin De Jonge
+ 1
Use JSPs for your HTML code for the website, you can use AJAX to make asynchronous calls to Java Servlet where you can implement the bit of the code where you query a database and get the resultsets. JSPs allow you to also add bits of Java code in them. IDEs such as NetBeans allow you to create a Web Project with all these components easily. https://stackoverflow.com/questions/4112686/how-to-use-servlets-and-ajax
6th Aug 2018, 2:17 PM
Prava
0
yups
6th Aug 2018, 7:52 PM
Hizkia Mangihut
Hizkia Mangihut - avatar