Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 02:53 PM
Member
 
Join Date: Dec 2007
Posts: 1
krishnapal is on a distinguished road
servlets or jsp
I wanna know whether I should use servlets or jsp in my application,I wanna know what is widely accepted,

is I have to follow MVC architecture,
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-13-2007, 03:31 PM
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 100
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 03:33 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Servlets kondalrao Java Servlet 0 04-14-2008 12:12 PM
1 form 2 servlets sandor Java Servlet 2 01-22-2008 11:47 AM
Deploying Servlets gapper New To Java 2 01-17-2008 01:43 PM
Servlets nagaroopanandha Advanced Java 1 08-07-2007 03:09 PM
Introduction to Servlets JavaForums Java Blogs 0 08-04-2007 03:24 AM


All times are GMT +3. The time now is 08:46 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org