converting java app to servlet

S

shabbir_a

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
 
D

Daniel Pitts

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top