Hi!

The following is a valid JSP. I deployed it to JBoss 2.4.4 with Tomcat
4.0.1 and it works.

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page";
          xmlns:ext="ext"
          version="1.2">
  <jsp:directive.page language="java" />
  <jsp:directive.page import="java.io.File, rbdipl.PersonBean" />
  <jsp:directive.page import="java.util.Iterator" />
  <jsp:directive.page import="org.formproc.*" />
  <jsp:directive.page import="org.formproc.validation.ValidationResultMap" />

  <jsp:useBean id="results" class="org.formproc.FormResult" scope="session"/>
  <jsp:useBean id="person" class="rbdipl.PersonBean"  scope="session" />
  <jsp:useBean id="form" class="org.formproc.servlet.HttpForm" scope="session" />
  <jsp:useBean id="formManager" class="org.formproc.FormManager" scope="page"/>
  <jsp:scriptlet>
    form.setName("datumform");
    form.setTarget(person);
    formManager.configure(form);
  </jsp:scriptlet>

  <html>
    <head>
      <title>Test Form</title>
    </head>
    <body>
      <form action="process.jsp" method="POST">
        <jsp:text>
          Datum :
        </jsp:text>
        <ext:input  name="datum" type="text">
          <ext:attribute name="value">
            <jsp:expression>
              person.getGeburtsdatum()
            </jsp:expression>
          </ext:attribute>
        </ext:input>
        <jsp:scriptlet>
          if(results.getValidationResults().isValid("datum"))
          {
        </jsp:scriptlet>
        <img alt="" src="valid.gif" border="0" />
        <jsp:scriptlet>
          }
          else
          {
        </jsp:scriptlet>
        <img alt="" src="invalid.gif" border="0" />
        <jsp:scriptlet>
        }
        </jsp:scriptlet>
        <br/><br/>
        <input type="submit" value="Abschicken" />
      </form>
      <ext:generic tagType="font">
        <ext:attribute name="color">
          <jsp:text>
            red
          </jsp:text>
        </ext:attribute>
        <jsp:text>
          bla blub
        </jsp:text>
      </ext:generic>
    </body>
  </html>
</jsp:root>

IDEA marks
  directive.page in jsp:directive.page,
  scriptlet in the opening tags of jsp:scriptlet,
  text in in the opening tags of jsp:text
  text in <ext:input  name="datum" type="text">
  ext in <ext:attribute name="value">
in red and does not support autocompletion for the tags in the ext
taglib although the taglib is specified as an external resource.

-- 
Greets
 Robert

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to