Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MoDisco/Components/JSP/Documentation/0.9"

< MoDisco‎ | Components‎ | JSP
(New page: =JSP Metamodel= The Modisco JSP Metamodel inherits from the Modisco XML one : Image:JSP_Metamodel.png Inheritance was chosen because a JSP page uses the tag mechanism, attributes an...)
 
Line 3: Line 3:
 
The Modisco JSP Metamodel inherits from the Modisco XML one :  
 
The Modisco JSP Metamodel inherits from the Modisco XML one :  
 
[[Image:JSP_Metamodel.png]]
 
[[Image:JSP_Metamodel.png]]
 +
  
 
Inheritance was chosen because a JSP page uses the tag mechanism, attributes and comments, and is nearly well formed regarding the XML Metamodel.
 
Inheritance was chosen because a JSP page uses the tag mechanism, attributes and comments, and is nearly well formed regarding the XML Metamodel.
 +
 +
==Metamodel Architecture==
 +
 +
According to the "Java Server Pages Specifications Version 1.2", JSP content is divided into 4 categories :
 +
*JSP Scripts :
 +
**JSP Scriplet : <code>  <% int variable = 0;%> </code>
 +
**JSP Expression : <code><nowiki> <%= variable %> </nowiki> </code>
 +
**JSP Declaration :<code><nowiki> <%! int variable = 0; %> </nowiki> </code>
 +
*JSP Actions : <code><nowiki> <myPrefix:myAction arg1="value" /> </nowiki> </code>
 +
**JSP Standard Action : <code><nowiki>  <jsp:getProperty name="beanName" property="propertyNamef" /> </nowiki> </code>
 +
*JSP Directive :  <code><nowiki> <%@ include file="myFilePath" %> </nowiki> </code>
 +
**JSP TagLib : <code><nowiki> <%@ taglib prefix="myPrefix" uri="taglib/mytag.tld" %> </nowiki> </code>
 +
*Comments : code><nowiki>  <%-- This is a JSP comment --%>  </nowiki> </code>
 +
 +
==MetaModel Limits==
 +
Because JSP language is used to generated some content, it can be placed almost anywhere in the file
 +
isTagFragment : EBoolean

Revision as of 11:41, 20 April 2010

JSP Metamodel

The Modisco JSP Metamodel inherits from the Modisco XML one : JSP Metamodel.png


Inheritance was chosen because a JSP page uses the tag mechanism, attributes and comments, and is nearly well formed regarding the XML Metamodel.

Metamodel Architecture

According to the "Java Server Pages Specifications Version 1.2", JSP content is divided into 4 categories :

  • JSP Scripts :
    • JSP Scriplet : <% int variable = 0;%>
    • JSP Expression : <%= variable %>
    • JSP Declaration : <%! int variable = 0; %>
  • JSP Actions : <myPrefix:myAction arg1="value" />
    • JSP Standard Action : <jsp:getProperty name="beanName" property="propertyNamef" />
  • JSP Directive : <%@ include file="myFilePath" %>
    • JSP TagLib : <%@ taglib prefix="myPrefix" uri="taglib/mytag.tld" %>
  • Comments : code> <%-- This is a JSP comment --%> </code>

MetaModel Limits

Because JSP language is used to generated some content, it can be placed almost anywhere in the file isTagFragment : EBoolean

Back to the top