File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP Document (XML) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JSP Document (XML)" Watch "JSP Document (XML)" New topic
Author

JSP Document (XML)

Saurabh Naik
Ranch Hand

Joined: Apr 24, 2008
Posts: 87
Hello
I dont understad JSP Document (XML) . what is the use of it ? so we have to save all JSP pages with .xml ??


SCJP 6 (88%), SCWCD 5 (78%), preparing for SCBCD
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

You can write JSP pages in XML, these are called JSP documents. It's optional. It comes with all the advantages of any XML document, like the possibility to create XML well-formed pages. Everything must be written with a opening and closing tag. For example, you cannot write a scriptlet like this :

You have to write it :


You can read all the gory details in the JSP Specification, JSP.6 JSP Documents.

[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61457
    
  67

The document format is not intended for hand coding. Those that have tried can tell you the tales of woe trying to get things to work correctly. You end up with so much markup that you loose sight of what the page is supposed to do in the first place.

Rather, the format is intended as an intermediate format for containers, or where a page might be built automatically as a DOM and flattened to XML format.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Document (XML)