Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Specs

 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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?

 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2405
93
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic