Re: using inject with Convention Plugin

2009-03-30 Thread Kumar Mettu
just need to do something like: @Inject("the.constant") public void setSomeConstant(String constant) { } and the value of the constant with key "the.constant" will be injected. You can also inject by type, like the "Container" instance and so on. musachy On Fri, Mar

Re: beginner

2009-03-30 Thread Kumar Mettu
Alex,   You can find example applications at:     http://struts.apache.org/download.cgi   Look for file: struts-2.1.6-apps.zip . It has several examples to get you started. Hope this helps. Kumar. --- On Mon, 3/30/09, Àlex Camps Mezquita wrote: From: Àlex Camps Mezquita Subject: beginner T

Re: How to make Struts2 action take only POST request

2009-03-27 Thread Kumar Mettu
Nilay,   As you can see Attributes for action from:    http://struts.apache.org/dtds/struts-2.0.dtd   There is no configuration that would let you do that. However you can do this programatically by using ServletActionContext.getRequest().getMethod() Hope this helps. Kumar. --- On Fri, 3/27/09

Re: using inject with Convention Plugin

2009-03-27 Thread Kumar Mettu
t you just need to do something like: @Inject("the.constant") public void setSomeConstant(String constant) { } and the value of the constant with key "the.constant" will be injected. You can also inject by type, like the "Container" instance and so on. musachy On Fri

using inject with Convention Plugin

2009-03-27 Thread Kumar Mettu
Hi,   I am looking for a way to inject resources while using Convention Plugin. I can't find any relevant docs. Can someone point me in right direction? Thanks, Kumar.