Wes Wannemacher wrote:
> 
> I'm surprised this works, order is significant, so the wildcard would
> match and look for _HelloWorld.jsp... But, since you indicate that it
> does, I'm guessing in your struts.xml, you have the right order.
> 
Yep, I have the right order in my struts.xml, this is a reformat :-)



Wes Wannemacher wrote:
> 
> How are you doing the annotation configuration, meaning, which plugin?
> Are you using Codebehind, Conventions, Zero-Config, etc. Most of the
> plugins perform mappings by using a rewritten UnknownHandler, which
> means that XML configuration takes precedence. You may be in a bit of a
> pickle, since you want a default catch-all... I would suggest looking at
> the Conventions plugin since it will do what you are looking for,
> without the XML configuration. It will provide a default mapping by
> backing each action request with ActionSupport if a JSP file exists on
> the file system matching the URI of the incoming request.
> 
I am using Conventions since annotation is moved into Conventions in 2.1.2. 
The problem is that I like explicit declaration of Action/URL/namespace etc
in annotations rather than implicit declaration provided by Convertion, only
for a few simple JSP files I want it to be mapped implicitly with a
wild-card in struts.xml. It seems that it's impossible to do that, I have to
either use implicit with Conventions suggested, or use explicit declaration
without "default mapping"
-- 
View this message in context: 
http://www.nabble.com/default-mapping-with-annotation-tp21366005p21366353.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to