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.

XML Syntax for Generating RegularXML Files (somefile.jspx)foobar• Uses– When you are sending to client that expects real XML• Ajax• Web services• <strong>Custom</strong> clients– Note• You can omit the xmlns declaration if you are not usingany JSP tags. But then you could just use .xml extension.42Java EE training: http://courses.coreservlets.<strong>com</strong>XML Syntax for Generating HTML 4Files (somefile.jspx)• Many extra steps required– Enclose the entire page in jsp:root– Enclose the HTML in CDATA sections• Between • Because HTML 4 does not obey XML rules– Usually not worth the bother43Java 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!