Below is a question I posted here a few days ago, but nobody responded.  I've
still not figured out what is wrong and why I can't get Xdoclet to create my
validation.xml (I include my original question in case someone can see any
relation between the problems), but I have given up trying to figure it out 
and was content to just use Xdoclet's struts-config.xml capabilities.  
However now that I have been trying to run my project I am disappointed to 
discover that this gets stuck at the top of my struts-config.xml

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


I got so many sax parser errors from that because struts 1.2.7 requires a
more recent version of the dtd (1.2).  Hence I can't use xdoclet for a modern
version of struts.  Deadend.

A week with the same problem has left me pretty
disolussioned with Xdoclet and as I watch this mailing list I am also
disappointed in the community support available.  I see far more questions
than responses.  My previous question generated only questions that were off
topic.  No doubt other lost souls like myself grasping for some shred of
hope.  *sigh*  Feeling like I'm talking to myself.  

If only the wiki were up, maybe there is where all the help is hiding.  But
when I go there I get:  Due to excessive spamming, the wiki is currently
offline. The XDoclet documentation can be found here, and support is
available through the xdoclet-user mailing list. You will need to subscribe
to the list before posting, due to the anti-spam filtering.

Yea.  Can we put the Wiki back up?  Doesn't it have a read-only mode?  That
is preferable to just taking it away completely.

 

On Mon, Jul 25, 2005 at 05:42:16PM -0500, Josh Cronemeyer wrote:
> Hi,
> 
> I've been getting up to speed on Xdoclet recently, but I have come across a
> problem that I can't crack.  My validation.xml is getting generated, and my
> merge files are getting merged into it, but the validation rules from my
> forms are not being created there.  The form and its properties show up in
> the generated struts-config.xml, but validation tags are ignored.  
> 
> What follows are some pertinent configuration details.  
> Any help would be much appreciated!!!
> 
> ---project.properties file---
> 
> # set up xdoclet to process this subset of files
> maven.xdoclet.webdoclet.fileset.0=true
> maven.xdoclet.webdoclet.fileset.0.include=**/*.java
> 
> # Generate a struts validation descriptor
> maven.xdoclet.webdoclet.strutsvalidationxml.0=true
> maven.xdoclet.webdoclet.strutsvalidationxml.0.destDir=${basedir}/target/${pom.artifactId}/WEB-INF
> maven.xdoclet.webdoclet.strutsvalidationxml.0.subTaskName=Generating 
> struts-validation.xml
> maven.xdoclet.webdoclet.strutsvalidationxml.0.mergeDir=${basedir}/merge
> maven.xdoclet.webdoclet.strutsvalidationxml.0.version=1.1.3
> 
> # Generate a struts config descriptor pulling in extra data from
> # metadata/struts
> maven.xdoclet.webdoclet.strutsconfigxml.0=true
> maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.2
> maven.xdoclet.webdoclet.strutsconfigxml.0.destDir=${basedir}/target/${pom.artifactId}/WEB-INF
> maven.xdoclet.webdoclet.strutsconfigxml.0.subTaskName=Generating 
> struts-config.xml
> maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=${basedir}/merge
> 
> --- POJO form class ---
> 
> 
> /**
>  * @struts.dynaform name="loginForm"
>  * type="org.apache.struts.validator.DynaValidatorActionForm"
>  * validate="true"
>  */
> public class LoginForm {
> 
> 
>       String certLevel;
> 
>       /**
>        * @struts.dynaform-field
>        */
>       public String getCertLevel() {
>               return certLevel;
>       }
> 
>       /**
>        * @struts.validator type="required"
>        * @struts.validator-args arg0resource="login.certLevel"
>        */
>       public void setCertLevel(String certLevel) {
>               this.certLevel = certLevel;
>       }
> 
> }
> 
> -- 
> Josh Cronemeyer
> Information Network of Kansas
> 
> "I don't understand," said the scientist, "why you lemmings all rush 
> down to the sea and drown yourselves."
> 
> "How curious," said the lemming.  "The one thing I don't understand 
> is why you human beings don't."
>   
> >From Interview With a Lemming, by James Thurber
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 

-- 
Josh Cronemeyer
Information Network of Kansas

"I don't understand," said the scientist, "why you lemmings all rush 
down to the sea and drown yourselves."

"How curious," said the lemming.  "The one thing I don't understand 
is why you human beings don't."
  
>From Interview With a Lemming, by James Thurber

CONFIDENTIALITY NOTICE:
This E-mail and any attachments are confidential.  If you are not the
intended recipient, you do not have permission to disclose, copy,
distribute, or open any attachments.  If you have received this E-mail
in error, please notify us immediately by returning it to the sender
and delete this copy from your system.

Thank you.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to