struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Antwort: Re: Re: Url rewriting of .action to .jsp
Date Tue, 24 Sep 2013 08:23:06 GMT
> > Yeah, I like the idea of strict-DMI. Right now I could not get it 
working
> > with the convention pulgin, can investigate next week.
> 
> That's why I want to have programmable configuration in XWork and then
> XML or Convention configuration via plugins - there strict path how to
> add new configuration option, like DMI strict mode.
> 
> > And I just realized that using "method:foo" parameter names works
> > independent of DMI.
> 
> Strange, what ActionMapper do you use?
> 

In the app I tested with I have 2.3.15.1 and default ActionMapper (nothing 
configured). strict-DMI was not explicitly enabled.

I just added "allowed-methods" to one action. Afterwards I could not 
invoke methods via URL (gave me method-not-allowed).
But a form with "method:add" did still work (while foo!add.action did 
not).


When I try to enable strict DMI like this:

<package name="..." extends="..." strict-method-invocation="true">

I get an exception at app start:
org.xml.sax.SAXParseException: Attribute "strict-method-invocation" must 
be declared for element type "package".




In another app, which is older and bigger, we do not use "method:" but 
bang-URLs for POST Requests. That is the one that did not work and needs 
more investigation.


Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message