wood burning stoves 2.0*
The moose likes Servlets and the fly likes Running servlets/jsp in a stand alone application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Running servlets/jsp in a stand alone application" Watch "Running servlets/jsp in a stand alone application" New topic
Author

Running servlets/jsp in a stand alone application

Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
Hi All,
Background : I have an application that uses jsp/servlets and xml files for data storage.Presently I run my application on an app server. My application does not use any of the app server APIs.
Problem Statement: I now wish to run my application as a stand alone application without an app server. I do find examples of such applications that would run an inbuilt server at command prompt.
Help Could any one suggest how to do it.
Thanks
[ October 31, 2002: Message edited by: Mohan Panigrahi ]
Roger Graff
Ranch Hand

Joined: May 29, 2001
Posts: 112
It's not possible to keep your existing servlets/JSP's without writing your own server that implements the servlet and JSP specifications. You are in fact using the app server's implementations of the Servlet and JSP specifications.
You could a command line driven user interface (or swing UI) which calls classes in your business layer to perform whatever functionality you desire.
I would start by writing a new class with a main() method that calls a business layer method to do whatever you want.
[ October 31, 2002: Message edited by: Roger Graff ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running servlets/jsp in a stand alone application
 
Similar Threads
JSP Submit from java code
help me to decide the frame work i need to use......
Is tomcat necessary?
what are the required libraries for an application client
Issue Whie Deploying EJB on JBoss AS 5.1.0...