aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in Specs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in Specs" Watch "Doubt in Specs" New topic
Author

Doubt in Specs

Parth Twari
Ranch Hand

Joined: Jan 20, 2010
Posts: 163
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 Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Parth Twari
Ranch Hand

Joined: Jan 20, 2010
Posts: 163
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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".


[My Blog]
All roads lead to JavaRanch
Parth Twari
Ranch Hand

Joined: Jan 20, 2010
Posts: 163
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
Bartender

Joined: Apr 07, 2010
Posts: 1731
    
  25

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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Jan 20, 2010
Posts: 163
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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

Joined: Jan 20, 2010
Posts: 163
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in Specs