> -----Original Message-----
> From: Dave Newton [mailto:[email protected]] 
> Sent: Wednesday, February 16, 2011 12:24
> To: Struts Developers List
> Cc: Jason Pyeron
> Subject: Re: Regression in s:url tag
> 
> Is dynamic method invocation turned on? 

It left as default, which should be on. grep -r DynamicMethodInvocation .
Produces no results on the src/build tree.

Confirmed against 
http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-
DynamicMethodInvocation
And 
http://struts.apache.org/2.1.6/docs/action-configuration.html#ActionConfiguratio
n-DynamicMethodInvocation

> Is there a method attribute?

I am using the tag without specifiying the method attribute, exactly as show
below. With out the method attribute, it should include the shebang and method
if the request currently has one. This way a single file.jsp could be used by
several actions/methods and stillp roduce useful links.

Again I just want to clarify, that this was working in 2.1.6, if I revert the
application to 2519 it works, 2520 it does not. Here is the change log:

------------------------------------------------------------------------
r2520 | jpyeron | 2011-02-05 23:03:45 -0500 (Sat, 05 Feb 2011) | 3 lines
Changed paths:
   M /redacted/.classpath
   D /redacted/lib/dist/struts2/struts2-config-browser-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-config-browser-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-convention-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-convention-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-core-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-core-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-dojo-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-dojo-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-dwr-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-dwr-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-jasperreports-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-jasperreports-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-javatemplates-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-javatemplates-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-jfreechart-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-jfreechart-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-junit-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-junit-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-pell-multipart-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-pell-multipart-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-rest-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-rest-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-sitegraph-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-sitegraph-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-sitemesh-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-sitemesh-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-struts1-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-struts1-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-testng-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-testng-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/struts2-tiles-plugin-2.1.6.jar
   A /redacted/lib/dist/struts2/struts2-tiles-plugin-2.2.1.1.jar
   D /redacted/lib/dist/struts2/support/commons-digester-1.8.jar
   A /redacted/lib/dist/struts2/support/commons-digester-2.0.jar
   D /redacted/lib/dist/struts2/support/freemarker-2.3.13.jar
   A /redacted/lib/dist/struts2/support/freemarker-2.3.16.jar
   A /redacted/lib/dist/struts2/support/json-lib-2.1-jdk15.jar (from
/redacted/lib/dist/struts2/support/json-lib-2.1.jar:2515)
   D /redacted/lib/dist/struts2/support/json-lib-2.1.jar
   D /redacted/lib/dist/struts2/support/ognl-2.6.11.jar
   A /redacted/lib/dist/struts2/support/ognl-3.0.jar
   D /redacted/lib/dist/struts2/support/sitemesh-2.3.jar
   A /redacted/lib/dist/struts2/support/sitemesh-2.4.2.jar
   A /redacted/lib/dist/struts2/support/testng-5.1-jdk15.jar (from
/redacted/lib/dist/struts2/support/testng-5.1.jar:2515)
   D /redacted/lib/dist/struts2/support/testng-5.1.jar
   D /redacted/lib/dist/struts2/support/xwork-2.1.2.jar
   A /redacted/lib/dist/struts2/support/xwork-core-2.2.1.1.jar

switch from struts 2.1.6 (with patch from
https://issues.apache.org/jira/browse/WW-3046)
to struts 2.2.1.1 (http://struts.apache.org/2.2.1.1/)

------------------------------------------------------------------------




> 
> Dave
> 
> On Wed, Feb 16, 2011 at 11:58 AM, Jason Pyeron 
> <[email protected]> wrote:
> > The <s:url var="url" escapeAmp="false"/> execution used to 
> produce (in 
> > 2.1.6) http://host/app/action!method and now produces 
> > http://host/app/action.xhtml droping the method in 2.2.1.1
> >



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to