Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Head First Servlets & JSP book - Limitation Question  RSS feed

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, good day all expert here ! can someone kindly please share the experience for the limitation of several technology like EL , JSTL , javabeans, jsp and servlet ? example, we should not use jstl in what situation and why we should not use it ..thank you !!
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is difficult to discuss about the limitation, but based on your needs, you should consider what to use or not to use.

For example, if you just need simple HTML, you can use JSTL. However, if you need complicated layout with customizable ability, JSTL may not suit.

For EL, I guess it can be used anyway, however, EL is used for display only, you can do operations using EL.

For Serlvets, and JSP, I suppose you know the pros and cons and their differences.

Nick
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alvin

As Nick said it is hard to classify each technology for their effectiveness and limitations. However, though it may not be rule of thumb, you can look at the design patterns ( GoF ). Depending on the design of each project and what comination of patterns you use, the choice of individual components can be made. However, in a very clean separation of each tier of design, the presentation tier should be very web designer freindly that is instead of writing expressions and scripts EL must be preffered ( But the limitation here might be when produaction standard server implements lastest JSP specs ). This was a simple example but necesarily it dicatates the way the technologies shuould be used at other tiers of the design.

As for as JSTL and Customized tags are concerned, my experience says that most of time programmers need to write their own Tag libraries because of the nature of project and unique demands. Its good to know JSTL but preffered way is to write your own Tag more customized to your needs.

Limitation of Servlets. Well Servlet can do anything and can be fit in every role however it shouldn't be used where JSP can work and niether it must be used where it is appropriate for EJB to be there. Again this depends on the design and size of your project.

JavaBeans are good for short term data retrieval and sorage in an object and best suited as used Value Object.

This is all I can come up in this briefly however this may require a very exhaustive discussion.

Let me know if it somewhat helps your query.

cheers
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


But the limitation here might be when produaction standard server implements lastest JSP specs


This is not necessary, because it just need to support JSTL 1.0, as EL is part of it.

Nick
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll get EL if either:
- You add JSTL 1.0 support, or
- You use a container that supports JSP 2.0 (EL was deemed so handy, it was added to the JSP2.0 spec), irrespective of JSTL.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!