> Howdy Dmitri,
Hi John,
> I apologize for the direct intrusion, but I am having some problems with generating
>the
> struts-config.xml file w/ XDoclet. There doesn't seem to be an example for the struts
> actions/forwards and form tags in the samples directory, and I was curious if you had
> one available.
(o: I would've replied (I hope - or have you already tried) to the user list as
well...
> Everything seems to be running fine when I do an "ant prepare", and the build ends
>with
> "Generating output 'struts-config.xml' using template '<template file from jar>'."
>Ant
> believes the build is successful. However, when I view the struts-config.xml file
>that
> was generated, no entries are made to the struts-config.xml that I expect. I looked
>at
> your template file, and my classes extend Action and ActionForm respectively.
>From looking at the source at the end, it looks ok.
> Is there a debug command that I can use to get more verbose information from the
> webdoclet task and the strutsconfigxml subtask?
Have a look at the log4j.properties settings. Either change the one in the
XDoclet.jar, or specify one yourself, I think you can do
that with a system property flag, something like
-Dlog4j.properties=my-log4j.properties - but I'm not terribly confident about that.
Anyway, once doing that its a case of changing the log4j settings - there are some
examples in the log4j.properties file provided
that should help there.
> I also posted a note on the XDoclet forums at SourceForge.net, with specific
> information about my problem, with some examples and an excerpt from my build.xml. I
> will append this to the end of this email.
ahhh... sorry - yes. we dont get to the forums much... I'll go have a look (o:
hmmm... ok, well your build.xml snippet argues against this theory, but it seems as
though the source files containing the comments
are not part of the source directory. I'm at work atm, so dont have my examples
handy... give me another 8 hours and I'll try and
get a response back to you with some further help.
> Again, sorry to intrude, and I appreciate your help,
np, understand.
cheers
dim
--
John Carse
Principal Consultant
Forte Consulting Group, Inc.
512-845-5041 Direct
512-394-9980 Fax
/**
* $Id: LoginForm.java,v 1.2 2002/04/07 18:22:41 jcarse Exp $
*
* @struts:form name="LoginForm"
*
*/
/**
* $Id: LoginAction.java,v 1.12 2002/04/08 19:41:22 jcarse Exp $
*
* @struts:action name="Login" path="/login" scope="request" input="/login.jsp"
* @struts:action-forward name="MainMenu" path="/mainmenu.jsp"
* @struts:action-forward name="Login" path="/login.jsp"
*
*/
>From my build.xml...
<taskdef name="webdoclet" classname="xdoclet.web.WebDocletTask"
classpath="${xdoclet.jar};${log4j.jar};${ant.jar}"/>
</target>
<target name="prepare">
<webdoclet destdir="${web-inf.dir}" sourcepath="${src.dir}">
<classpath refid="compile.classpath"/>
<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>
<strutsconfigxml destdir="${web-inf.dir}"/>
</webdoclet>
</target>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user