I think I probably always use explicit mapping in annotation or XML, and not
using the wild card fall-back mapping. It won't be too much burden for me to
explicitly do that and that's also less error-prone. Thanks a lot for your
suggestion!


Wes Wannemacher wrote:
> 
> On Thu, 2009-01-08 at 21:09 -0800, Daniel Woo wrote:
>> 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"
> 
> It's not necessarily either implicit with Conventions or explicit with
> XML... I mix the two all the time. The problem is really just the
> wildcard. Go ahead and map all the actions you want, either in XML or
> annotations. What I was suggesting is that you simply adopt the
> convention for default mappings for the actions you are trying to catch
> with your wildcard. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/default-mapping-with-annotation-tp21366005p21366866.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