Re: converting java app to servlet



On Apr 30, 7:59 am, Shabbir (shabbi...@xxxxxxxxx) wrote:
Hi,

I have a java application with source code. I want to convert that
into a servlet in order for it to be called within a web app. The
java app has its own manifest, config.xml and .gram file, plus the
java file and the libraries (linked in teh manifest file). I have
created a new web project in netbeans, with a new servlet and copied
the code from the original java file, linked in the libraries, but
how to link the configuration and .gram (grammar) file?

Also if I am referencing a file in the servlet, where would the file
be required to be located?

Thanks in advance.

Shabbir

--
--------------------------------- --- -- -
Posted with NewsLeecher v3.9 Beta 2
Web @http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

If its only going to be access by another servlet, why make it a
servlet itself? It is already an application, so I assume it has some
sort of useful API. Just use the API!

.



Relevant Pages

  • Re: Client-Server to Web App
    ... it possible to keep a connection open to the C++ server between ... The downside is if the C/C++ server side piece is not thread safe. ... Below is a Java ... If you called this class from a standard Java Servlet, for instance, since ...
    (borland.public.delphi.non-technical)
  • Re: Velocity
    ... > If he asks me to go deep into java, there is something I need to know. ... suggest "Java Servlet Programming" by Jason Hunter, ... Finally, if you're going to do any Struts programming at all, ... you should seriously consider installing an IDE such as Eclipse ...
    (comp.lang.java.programmer)
  • Re: Java Servlet counterpart in .Net?
    ... John Timney (MVP) ... wich I can create a web application and decide if I will deploy it on Java ... The closest you probably have to a true servlet is the code behind model ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Servlet To Java Application Communication
    ... I would like to write a Java servlet that it will be able to ... way to communicate with a servlet. ... probably know you should encode the request XML in the body part of a POST ... and expect the response XML in the response content. ...
    (comp.lang.java.databases)
  • Re: Setting up a Java development environment the debian way.
    ... the static typing in Java is acknowledged as one of the ... "generics" as provided in Java 1.5+ then this problem is resolved. ... typed language can be very useful. ... The servlet spec was always a nicer beast, ...
    (Debian-User)