You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caoilte O'Connor <li...@caoilte.org> on 2003/11/12 13:11:15 UTC

xdoclet strutsconfigxml thingy

Does anyone who uses XDoclet know how to make it generate 
struts-config sub-app config files?

I've been looking at it and can't work out whether it's 
covered.

c


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Apply an Xslt to the struts-config.xml

Posted by Stephan Wiesner <sw...@logicline.de>.
Attached is a simple XSL file you can use. You might want to adapt it to 
display different Informations, though.

Stephan

Nick Heudecker wrote:

> Adrien,
> 
> StrutsDoc, my project, does this.  You can check it out at:
> http://struts.sf.net/strutsdoc
> 
> Feel free to contact me with questions or comments.
> 
> On Wed, Nov 12, 2003 at 02:41:22PM +0100, Adrien GEYMOND wrote:
> 
>>Hello all,
>>
>>I am looking for a nice presentation of the struts-config.xml. I want to
>>apply a Xslt file on the struts-config.xml in order to have a well displayed
>>view of my struts-config. the result format should be HTML, SVG or ....
>>
>>Does somedy have already seen something like that ? Is there a tool,
>>somebody has already developped an Xsl for doing that ?
>>
>>....
>>Today, i've found on google a Xslt which  examines the struts-config.xml and
>>looks for inconsistencies and reports the errors.
>>http://www.aida2.org/ndpsoftware.com/downloads-xsl-struts.php
>>
>>thanks for advance ...
>>
>>adrien
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

Re: Apply an Xslt to the struts-config.xml

Posted by Nick Heudecker <ni...@systemmobile.com>.
Adrien,

StrutsDoc, my project, does this.  You can check it out at:
http://struts.sf.net/strutsdoc

Feel free to contact me with questions or comments.

On Wed, Nov 12, 2003 at 02:41:22PM +0100, Adrien GEYMOND wrote:
> Hello all,
> 
> I am looking for a nice presentation of the struts-config.xml. I want to
> apply a Xslt file on the struts-config.xml in order to have a well displayed
> view of my struts-config. the result format should be HTML, SVG or ....
> 
> Does somedy have already seen something like that ? Is there a tool,
> somebody has already developped an Xsl for doing that ?
> 
> ....
> Today, i've found on google a Xslt which  examines the struts-config.xml and
> looks for inconsistencies and reports the errors.
> http://www.aida2.org/ndpsoftware.com/downloads-xsl-struts.php
> 
> thanks for advance ...
> 
> adrien
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

-- 
Nick Heudecker
SystemMobile, Inc.
Email: nick@systemmobile.com
Web: http://www.systemmobile.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Apply an Xslt to the struts-config.xml

Posted by Adrien GEYMOND <ad...@cgey.com>.
Hello all,

I am looking for a nice presentation of the struts-config.xml. I want to
apply a Xslt file on the struts-config.xml in order to have a well displayed
view of my struts-config. the result format should be HTML, SVG or ....

Does somedy have already seen something like that ? Is there a tool,
somebody has already developped an Xsl for doing that ?

....
Today, i've found on google a Xslt which  examines the struts-config.xml and
looks for inconsistencies and reports the errors.
http://www.aida2.org/ndpsoftware.com/downloads-xsl-struts.php

thanks for advance ...

adrien


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: xdoclet strutsconfigxml thingy

Posted by ha...@informatiefabriek.nl.
You can easily set the destination directory for your struts-config.xml.

So you can have many different sub-apps...

Regards,

Harm de Laat
Informatiefabriek
The Netherlands




Caoilte O'Connor <li...@caoilte.org> 
11/12/2003 01:55 PM
Please respond to
"Struts Users Mailing List" <st...@jakarta.apache.org>


To
struts-user@jakarta.apache.org
cc

Subject
Re: xdoclet strutsconfigxml thingy






ok. i have something similar enough.



But which bit in that specifies that you have a subapp, ie

struts-config-XXX.xml

instead of,

struts-config.xml


and do you put the subapp xml merge files in a sub dir of 
the root merge dir? or specify them as a separate merge dir 
in another webdoclet invocation.

cheers

c


On Wednesday 12 November 2003 13:23, 
harm@informatiefabriek.nl wrote:
> Yes it is quitte easy:
>
> In build.xml
> <target name="xdoclet.web">
>
>                 <taskdef
>                 name="webdoclet"
> 
> classname="xdoclet.modules.web.WebDocletTask"
> classpathref="xdoclet.classpath" />
>
>         <webdoclet
> 
> destdir="${resources.dir}/manager/WEB-INF"
> mergedir="${xdoclet.merge.dir}/manager"
>
>
>                 <fileset dir="${classes.dir}/manager"
> includes= "**/*Action.java"/>
>                 <fileset dir="${classes.dir}/manager"
> includes= "**/*Form.java"/>
>                 <fileset dir="${classes.dir}/manager"
> includes= "**/*Servlet.java"/>
>
>                 <deploymentdescriptor
> 
> servletspec="${servlet.spec.version}"
> distributable="false"
>                         sessiontimeout="240"
>
>                         <taglib
>                     uri="struts-bean"
>                     location="/WEB-INF/struts-bean.tld"
>                 />
>                         <taglib
>                     uri="struts-html"
>                     location="/WEB-INF/struts-html.tld"
>                 />
>                         <taglib
>                     uri="struts-logic"
>                     location="/WEB-INF/struts-logic.tld"
>                 />
>                         <taglib
>                     uri="struts-nested"
>                     location="/WEB-INF/struts-nested.tld"
>                 />
>                         <taglib
>                     uri="struts-tiles"
>                     location="/WEB-INF/struts-tiles.tld"
>                 />
>                         <taglib
>                     uri="sitemesh-decorator"
> 
> location="/WEB-INF/sitemesh-decorator.tld" />
>                         <taglib
>                     uri="sitemesh-page"
>                     location="/WEB-INF/sitemesh-page.tld"
>                 />
>                 <taglib
> 
> uri="http://jakarta.apache.org/taglibs/jstl/core"
> location="/WEB-INF/c.tld" />
>                 <taglib
> 
> uri="http://jakarta.apache.org/taglibs/jstl/fmt"
> location="/WEB-INF/fmt.tld" />
>
>             </deploymentdescriptor>
>
>             <strutsconfigxml version="1.1"/>
>
>         </webdoclet>
> </target>
>
>
> In your Java files:
>
> * @struts.action
>  *              name="changeStateForm"
>  *              path="/change_state"
>  *              scope="request"
>  *              validate="false"
>  * @struts.action-forward
>  *              name="success"
>  *              path="/main.jsp"
>  * @struts.action-exception
>  * 
> key="advertisement.doesnt.exists.exception" *
> type="nl.informatiefabriek.om.exception.advertisement.Adv
>ertisementDoesNotExistException" * 
> path="/error.jsp"
>  *              scope="request"
>  * @struts.action-exception
>  *              key="relation.doesnt.exists.exception"
>  *
> type="nl.informatiefabriek.om.exception.relation.Relation
>DoesNotExistsException" *              path="/error.jsp"
>  *              scope="request"
>  */
> public class ChangeStateAction extends BaseAction {
>         // your class
> }
>
> Good luck,
>
> Regards,
>
> Harm de Laat
> Informatiefabriek
> The Netherlands
>
>
>
>
> Caoilte O'Connor <li...@caoilte.org>
> 11/12/2003 01:11 PM
> Please respond to
> "Struts Users Mailing List"
> <st...@jakarta.apache.org>
>
>
> To
> "Struts Users Mailing List"
> <st...@jakarta.apache.org> cc
>
> Subject
> xdoclet strutsconfigxml thingy
>
>
>
>
>
>
> Does anyone who uses XDoclet know how to make it generate
> struts-config sub-app config files?
>
> I've been looking at it and can't work out whether it's
> covered.
>
> c
>
>
> ---------------------------------------------------------
>------------ To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org For additional
> commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------
>------------ To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org For additional
> commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: xdoclet strutsconfigxml thingy

Posted by Caoilte O'Connor <li...@caoilte.org>.
ok. i have something similar enough.



But which bit in that specifies that you have a subapp, ie

struts-config-XXX.xml

instead of,

struts-config.xml


and do you put the subapp xml merge files in a sub dir of 
the root merge dir? or specify them as a separate merge dir 
in another webdoclet invocation.

cheers

c


On Wednesday 12 November 2003 13:23, 
harm@informatiefabriek.nl wrote:
> Yes it is quitte easy:
>
> In build.xml
> <target name="xdoclet.web">
>
>                 <taskdef
>                 name="webdoclet"
>                
> classname="xdoclet.modules.web.WebDocletTask"
> classpathref="xdoclet.classpath" />
>
>         <webdoclet
>                
> destdir="${resources.dir}/manager/WEB-INF"
> mergedir="${xdoclet.merge.dir}/manager"
>
>
>                 <fileset dir="${classes.dir}/manager"
> includes= "**/*Action.java"/>
>                 <fileset dir="${classes.dir}/manager"
> includes= "**/*Form.java"/>
>                 <fileset dir="${classes.dir}/manager"
> includes= "**/*Servlet.java"/>
>
>                 <deploymentdescriptor
>                        
> servletspec="${servlet.spec.version}"
> distributable="false"
>                         sessiontimeout="240"
>
>                         <taglib
>                     uri="struts-bean"
>                     location="/WEB-INF/struts-bean.tld"
>                 />
>                         <taglib
>                     uri="struts-html"
>                     location="/WEB-INF/struts-html.tld"
>                 />
>                         <taglib
>                     uri="struts-logic"
>                     location="/WEB-INF/struts-logic.tld"
>                 />
>                         <taglib
>                     uri="struts-nested"
>                     location="/WEB-INF/struts-nested.tld"
>                 />
>                         <taglib
>                     uri="struts-tiles"
>                     location="/WEB-INF/struts-tiles.tld"
>                 />
>                         <taglib
>                     uri="sitemesh-decorator"
>                    
> location="/WEB-INF/sitemesh-decorator.tld" />
>                         <taglib
>                     uri="sitemesh-page"
>                     location="/WEB-INF/sitemesh-page.tld"
>                 />
>                 <taglib
>                        
> uri="http://jakarta.apache.org/taglibs/jstl/core"
> location="/WEB-INF/c.tld" />
>                 <taglib
>                        
> uri="http://jakarta.apache.org/taglibs/jstl/fmt"
> location="/WEB-INF/fmt.tld" />
>
>             </deploymentdescriptor>
>
>             <strutsconfigxml version="1.1"/>
>
>         </webdoclet>
> </target>
>
>
> In your Java files:
>
> * @struts.action
>  *              name="changeStateForm"
>  *              path="/change_state"
>  *              scope="request"
>  *              validate="false"
>  * @struts.action-forward
>  *              name="success"
>  *              path="/main.jsp"
>  * @struts.action-exception
>  *             
> key="advertisement.doesnt.exists.exception" *
> type="nl.informatiefabriek.om.exception.advertisement.Adv
>ertisementDoesNotExistException" *             
> path="/error.jsp"
>  *              scope="request"
>  * @struts.action-exception
>  *              key="relation.doesnt.exists.exception"
>  *
> type="nl.informatiefabriek.om.exception.relation.Relation
>DoesNotExistsException" *              path="/error.jsp"
>  *              scope="request"
>  */
> public class ChangeStateAction extends BaseAction {
>         // your class
> }
>
> Good luck,
>
> Regards,
>
> Harm de Laat
> Informatiefabriek
> The Netherlands
>
>
>
>
> Caoilte O'Connor <li...@caoilte.org>
> 11/12/2003 01:11 PM
> Please respond to
> "Struts Users Mailing List"
> <st...@jakarta.apache.org>
>
>
> To
> "Struts Users Mailing List"
> <st...@jakarta.apache.org> cc
>
> Subject
> xdoclet strutsconfigxml thingy
>
>
>
>
>
>
> Does anyone who uses XDoclet know how to make it generate
> struts-config sub-app config files?
>
> I've been looking at it and can't work out whether it's
> covered.
>
> c
>
>
> ---------------------------------------------------------
>------------ To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org For additional
> commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------
>------------ To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org For additional
> commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: xdoclet strutsconfigxml thingy

Posted by Mark Lowe <ma...@talk21.com>.
I had to use the destdir attribute

<strutsconfigxml version="1.1" destdir="${build.dir}/WEB-INF" />

On 12 Nov 2003, at 12:23, harm@informatiefabriek.nl wrote:

> Yes it is quitte easy:
>
> In build.xml
> <target name="xdoclet.web">
>
>                 <taskdef
>                 name="webdoclet"
>                 classname="xdoclet.modules.web.WebDocletTask"
>                 classpathref="xdoclet.classpath"
>         />
>
>         <webdoclet
>                 destdir="${resources.dir}/manager/WEB-INF"
>                 mergedir="${xdoclet.merge.dir}/manager"
>
>>
>                 <fileset dir="${classes.dir}/manager" includes=
> "**/*Action.java"/>
>                 <fileset dir="${classes.dir}/manager" includes=
> "**/*Form.java"/>
>                 <fileset dir="${classes.dir}/manager" includes=
> "**/*Servlet.java"/>
>
>                 <deploymentdescriptor
>                         servletspec="${servlet.spec.version}"
>                         distributable="false"
>                         sessiontimeout="240"
>>
>                         <taglib
>                     uri="struts-bean"
>                     location="/WEB-INF/struts-bean.tld"
>                 />
>                         <taglib
>                     uri="struts-html"
>                     location="/WEB-INF/struts-html.tld"
>                 />
>                         <taglib
>                     uri="struts-logic"
>                     location="/WEB-INF/struts-logic.tld"
>                 />
>                         <taglib
>                     uri="struts-nested"
>                     location="/WEB-INF/struts-nested.tld"
>                 />
>                         <taglib
>                     uri="struts-tiles"
>                     location="/WEB-INF/struts-tiles.tld"
>                 />
>                         <taglib
>                     uri="sitemesh-decorator"
>                     location="/WEB-INF/sitemesh-decorator.tld"
>                 />
>                         <taglib
>                     uri="sitemesh-page"
>                     location="/WEB-INF/sitemesh-page.tld"
>                 />
>                 <taglib
>                          
> uri="http://jakarta.apache.org/taglibs/jstl/core"
>                         location="/WEB-INF/c.tld"
>                 />
>                 <taglib
>                          
> uri="http://jakarta.apache.org/taglibs/jstl/fmt"
>                         location="/WEB-INF/fmt.tld"
>                 />
>
>             </deploymentdescriptor>
>
>             <strutsconfigxml version="1.1"/>
>
>         </webdoclet>
> </target>
>
>
> In your Java files:
>
> * @struts.action
>  *              name="changeStateForm"
>  *              path="/change_state"
>  *              scope="request"
>  *              validate="false"
>  * @struts.action-forward
>  *              name="success"
>  *              path="/main.jsp"
>  * @struts.action-exception
>  *              key="advertisement.doesnt.exists.exception"
>  *
> type="nl.informatiefabriek.om.exception.advertisement.AdvertisementDoes 
> NotExistException"
>  *              path="/error.jsp"
>  *              scope="request"
>  * @struts.action-exception
>  *              key="relation.doesnt.exists.exception"
>  *
> type="nl.informatiefabriek.om.exception.relation.RelationDoesNotExistsE 
> xception"
>  *              path="/error.jsp"
>  *              scope="request"
>  */
> public class ChangeStateAction extends BaseAction {
>         // your class
> }
>
> Good luck,
>
> Regards,
>
> Harm de Laat
> Informatiefabriek
> The Netherlands
>
>
>
>
> Caoilte O'Connor <li...@caoilte.org>
> 11/12/2003 01:11 PM
> Please respond to
> "Struts Users Mailing List" <st...@jakarta.apache.org>
>
>
> To
> "Struts Users Mailing List" <st...@jakarta.apache.org>
> cc
>
> Subject
> xdoclet strutsconfigxml thingy
>
>
>
>
>
>
> Does anyone who uses XDoclet know how to make it generate
> struts-config sub-app config files?
>
> I've been looking at it and can't work out whether it's
> covered.
>
> c
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: xdoclet strutsconfigxml thingy

Posted by ha...@informatiefabriek.nl.
Yes it is quitte easy:

In build.xml
<target name="xdoclet.web">
 
                <taskdef 
                name="webdoclet" 
                classname="xdoclet.modules.web.WebDocletTask"
                classpathref="xdoclet.classpath"
        />
 
        <webdoclet 
                destdir="${resources.dir}/manager/WEB-INF" 
                mergedir="${xdoclet.merge.dir}/manager"
 
        >
                <fileset dir="${classes.dir}/manager" includes=
"**/*Action.java"/>
                <fileset dir="${classes.dir}/manager" includes=
"**/*Form.java"/>
                <fileset dir="${classes.dir}/manager" includes=
"**/*Servlet.java"/>

                <deploymentdescriptor 
                        servletspec="${servlet.spec.version}"
                        distributable="false" 
                        sessiontimeout="240"
                >
                        <taglib
                    uri="struts-bean"
                    location="/WEB-INF/struts-bean.tld"
                />
                        <taglib
                    uri="struts-html"
                    location="/WEB-INF/struts-html.tld"
                />
                        <taglib
                    uri="struts-logic"
                    location="/WEB-INF/struts-logic.tld"
                />
                        <taglib
                    uri="struts-nested"
                    location="/WEB-INF/struts-nested.tld"
                />
                        <taglib
                    uri="struts-tiles"
                    location="/WEB-INF/struts-tiles.tld"
                />
                        <taglib
                    uri="sitemesh-decorator"
                    location="/WEB-INF/sitemesh-decorator.tld"
                />
                        <taglib
                    uri="sitemesh-page"
                    location="/WEB-INF/sitemesh-page.tld"
                />
                <taglib
                        uri="http://jakarta.apache.org/taglibs/jstl/core"
                        location="/WEB-INF/c.tld"
                />
                <taglib
                        uri="http://jakarta.apache.org/taglibs/jstl/fmt"
                        location="/WEB-INF/fmt.tld"
                />
 
            </deploymentdescriptor>
 
            <strutsconfigxml version="1.1"/>
 
        </webdoclet>
</target>


In your Java files:

* @struts.action
 *              name="changeStateForm"
 *              path="/change_state"
 *              scope="request"
 *              validate="false"
 * @struts.action-forward
 *              name="success"
 *              path="/main.jsp"
 * @struts.action-exception
 *              key="advertisement.doesnt.exists.exception"
 *              
type="nl.informatiefabriek.om.exception.advertisement.AdvertisementDoesNotExistException"
 *              path="/error.jsp"
 *              scope="request"
 * @struts.action-exception
 *              key="relation.doesnt.exists.exception"
 *              
type="nl.informatiefabriek.om.exception.relation.RelationDoesNotExistsException"
 *              path="/error.jsp"
 *              scope="request"
 */
public class ChangeStateAction extends BaseAction {
        // your class
}

Good luck,

Regards,

Harm de Laat
Informatiefabriek
The Netherlands




Caoilte O'Connor <li...@caoilte.org> 
11/12/2003 01:11 PM
Please respond to
"Struts Users Mailing List" <st...@jakarta.apache.org>


To
"Struts Users Mailing List" <st...@jakarta.apache.org>
cc

Subject
xdoclet strutsconfigxml thingy






Does anyone who uses XDoclet know how to make it generate 
struts-config sub-app config files?

I've been looking at it and can't work out whether it's 
covered.

c


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org