permaculture playing cards*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Head First Servlets & JSP book - Limitation Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Head First Servlets & JSP book - Limitation Question" Watch "Head First Servlets & JSP book - Limitation Question" New topic
Author

Head First Servlets & JSP book - Limitation Question

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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 !!
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
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


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Bahadar Khan
Ranch Hand

Joined: Jun 19, 2003
Posts: 81
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

Joined: Nov 07, 2003
Posts: 4982

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
Roger Yates
Ranch Hand

Joined: Aug 31, 2004
Posts: 118
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.


Cheers,<br />Roger<br />SCJP 1.2, 1.4, SCBCD 1.3, SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First Servlets & JSP book - Limitation Question
 
Similar Threads
path of jsp is repeated and i get error jsp not found
how to pass a string and variable as value on a tag?
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
JSP problem.
ForEach: how to get array data ?