I'll try to give an example:

In our project, we're using a open source component called SiteMesh. 
SiteMesh contains a filter that we are using. We didn't create this 
filter, so therefore, we can't generate a filter mapping for it using 
XDoclet.

To overcome this, XDoclet gives you the ability to merge files into 
deployment descriptors. What we did, was create a filter-mappings.xml 
file (take a look in the generate xml files to see what to name certain 
files for merging) and added the following to it:

<filter>
    <filter-name>sitemesh</filter-name>
    
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>

<filter-mapping>
      <filter-name>sitemesh</filter-name>
      <url-pattern>/*</url-pattern>
</filter-mapping>

When xdoclet creates the web.xml, it will look in the merge directory 
we've specified, and add the above in the appropriate spot.

That's the jist of it. Hopefully, I haven't missed something. If I have 
could someone please point it out. ;)

HTH,
/rick

[EMAIL PROTECTED] wrote:

>I trying to understand xdoclet merging. I've read the 1.2 beta docs on 
>the subject, but am not fully understanding it yet. I make good use of 
>the sample project, but it doesn't seem to utilize merge functionality. 
>Can anyone provide me with pointers to any relevant examples or 
>documentation not included with the 1.2 beta? Thanks.
>
>Chuck
>
>
>
>-------------------------------------------------------
>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