• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applets and JSPs  RSS feed

 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I am use to programming client-side applications. I am trying to convert my application (consisting of multiple java classes) to a web application. It essentially has a GUI, takes in data using files stored on the Client's machine and outputs data (both in files and graphically). My question is simple:

Should I use an applet of JSPs to do this?
[ October 03, 2007: Message edited by: Sam Bluesman ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You haven't really given enough information to advise on that. Web apps can do all those things (file upload, file download, create and show graphics), so that's not a criterion to go by.

Generally, applets are out, and web apps are in. Is there serious client-side processing going on? Also, unless you want to get into AJAX, web apps have a page metaphor, which is not appropriate for all GUIs. Applets can avoid that.
[ October 03, 2007: Message edited by: Ulf Dittmer ]
 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah there is some serious data processing that must go on, given a set of input text files.

Basically, the program takes in 2 text files (one of which can be up to 2Mb). This is taken in through a front end. Thhen there is a lot of data processing that goes on and file creation that is based on this data. The files generated are then used to generate a graphical output.

Are there any good places you know of that can guide me on this? - and yes... - i HAVE tried google.com!

Ulf: Could you tell me what exactly you mean by Web Apps?

Ihave created one in Netbeans but im running an applet at the moment -i.e. my applet is my web app.

Thanks
[ October 03, 2007: Message edited by: Sam Bluesman ]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your program already has a Swing/AWT GUI, then it should be not too difficult to convert it to an applet.

Be aware that applets are subject to many security restrictions; for example, applets by default cannot access the local file system of the client computer they're running on.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By web app I mean Java code (plus related HTML/CSS/JavaScript/images) based on the Servlet/JSP API which runs in a servlet container like Tomcat. An applet can be part of a web app, but the main code would live in the servlets on the server.
 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys - i guess i'll be looking at servlets and JSP. No doubt I'll have questions in the near future!

Thanks again
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!