• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP page first converted to XML view?

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

From Study Companion:Charles Lyons

Before validation can occur the JSP page is first converted into "XML
View" of the JSP; it is the XML view which is then validated and translated.


What is this XML view? How does this look? Any example to understand this.
Please help.


Thanks,
[ July 19, 2007: Message edited by: Chandra Bhatt ]
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is being quoted here? It does not make any sense to me.
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have never heard of that before.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The spec explains about this :

I think it refers to "JSP.1.1.5 Validating JSP pages" :
All JSP pages, regardless of whether they are written in the traditional JSP syntax or the XML syntax of JSP documents have an equivalent XML document, the XML view of a JSP page, that is presented to tag library validators in the translation phase for validation.
The structure of the custom actions in a JSP page is always exposed in the XML view. This means that a tag library validator can check that, for instance, some custom actions are only used within others.


And "JSP.6.1 Overview of JSP Documents and of XML Views" :
The XML view of a JSP page is an XML document that is derived from the JSP page following a mapping defined later in this chapter.. The XML view of a JSP page is intended to be used for validating the JSP page against some description of the set of valid pages. Validation of the JSP page is supported in the JSP 2.0 specification through a TagLibraryValidator class associated with a tag library. The validator class acts on a PageData object that represents the XML view of the JSP page (see, for example, Section JSP.7.4.1.2)

"Figure JSP.6-1 Relationship between JSP Pages and XML views of JSP pages." shows how JSP pages are converted as an XML view before translation occurs.

Chapter 10 about XML Views. I have never read that. I didn't know about it either.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe!

It seems, I need to go through the Chapter 10, more attentively to understand
to XML view for exam perspective well.


Thanks,
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems, I need to go through the Chapter 10, more attentively to understand to XML view for exam perspective well.

No, I don't think you need to waste your time on this. I'm not sure there's even any questions on XML views. (there are some about XML documents).
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right Christophe!

I will read about "XML documents" instead.


Thanks,
[ July 19, 2007: Message edited by: Chandra Bhatt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic