File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes local Tomcat install to provide web-based version of standalone app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "local Tomcat install to provide web-based version of standalone app" Watch "local Tomcat install to provide web-based version of standalone app" New topic
Author

local Tomcat install to provide web-based version of standalone app

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I think I have a solution to a problem, and I just want to see if anyone has thoughts or concerns that I may need to address. Basically, users will be interacting with my machines in a limited manner, and I want the simple interface to be web browser-based, but I need some functionality that is generally only available in a standalone app (e.g. filesystem access and I don't want to use an applet). In other words, I don't want the user to have to use a standard file-save dialog (I want the app to more automatically handle some of those things).

So anyway, I think I can get everything I want by installing Tomcat on each machine, because the server code will have filesystem access, etc. The webpage the user sees can be updated from the local Tomcat server via AJAX to show file transfer progress, etc, and instead of using a standard file save dialog, I could show whatever kind of abstracted file transfer interface I want through AJAX.

I'm going to try to code a rough implementation soon, but I'd like to hear from you if you see any mistaken assumptions I might have (or foresee any other difficulties I might encounter with this strategy). Thanks so much...
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If they have to install Java, Tomcat, and your app, what's the benefit of building it as a web app?
Why not build it with Swing or SWT?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
They don't have to install anything. We have full control of the machines, and users only have limited interaction with them. The UI designer has decent skills making pretty visuals with webpages, and I know more Java web development than I do Swing. We're also leaning towards Linux, and it seems like remote management of Tomcat might be fairly hassle free. Plus, it is possible to lock down a web browser fairly well to keep users messing with the machine in ways they shouldn't. I don't have anything against a standalone app, but this web-based approach should work well, right? We'd also have the option to display remote webpages in the same browser window (and that will most likely be necessary). We could also consider putting a browser window in a standalone app, but I'm not sure if we would benefit from that approach.
[ November 16, 2007: Message edited by: Stephen Huey ]
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
What about maintainability of these machines?

It seems it would be difficult to keep current and future revisions in sync.

How are you going to handle if one or more local servers go down.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: local Tomcat install to provide web-based version of standalone app
 
Similar Threads
File System Access.
Upload File, Save to different server
transfer downloaded binary file from local webserver to external device
how to save web page in Excel file to client's local?
Call a local shared library from browser?