What is the error?

Anyway check the includes. Are you sure the resolve to the source path. I would have used **/*Servlet.jar.

If they belong to a package, you MUST make sure that the src.dir points to the root of your sources.

For example: if you have a directory structure like this:

src
servlets
Servlet.java <-- This class is belongs to servlets package. To reach it
you use **/*.Servlet.java or /servlets/Servlet.java
BUT YOUR {src.dir} is .../src.
actions
forms


Try that!

On Mon, 16 May 2005 09:34:56 -0400, Shirin Iraji <[EMAIL PROTECTED]> wrote:

Hi,
I created a project in Eclipse and I tried to use xdoclet to generate
 struts-config.xml
 I imported these jar files to the project:
 xdoclet-1.2.2.jar
  xdoclet-apache-module-1.2.2.jar
  xdoclet-ejb-module-1.2.2.jar
  xdoclet-web-module-1.2.2.jar
  xdoclet-webwork-module-1.2.2.jar
  xdoclet-webwork-module-1.2.2.jar
 then wrote this code in myAction.Java class:
  package  com.payvand.healthportal.presentation.actions.user;
  /**
   * @struts.action path="/jsps/detailPatient"
   *       name="detailPatientForm"
   *       scope="request"
   *       input="/jsps/search.jsp"
 in build.xml I wrote this codes:
  <path id="compileclasspath">
      <fileset dir="lib/">
          <include name="*.jar"/>
      </fileset>
  </path>
  <taskdef name="webdoclet"
 classname="xdoclet.modules.web.WebDocletTask"
 classpathref="compileclasspath" />
  <target name="webdoclet" depends="init">
      <webdoclet destdir="web/WEB-INF" force="true"
 mergedir="web/WEB-INF">
             <fileset dir="${src.dir}">
                  <include name="*Servlet.java" />
                  <include name="*Filter.java" />
                  <include name="*Listener.java" />
                  <include name="*Tag.java" />
                  <include name="*Action.java" />
                  <include name="*Form.java" />
            </fileset>
            <strutsconfigxml version="1.1" destDir="web/WEB-INF"
 mergedir="web/WEB-INF" />
      </webdoclet>
  </target>
 Finally I used some merge file such as :struts-actions.xml,
 struts-forms.xml,
 struts-plugins.xml
 So there is two problem
  First, my Eclipse can not do auto complitment for @struts tag (My
 Eclipse version is 3.0.0)
  Next, if I dont use merge files in ant file, It cant generate
 struts-config.xml
Could you please help me and tell me what I did wrong?


--------------------------------- Yahoo! Mail Stay connected, organized, and protected. Take the tour



-- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to