Results 1 to 2 of 2
Thread: servlets or jsp
- 12-13-2007, 01:53 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 1
- Rep Power
- 0
- 12-13-2007, 02:31 PM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
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]Last edited by wsaryada; 12-13-2007 at 02:33 PM.
Website: Learn Java by Examples
Similar Threads
-
Java Servlets
By kondalrao in forum Java ServletReplies: 0Last Post: 04-14-2008, 11:12 AM -
1 form 2 servlets
By sandor in forum Java ServletReplies: 2Last Post: 01-22-2008, 10:47 AM -
Deploying Servlets
By gapper in forum New To JavaReplies: 2Last Post: 01-17-2008, 12:43 PM -
Servlets
By nagaroopanandha in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 02:09 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks