Hi Mark

Xdoclet generates the struts-config.xml. However it can't generate the
entire file, so for those elements that xdoclet doesn't create you have to
create one or more merge files. struts-plugins.xml is the merge file you
create to get struts plugins setup; xdoclet will merge this into the
struts-config.xml file that it generates.

If you look at the struts-config.xml that xdoclet generates you'll find a
number of comments telling you what could go into each section, and what to
call the merge file for that component.

For example here's the comment xdoclet generates telling you how to setup
plugins:

<!-- Define your Struts plugins in a file called struts-plugins.xml and
place it in your merge directory. -->

Hope this helps !

Edward

On 6/10/03 7:31 pm, "Mark Lybarger" <[EMAIL PROTECTED]> wrote:

> I'm a little new to all this; how is struts-plugins.xml related to xdoclet?
> does xdoclet generate this file?
> 
>> -----Original Message-----
>> From: Edward Kenworthy [mailto:[EMAIL PROTECTED]
>> Sent: Monday, October 06, 2003 2:17 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [Xdoclet-user] Xdoclet and struts and validator
>> 
>> 
>> Got the answer from javaranch, and despite Erik's assertion
>> it was something
>> to do with xdoclet I had to change, I had to add another merge file,
>> struts-plugins.xml (which is of course xdoclet specific) with
>> the following
>> in it (which is struts specific):
>> 
>> <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
>>     <set-property property="pathnames"
>>         value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>> </plug-in>
>> 
>> Edward
>> 
>> On 5/10/03 8:53 am, "Edward Kenworthy" <[EMAIL PROTECTED]> wrote:
>> 
>>> I'm using xdoclet to generate my struts config etc files
>> and I'm having a
>>> problem.
>>> 
>>> The symptom of the first one is when I click on the action
>> (foo.do) link on
>>> my page it goes straight to the success page - no sign of
>> the input page.
>>> 
>>> Loking at the server logs I note these three things happen,
>> in this order:
>>> 
>>> 1. The action form's constructor is called.
>>> 2. "org.apache.commons.validator.ValidatorException:
>> Resources not defined
>>> for Validator" is thrown.
>>> 3. The action's execute method is called.
>>> 
>>> Validator.xml is in the web-inf directory of my war.
>>> 
>>> Can anyone give me a pointer to what I should check here ?
>> Is this one
>>> error, or two unrelated ones do you think ?
>>> 
>>> Thanks in advance
>>> 
>>> Edward
>>> 
>>> 
>>> 
>>> -------------------------------------------------------
>>> This sf.net email is sponsored by:ThinkGeek
>>> Welcome to geek heaven.
>>> http://thinkgeek.com/sf
>>> _______________________________________________
>>> xdoclet-user mailing list
>>> [EMAIL PROTECTED]
>>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>> 
>> 
>> 
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> _______________________________________________
>> xdoclet-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>> 
>> ---
>> Incoming mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
>>  
>> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.522 / Virus Database: 320 - Release Date: 9/29/2003
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to