facebook

JSP validation failure for jspx extension

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #239303 Reply

    markinho
    Member

    If I run validation on a valid JSP file with jspx extension I get this message:

    Resource /PlitviceWeb/public_html/login.jspx was not validated because none of the enabled validators validates that type of resource.

    If i rename the file in .jsp it woks fine!

    In Preferences -> General -> Content Types the .jspx extension is correctly associated with JSP and MyEclipse JSP Content Type

    Is it a bug?

    Thanks
    Marco

    My system details:

    *** System properties:
    OS=Windows2000
    OS version=5.0
    Java version=1.5.0_04

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.1 GA
    Build id: 20050930-4.0.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Graphical Editing Framework

    Version: 3.1
    Build id: 200507071758

    Eclipse RCP

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    5fc_48
    -vm
    C:\WINNT\system32\javaw.exe

    #239326

    Riyad Kalla
    Member

    I was uanble to reproduce this problem, can you paste your page content?

    #239417

    markinho
    Member

    Here is the code:

    
     <?xml version='1.0' encoding='ISO-8859-15'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/EA16"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/EA16/html"
              xmlns:htm="http://jsftutorials.net/htmLib"> 
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=ISO-8859-15"
       errorPage="/errore.jspx"/>
     
      <f:view>
        <afh:html>
          <head>
            <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15"/>
            <title>Programmazione didattica - Pagina di Login</title>
            <htm:link href="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/css/stile_plitvice.css" rel="stylesheet" media="screen"></htm:link>
            <afh:script source="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/programmazione/js/util.js"/>
            <afh:script text="
              function validaForm()
              { 
                if (document.forms['formLogin'].username.value == '') {
                     alert('Campo obbligatorio: Nome utente');
                     document.forms['formLogin'].username.focus();
                     return false;
                } else if (document.forms['formLogin'].password.value == ''){
                     alert('Campo obbligatorio: Password');
                     document.forms['formLogin'].password.focus();
                     return false;
                } else {
                  return controllaSubmit();
                }
              }"/>
          </head>     
    
          <afh:body onload="document.forms['formLogin'].username.focus();">
            <afh:tableLayout width="100%">
    
              <afh:rowLayout>
                <afh:cellFormat width="199" halign="center">
                    <af:objectImage width="182" borderWidth="0" source="/programmazione/images/logo_small.gif"/>
                </afh:cellFormat>
                <afh:cellFormat width="100%" styleClass="bgTestataExt" valign="top">
                  <af:outputText value=" "/>
                </afh:cellFormat>
                <afh:cellFormat halign="right" 
                                styleClass="bgTestata" 
                                wrappingDisabled="true" 
                                valign="top">
                  <af:goLink text="#{backing_Plitvice.versione}"
                             shortDesc="Novità" 
                             inlineStyle="color: white;"
                             destination="novita.html"/>
                </afh:cellFormat>
              </afh:rowLayout>
    
              <afh:rowLayout styleClass="bgRigaGrigiaTestata">
                <afh:cellFormat columnSpan="3">
                  <af:outputText value=""/>
                </afh:cellFormat>
              </afh:rowLayout>
    
              <afh:rowLayout>
                <afh:cellFormat width="199" halign="center">
                    <af:objectImage borderWidth="0" source="/programmazione/images/logoateneo.gif" width="161" height="300"/>
                </afh:cellFormat>
                <afh:cellFormat width="100%" valign="top" columnSpan="2">
                  <af:form id="formLogin">
                    <h:inputHidden value="#{backing_Login.token}"/>
    
                    <af:objectSpacer height="60"/>
    
                    <afh:tableLayout width="40%" halign="center" styleClass="redBorder">
    
                      <afh:rowLayout styleClass="redBoxHeader" halign="center" >
                        <afh:cellFormat columnSpan="2">
                          <af:outputText value="Accesso"/>
                        </afh:cellFormat> 
                      </afh:rowLayout>
    
                      <afh:rowLayout inlineStyle="padding-top: 9px;">
                        <afh:cellFormat halign="center">
                          <af:outputText value="Nome utente"/>
                        </afh:cellFormat>
                        <afh:cellFormat halign="center">
                          <af:inputText value="#{backing_Login.username}" 
                                        id="username" 
                                        inlineStyle="text-transform: none"
                                        columns="20"/>
                        </afh:cellFormat>
                      </afh:rowLayout>
    
                      <afh:rowLayout>
                        <afh:cellFormat halign="center">
                            <af:outputText value="Password"/>
                        </afh:cellFormat>
                        <afh:cellFormat halign="center">
                          <af:inputText secret="true"
                                        value="#{backing_Login.password}"
                                        id="password"
                                        columns="20"/>
                        </afh:cellFormat>
                      </afh:rowLayout>
    
                      <afh:rowLayout>
                        <afh:cellFormat halign="center" columnSpan="2">
                          <af:outputText value="#{backing_Login.erroreAVideo}" styleClass="testoErrore"/>
                        </afh:cellFormat>
                      </afh:rowLayout>
    
                      <afh:rowLayout inlineStyle="padding-bottom: 9px;">
                        <afh:cellFormat halign="center" columnSpan="2">
                          <af:panelGroup layout="horizontal">
                            <af:commandLink text="Accedi" id="conferma"  onclick="return validaForm();"
                                            action="#{backing_Login.effettuaLogin}"                                         
                                            styleClass="buttonBlue"/>
                          </af:panelGroup>
                        </afh:cellFormat>
                      </afh:rowLayout> 
                    </afh:tableLayout>
                  </af:form>
                </afh:cellFormat>
              </afh:rowLayout>
    
            </afh:tableLayout>
    
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>
    
    #239427

    Riyad Kalla
    Member

    Marco, thank you. Was able to reproduce this problem quickly, I’ll ask one of the devs look into this.

    #239446

    Riyad Kalla
    Member

    Marco,
    This looks to be a bug that we are going to try and get into 4.1, thank you for the heads up.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSP validation failure for jspx extension

You must be logged in to post in the forum log in