Current location: Hot Scripts Forums » Programming Languages » Everything Java » JSP vs Java Servelets - Need Help


JSP vs Java Servelets - Need Help

Reply
  #1 (permalink)  
Old 06-09-05, 10:36 AM
myabigail myabigail is offline
New Member
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question JSP vs Java Servelets - Need Help

First of all, I apologize for posting in a developer forum, but I don't know where else to turn. I haven't been able to find anyone where I live who can speak intelligently about this.

I currently run my brick & mortar retail store on a java-based Point of Sale (POS) system with a MySQL relational database. Now we're ready for ecommerce.

My POS vendors have developed a web store interface using Java Servelets. However, I feel like in its current form, there is very little room for design and flexibility in user interface.

My store is high end furniture/interior design, so design is really important to me. Also, since we have so many different categories of goods - from bedding, to furniture, to china - we need to have flexibility to organize each category slightly differently.

For instance, the final product page for a piece of furniture should have only one specific piece, whereas the final product page for a china pattern should probably show all of the pieces within a certain pattern.

It seems to me that the most efficient way to achieve the look and user interface flexibility I want is through JSP rather than Java Servelets.

Can anyone help me with this? I would really appreciate it!

-Abigail
Reply With Quote
  #2 (permalink)  
Old 06-23-05, 11:25 PM
vitamines vitamines is offline
Newbie Coder
 
Join Date: May 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
I use Struts(a MVC pattern) to do this,servlets just deal with the control layer.all the view should be display with JSP or JSF.
Reply With Quote
  #3 (permalink)  
Old 07-11-05, 04:54 PM
sszettella sszettella is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Servlet or JSP

There is nothing that prevents one from creating beautifully styled, highly flexible UI designs using either JSP or Servlet technologies. That said, there's nothing preventing someone from developing a lousy UI with either approach, either. Under the covers, every JSP page is converted to a Servlet before being executed by the J2EE application server. This is by design. JSP is merely a convienience mechanism for creating servlets.

If you have an existing servlet based system, it is not too much of a stretch to implement a layer in front of the servlet(s) to deal more effectively with the UI details. This could take the form of new servlet(s) which dispatch to the existing ones. Another approach is to use a servlet filter. There are several other, equally valid approaches.

In the end, a qualified analyst should look at the existing system and graft your needs on to it. This should identify the gaps, and from those gaps, the appropriate technical solution could be designed.

J2EE (servlet, JSP, and a number of other technologies) is one of the most flexible, powerful environments available today. Some of the world's largest web applications are written on this platform, and by no means do servlets restrict the flexibility of the UI. The biggest challenge you are likely to face is finding qualified personnel to help you integrate your business with the existing system to realize your vision.

Best of Luck
Steve Szettella
4word systems
http://www.4wordsystems.com
Reply With Quote
  #4 (permalink)  
Old 10-01-11, 06:25 AM
jon001 jon001 is offline
Newbie Coder
 
Join Date: Sep 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
JSP has been designer for HTML output while servlets for binary output , like images, or PDF files. At runtime JSP are comiled to servlets
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Have a look at my JSP code which is not giving me the desired output j.gohel Everything Java 1 04-07-05 03:55 AM
e-Zest Joins Sun iForce Partner Program ezest General Advertisements 0 03-21-05 10:33 PM
JSP is not working on the live server braveheart Everything Java 0 03-09-05 08:03 PM
Java Cyclomatic Complexity NICOLAD JavaScript 2 11-08-04 01:11 PM
SOFIA 2.2 adds Linux and Portal support DanDubinsky General Advertisements 0 05-12-04 10:26 AM


All times are GMT -5. The time now is 05:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.