Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1176

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1176
    Summary: Empty validation.xml file
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Apache Module

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Alok Pota

    Created: Fri, 3 Dec 2004 1:30 PM
    Updated: Fri, 3 Dec 2004 1:30 PM

Description:
I have the following ant task in mu build.xml

          <webdoclet destdir="${project.build}/WEB-INF"
              force="true"
              mergedir="${project.java.conf}/struts/merge">
                 <fileset dir="${project.java.src}"> <include 
name="**/*.java"/> </fileset>

            <strutsconfigxml validatexml="true"
                              version="1.1"
                              mergedir="${project.java.conf}/struts/merge"
            />

            <strutsvalidationxml />
          </webdoclet>


The following Java code for the TestForm..

/**
 * @struts.form name="testForm"
 */
public class TestForm extends ValidatorForm {
        
          private String lastName = "Bond"; 
          
          public String getLastName() {
            return (this.lastName);
          }
          /**
           * @struts.validator type= "required" msgkey="error.required" 
arg0value="Last name" 
           * 
           */
          public void setLastName(String lastName) {
            this.lastName = lastName;
          }
          
}


Upon a build, I get the struts-config.xml file just fine. However
my validation.xml file is empty i.e. it looks like this..

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons 
Validator Rules Configuration 1.0//EN" 
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

<form-validation>
  <!--
    Define global validation config in validation-global.xml
  -->
  <formset>
  </formset>
</form-validation>


There are no rules..


Whats going on?



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to