• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Server side technology?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!!
I am developing an intranet based application. Currently I am using jsp as front end and oracle as back end. Am i doing the right thing??

Also, in the front end i am calling a swing applet (becuase the gui needs to be good). Now I m in a confusion as to what technology should I be using on the server side to retrieve the values from the swing applet.

Should i be using
(a) another JSP page
(b) a servlet
(c) a bean
(d) something else that i m not aware of.

1) Will anyone please help me as to what server side techology to use.
2) What is the exact difference between using jsp and servlet on the server side, cause eventually jsp is going to be complied to a servlet
3) And how to do the communication between the applet and the jsp/servlet/bean.

I know a bit about http tunelling and serialization, but I dont know exactly what to use and how?? Can anyone please explain me what should be used to make the application more efficent.
[ March 09, 2005: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer: B, and C.
You would have no need for JSP if you are using a Swing client. JSP is there to make it easy for a web designer to work with your view in an HTML like environment.

Use a servlet to handle the requests and responses and put all of your JDBC code in a bean. If you're tunnelling, you'll probably want to put the results from your JDBC calls into another bean and stream that down to your Swing client.

This article might help.
http://www-128.ibm.com/developerworks/java/library/j-tunnel/
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this http://www.j-nine.com/pubs/applet2servlet/Applet2Servlet.html.
or http://milinddev.tripod.com/appletservlet.htm.
[ March 10, 2005: Message edited by: Adeel Ansari ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This thread might be helpful.

Thanks for the link, Ben. I haven't gone through this before. It is really worth it.
[ March 10, 2005: Message edited by: Adeel Ansari ]
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you should use Bean for your Business logic.All the requests and response you can handle through Servlets.Yes,If you are not using swing client then you can use JSP pages for this..
All the best.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic