AnsweredAssumed Answered

include jsp in xsd

Question asked by nicola.raglia on Oct 16, 2009
Latest reply on Oct 16, 2009 by nicola.raglia
Hello,
I'm trying to integrate, to include  a jsp in xsd web form.
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      xmlns:alf="http://www.alfresco.org"
      xmlns:html="http://dm-schema.net/alfresco/html"
      targetNamespace="http://dm-schema.net/alfresco/html"
      elementFormDefault="qualified">
   <xs:include schemaLocation="/xsdEnumConvert_Ease.jsp"/>
   <xs:element name="html">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="content" type="xs:string"/>  
         </xs:sequence>
      </xs:complexType>
      </xs:element>
</xs:schema>

and jsp is:
<jsp:root version="1.2"
          xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:pr="http://www.mycompany.com/posnet/core">
    <jsp:directive.page language="java" contentType="text/html; charset=UTF-8"/>
    <jsp:directive.page isELIgnored="false"/>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:alf="http://www.alfresco.org"
               elementFormDefault="qualified">
        <xs:simpleType name="possible-ease">
            <xs:restriction base="xs:normalizedString">
                <xs:enumeration value="EASY"/>
                <xs:enumeration value="MEDIUM"/>
                <xs:enumeration value="HARD"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:schema>
</jsp:root>

I also started the virtual server tomcat and I stored the jsp in the sandbox of my WebProject for example named "Mock", just under ROOT od Mock web project.
When I try to create a content with web form,under ROOT of Mock web project, the client goes in loop as if it's trying  to searh something(jsp?).
The question is: where i have to store the jsp? Is right its call in my xsd? Is there any kind configuration for virtual server ?

Thanks a lot.
Nicola.

Outcomes