<constant name="struts.patternMatcher" value="regex" /> Mounir Am 14.03.2012 20:12, schrieb Dave Newton:
Are you actually using the `namedVariable` pattern matcher? http://struts.apache.org/2.x/docs/wildcard-mappings.html#WildcardMappings-Parametersinnamespaces Dave On Wed, Mar 14, 2012 at 3:09 PM, Mounir Benzid<[email protected]> wrote:My problem is the id is always null. First I thought it could be b/c of the way the defaultStack is set up so I switched to paramsPrepareParamsStack, yet the problem still remains. Any ideas on how to obtain the id from the request? Thanks! Mounir @Namespace("/public") public class PersonCRUDAction implements Preparable { private Long id; @Action("blah1/{id}/blah2") public void execute() { ... /* crud the person */ } public Long getId() { return id;} public void setId(Long id) {this.id=id} @Override public void prepare() throws Exception { Person peron; if (id!=null) person = personManager.loadById(id); else throw new NullArgumentException("id"); } } ------------------------------**------------------------------**--------- To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<[email protected]> For additional commands, e-mail: [email protected]
-- Mounir Benzid Systementwickler / EDV meetingmasters.de meetings meisterhaft managen · Unabhängige Vermittlung von Tagungshotels · Online-Hotelreservierungssystem zur Integration in die Veranstaltungs-Webseite · Webbasiertes Veranstaltungs- und Teilnehmermanagement · E-Procurement für den Tagungshoteleinkauf · Webbasierte Anfrage und Verhandlung von Firmenraten Max-Planck-Straße 22 D-54296 Trier fon +49 (0)651-145789-38 fax +49 (0)651-145789-20 www.meetingmasters.de [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

