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?
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