2006/6/12, Mick Knutson <[EMAIL PROTECTED]> :
Are the beans getting generated by xdoclet?

Hi Mick,
No, I wrote it manually.

My BookSearchForm.java file :
--------------------------------------------
/**
*
* @struts.form name ="BookSearchForm"
*
*/
public class BookSearchForm extends AbstractForm
{
   private String idBook = null;

   /**
    * ...
    */
   public String getIdBook()
   {
       return idBook;
   }

   /**
    * @struts.validator type="required"
    * @struts.validator-args arg0resource="book.form.search.idBook.error"
    */
   public void setIdBook(String idBook)
   {
       this.idBook = idBook;
   }


2006/6/13, Kenney Westerhof <[EMAIL PROTECTED]>:

I see a lot of spaces in the POM, especially

includes="**/* Form.java"

This might prevent the Form files from being detected.


Hi Kenney,

I don't know why but the copy/paste has generated a lot spaces that is not
in
my pom.xml. It could be the solution !

Again, my pom.xml without added spaces by copy/paste

<?xml version="1.0"?>
<project>
 <modelVersion>4.0.0</modelVersion>
 <groupId>test</groupId>
 <artifactId>library</artifactId>
 <name>Project for managing a library</name>
 <version>1.0-SNAPSHOT</version>
 <packaging>war</packaging>
 <dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.1</version>
     <scope>test</scope>
   </dependency>
   <dependency>
     <groupId>log4j</groupId>
     <artifactId>log4j</artifactId>
     <version>1.2.13</version>
     <optional>true</optional>
   </dependency>
   <dependency>
     <groupId>struts</groupId>
     <artifactId>struts</artifactId>
     <version>1.2.9</version>
   </dependency>
   <dependency>
     <groupId>org.apache.geronimo.specs</groupId>
     <artifactId>geronimo-j2ee_1.4_spec</artifactId>
     <version>1.0</version>
     <scope>provided</scope>
   </dependency>
 </dependencies>

 <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xdoclet-maven-plugin</artifactId>

        <dependencies>
            <dependency>
                 <groupId>javax.servlet</groupId>
                 <artifactId>servlet-api</artifactId>
                 <version>2.4</version>
                 <scope>provided</scope>
            </dependency>
        </dependencies>

        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>xdoclet</goal>
            </goals>
            <configuration>
              <tasks>
                <webdoclet destdir="${project.build.directory}/${
project.build.finalName}/WEB-INF"
                    excludedtags= "@version,@author"
                     verbose        = "true">
                  <fileset dir="${project.build.sourceDirectory}">
                       <include name="**/*Form.java" />
                       <include name="**/*Action.java" />
                  </fileset>
                   <strutsconfigxml
                       mergeDir    =
"${basedir}/src/main/webapp/WEB-INF/merge"
                       validatexml    = "true"
                       version        = "1.2"/>
                   <strutsvalidationxml
                       validatexml    = "true"
                       version        = "1.1.3"/>
                </webdoclet>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

Reply via email to