Simplest route to creating a browser-accessible Java application -


context:

i have created 'desktop' (console-based) java application in eclipse. using several third-party apis me logic of application. there's 1000 lines of java code.

i make application browser-accessible. require few buttons , few tables. buttons (including file upload button), upon being clicked, run 1000-line java code, , output text results table or two. might require few drop down boxes. matters, application accessed through typical web browser.

in project, have used asp .net web forms (c#) create browser-accessible web application , extremely straight forward. dragged , dropped buttons , tables required. , coded logic behind each button, , pressed "play" usable through local web browser. css styling through vs make pretty if need be.

questions:

  1. sorry simplistic nature, "java version" of asp .net c# web forms? - is, drag , drop ui components web form can tack code behind, can deployed browser.
  2. what's "fastest" route can take achieve goal? wish deploy console-based java application browser-accessible stand-alone application. needs run on local machine.

notes:

from reading have done, appears can use javafx purpose? - is, create ui , code backend. , apparently, can package desktop-based javafx application runnable through browser.

i apologise shortcomings of question/context; tried keep succinct may have generalised bit. not in greatest mindset @ moment...

as question 1, javafx. has ui builder, , can deployed web desktop.

as general question, there dozens of solutions, many of cover here. straightforward , common solution write servlet. have mapping http urls , request parameters appropriate model objects , convert model objects html yourself.

built on top of plenty of tools can request mapping (jax-rs, jax-ws, spring mvc, ...), , conversion model html (jsp, apache velocity, ...), , in between.

in addition servlets , javafx, there several other options such gwt , flex. figuring out 1 "fastest" broad , subjective question , best can list options.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -