File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Use of appropriate java technology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Use of appropriate java technology" Watch "Use of appropriate java technology" New topic

Use of appropriate java technology

rajiv mehta

Joined: Dec 30, 2003
Posts: 4
I have three coding technologies javascript,jsp,servlets.Through discussions on websites dedicated to each one of these technologies it is evident that it is possible to realize any application using one of these technologies alone . For performance sake these technologies are mixed together. Can any body of you demonstrate with a not too simple application which technology's use is appropriate at which place . Application code is not required .Mere theoritical discussion describing the purpose of application and which coding technology will be used for which flow to be used is sufficient
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

hmmm I'm going to move this to the servlets forum where hopefully there's a wide enough audience to offer some opinion on the subject. Please continue the discussion there.
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

so, just so we're clear -- javascript is not a java technology. Similar name, totally different purpose and a different language.
As for Servlets, JSPs and Javascript in comparison. You are correct in your statement that using just one technology is not usually sufficient and that you use each for its own purpose.
JavaScript -- does a lot of client-side processing. Deals a lot with the "look and behavior" or a page itself. Drop down lists, mouse-overs, form validation, that kind of thing.
Servlets -- are best used for server-side processing, business methods and what not. Like entering stuff in a DB, calculating costs, all sorts of stuff.
JSPs -- are best used for presentation to the client -- integrating the info you manipulated in the servlets and pretty-ing it up to display it to the client.
Check out the Model2 architecture, it goes into detail about the evils of having a purely JSP or purely Servlet application and how it's best to integrate the two.
Also, check out the Struts framework -- it integrates all three technologies in order to create a robust and easily maintainable web application.
I agree. Here's the link:
subject: Use of appropriate java technology
It's not a secret anymore!