There is an open issue for struts2 with the matchingPattern and
excludingPattern
params for the xslt result type.

https://issues.apache.org/struts/browse/WW-1550 

Other options/workarounds for this would be to change the accessibility
of your
getUser and getSession methods to something other than public.  This is
definitely
not ideal and may or may not be possible depending on your app.  Since
it looks like
your are also extending ActionSupport, I don't know of a way to stop the
generation
of the actionErrors and actionMessages xml fragments.


John

> -----Original Message-----
> From: Richard Sayre [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 14, 2007 10:18 AM
> To: Struts Users Mailing List
> Subject: XSLT Result matching pattern
> 
> I am new to regular expressions and I am trying to have my XSLT result
> only show certain elements that are in the XML.
> 
> 
> here is some if the XML:
> 
> <result>
>  <actionsErrors/>
>  <actionsMessages/>
>  <questionTree> ... </questionTree>
> <user> ... </user>
> <session> ... </session>
> 
> </result>
> 
> I only want the result/questionTree node to be return to my page.
> 
> I tried doing this:
> 
> <param name="matchingPattern">/result/questionTree</param>
> 
> But all the XML is still returned.  Am I using that parameter
> properly?  Does it filter what XML is returned?  If so is my pattern
> wrong?
> 
> Thank you,
> 
> Rich
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to