13.07.2015 Views

0A-Servlet+JSP-Revie.. - Custom Training Courses - Coreservlets.com

0A-Servlet+JSP-Revie.. - Custom Training Courses - Coreservlets.com

0A-Servlet+JSP-Revie.. - Custom Training Courses - Coreservlets.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Why Two Versions?40• Classic syntax is not XML-<strong>com</strong>patible– , , are illegal in XML– HTML 4 is not XML <strong>com</strong>patible either– So, you cannot use XML editors like XML Spy• You might use JSP in XML environments– To build xhtml pages– To build regular XML documents• You can use classic syntax to build XML documents, but itis sometimes easier if you are working in XML to start with– For Web services– For Ajax applications• So, there is a second syntax– Following XML rulesJava EE training: http://courses.coreservlets.<strong>com</strong>XML Syntax for Generating XHTMLFiles (somefile.jspx)For JSP pages in XML syntax, default contentSome Titletype is text/xml.BodyNormal xhtml content, plus JSP <strong>com</strong>mands that usejsp:blah syntax, plus JSP custom tag libraries.41Java EE training: http://courses.coreservlets.<strong>com</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!