• Post Reply Bookmark Topic Watch Topic
  • New Topic

Server side technology?  RSS feed

 
Hemnishi Nishihem
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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/
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
Vijay Sharma
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!