put application on server ??!!!!  
Author Message
james





PostPosted: 2004-1-28 0:24:00 Top

java-programmer, put application on server ??!!!! I have developed a java application that can return shortest path by
inputting data.
I would like to integrate this application into web application by putting
into tomcat server so that client can use the application through the
internet.
I am new to web service programming and I just start to learn jsp. I would
like to ask how I can do such implementation?
make my application into a bean ? and use the bean?
Please give me advice and help or references ..
Thousands thanx


 
Berlin Brown





PostPosted: 2004-1-27 20:59:00 Top

java-programmer >> put application on server ??!!!! Chris Smith wrote:
> james wrote:
>
>>I have developed a java application that can return shortest path by
>>inputting data.
>>I would like to integrate this application into web application by putting
>>into tomcat server so that client can use the application through the
>>internet.
>>I am new to web service programming and I just start to learn jsp. I would
>>like to ask how I can do such implementation?
>>make my application into a bean ? and use the bean?
>>Please give me advice and help or references ..
>
>
> Hopefully, if you've used good design techniques in developing your
> application, you have a fairly clean separation between the user-
> interface pieces and the functionality. You should now probably
> separate those two pieces into separate code bases with published APIs
> for communication between the two.
>
> As for how to integrate your back-end with a JSP and servlet-based
> application, there are a good number of options available to you. You
> really need to make the best choice for the problems you are solving. I
> can't say to you, for example, that you should "just use beans" or some
> such thing, because it won't solve all of your problems.
>
> If this is a new web application and you don't have legacy architecture
> or code to handle, then the best JSP-based approach to writing it is to
> follow this general outline:
>
> 1. Have forms submit to servlets.
>
> 2. Have servlets call your back-end application code and get results
> back, which are then packaged into simple data classes (beans, if you
> wish to call them that).
>
> 3. Have servlets forward to JSPs to format output.
>
> 4. Have JSPs include dynamic data with one of the following:
>
> 4a. EL expressions for basic data
> 4b. JSTL for simple looping and conditionals.
> 4c. Custom tags for building app-specific abstractions around
> more complex presentation logic.
>
> That's the general idea... but obviously, there's a lot more to it. The
> devil is in the details. Feel free to come back with more questions as
> you get into the implementation process.
>

if you are really tricky you might be able to use classloaders, load the
class off file, and maybe catch the output from the class and stream it
or XML it over the network.

 
Berlin Brown





PostPosted: 2004-1-27 21:00:00 Top

java-programmer >> put application on server ??!!!! Chris Smith wrote:
> james wrote:
>
>>I have developed a java application that can return shortest path by
>>inputting data.
>>I would like to integrate this application into web application by putting
>>into tomcat server so that client can use the application through the
>>internet.
>>I am new to web service programming and I just start to learn jsp. I would
>>like to ask how I can do such implementation?
>>make my application into a bean ? and use the bean?
>>Please give me advice and help or references ..
>
>
> Hopefully, if you've used good design techniques in developing your
> application, you have a fairly clean separation between the user-
> interface pieces and the functionality. You should now probably
> separate those two pieces into separate code bases with published APIs
> for communication between the two.
>
> As for how to integrate your back-end with a JSP and servlet-based
> application, there are a good number of options available to you. You
> really need to make the best choice for the problems you are solving. I
> can't say to you, for example, that you should "just use beans" or some
> such thing, because it won't solve all of your problems.
>
> If this is a new web application and you don't have legacy architecture
> or code to handle, then the best JSP-based approach to writing it is to
> follow this general outline:
>
> 1. Have forms submit to servlets.
>
> 2. Have servlets call your back-end application code and get results
> back, which are then packaged into simple data classes (beans, if you
> wish to call them that).
>
> 3. Have servlets forward to JSPs to format output.
>
> 4. Have JSPs include dynamic data with one of the following:
>
> 4a. EL expressions for basic data
> 4b. JSTL for simple looping and conditionals.
> 4c. Custom tags for building app-specific abstractions around
> more complex presentation logic.
>
> That's the general idea... but obviously, there's a lot more to it. The
> devil is in the details. Feel free to come back with more questions as
> you get into the implementation process.
>

Think about your question Application on Server or Application Server or
J2EE, that is basically what J2EE is.

 
 
Chris Smith





PostPosted: 2004-1-28 1:10:00 Top

java-programmer >> put application on server ??!!!! james wrote:
> I have developed a java application that can return shortest path by
> inputting data.
> I would like to integrate this application into web application by putting
> into tomcat server so that client can use the application through the
> internet.
> I am new to web service programming and I just start to learn jsp. I would
> like to ask how I can do such implementation?
> make my application into a bean ? and use the bean?
> Please give me advice and help or references ..

Hopefully, if you've used good design techniques in developing your
application, you have a fairly clean separation between the user-
interface pieces and the functionality. You should now probably
separate those two pieces into separate code bases with published APIs
for communication between the two.

As for how to integrate your back-end with a JSP and servlet-based
application, there are a good number of options available to you. You
really need to make the best choice for the problems you are solving. I
can't say to you, for example, that you should "just use beans" or some
such thing, because it won't solve all of your problems.

If this is a new web application and you don't have legacy architecture
or code to handle, then the best JSP-based approach to writing it is to
follow this general outline:

1. Have forms submit to servlets.

2. Have servlets call your back-end application code and get results
back, which are then packaged into simple data classes (beans, if you
wish to call them that).

3. Have servlets forward to JSPs to format output.

4. Have JSPs include dynamic data with one of the following:

4a. EL expressions for basic data
4b. JSTL for simple looping and conditionals.
4c. Custom tags for building app-specific abstractions around
more complex presentation logic.

That's the general idea... but obviously, there's a lot more to it. The
devil is in the details. Feel free to come back with more questions as
you get into the implementation process.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation