• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in Specs

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have this doubt in the specs and book

see:

SPEC says this line



you can search in JSP 2.0 spec . It is the latest right?( i am using it for SCWCD 5)

And now the book HF S&JSP on page 666 says that you must mention atleast one



So isn't this DTD and book contradicting?

 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spec says this



on page 3-46 JSP 2.0 spec

But see ... it has said values of body-content only as tagdependent | JSP | empty

where did the scriptless go?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
About your first question, HFSJ is right. There must be at least one url-pattern. You're looking at the wrong place. You should be looking at the Servlets Specification. The DTD is not used anymore, you should check the Xml Schema instead. Download the servlets specification and check the "Deployment Descriptor Diagram".
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The DTD is not used anymore, you should check the Xml Schema instead. Download the servlets specification and check the "Deployment Descriptor Diagram".



If it is not used why is it there in the spec?

Are all dtds in jsp spec wrong?

I have Servlet specs , but i dont know how to read xml schema where can i learn it?

 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marcus,

You were probably looking in the older versions of the DD. See pics below from the specs (servlet2.4)


and the convention:


Regards,
Frits

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Are all dtds in jsp spec wrong?


No, but they are for Servlets 2.3.

i dont know how to read xml schema where can i learn it?


No worry. There are easily readable diagrams in "SRV.13.4 Deployment Descriptor Diagram".
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
now these diagrams clear my doubt regarding webapp and its sub elements in the DD

But what about TLDs?

where are the diagrams referring to TLDs? or do I have to refer DTDs for the same?
or do i have to go for diagrams in JSP spec mentioned on page 3-16 JSP spec

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The TLD XML Schema is in the JSP specification, JSP.C.1XML Schema for TLD, JSP 2.0. The format of the diagrams is a bit different, but it's also easily readable.
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The format of the diagrams is a bit different, but it's also easily readable.



does this mean that I cannot study and bank upon TLD diagrams from the point of view of scwcd exam?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Marcus Tiwari wrote:does this mean that I cannot study and bank upon TLD diagrams from the point of view of scwcd exam?


I'm not sure I understand You should refer to the XML Schema (or the nice diagrams which come with them) instead of the old DTD.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic