Thread: servlets or jsp
View Single Post
  #2 (permalink)  
Old 12-13-2007, 04:31 PM
wsaryada wsaryada is offline
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 102
wsaryada is on a distinguished road
Both technology is use for creating a web application. The have different purpose. For instance the servlet is better use for controller because it will be hard to maintain the look of you web page if you create it using servlet. For instance if you need to change the layout of your page you have the edit your servlet then you need to compile it again.

While JSP is use for displaying data, or the content of you pages. All logic to retrieve the data, etc should be delegated to the servlet. Your web design will be all in the JSP page, this also means that a web designer who might don't know what servlet is will easily alter the look of your page.

So again you can use both technology. Just be sure they are in the place where they work best. Here is an example of a simple how to write a web application in MCV [JavaRanch FAQ : Code Barn Simple Mvc]
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wsaryada : 12-13-2007 at 04:33 PM.
Reply With Quote