Вопрос

link1 is my non-object oriented version of simulation program.

link2 is an object oriented version of simulation(modified version of link1).

One of the file(simtext.java) in this program produces output on stdout by taking 3 command line arguments. Currently this program is built on eclipse, compiled/interpreted using java 7 tools.

Going further, For a single user, I want capability of giving 3 inputs on browser and see the output on browser rather than stdout/stdin respectively.

What are the elements that am suppose to think of as an approach to make it browser based?

I know this is very basic question, but am new to browser world.

Это было полезно?

Решение

Typically you get a Web container such as Tomcat and then you create an HTML page with a form that submits to a Java Servlet that you create. You can get a lot fancier with JSPs or JSF but a plain Servlet based application should get you started.

Другие советы

You could look at web development frameworks like Vaadin, which take care of the most frequent programming tasks if you want to deliver online. Usually there's great documentation and easy tutorials to get you started available and your output will actually look nice.

There're a lot of those frameworks out there, so if you have trouble choosing you could look at a comparison.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top