Works with http://localhost:8080/wildcard-method-selection/Person.action, here you have source https://github.com/apache/struts-examples/tree/master/wildcard-method-selection
This url is wrong http://localhost:8080/wildcard_method_selection/Person.action - updated wiki 2015-10-30 10:08 GMT+01:00 Daniel Hernáez <d.hern...@dosiper.com>: > Good morning, > > > > I am following the next Struts2 example: > https://struts.apache.org/docs/wildcard-method-selection.html > > > > The problem with that example is that method “execute” is not found with > the struts.xml configuration shown there (Could not find action or > result: /wildcard-method-selection/Person.action). According to the > explanation of the author, when you invoke the address “ > http://localhost:8080/wildcard_method_selection/Person.action” then > “execute” method in “PersonAction” should be executed (If there is no > value in front of Person, then the Struts 2 framework will call the execute > method of the class PersonAction.). The struts.xml file provided in the > example contains the next wildcard declaration: > > > > <action name=*"*Person"* class= > *"org.apache.struts.tutorials.wildcardmethod.action.PersonAction"* method= > *"{1}"*> > > <result name=*"success"*>view.jsp</result> > > <result name=*"input"*>input.jsp</result> > > </action> > > > > > > I must add an extra declaration like the following to get the example > works when invoking “Person.action”: > > > > <action name=*"Person"* class= > *"org.apache.struts.tutorials.wildcardmethod.action.PersonAction"* method= > *"execute"*> > > <result name=*"success"*>view.jsp</result> > > </action> > > > > > > Thank you very much for your help. > > > > Saludos / Regards, > > Daniel Hernáez > > *International Technical Service* > > > > Mobile: +34 699 140 596 > > Landline: +34 987 470 155 > > > > *Sistemas de Dosificación DOSIPER, S.L.* > > C/ Solana 12-14 P.I. Laciana > > 24112 Villager de Laciana-Villablino (León) > > > > > > [image: DOSIPER-LOGO] > > > > > > *Aviso legal:* > > La información incluida en este email es *CONFIDENCIAL*, siendo para uso > exclusivo del destinatario arriba mencionado. Si Ud lee este mensaje y no > es el destinatario indicado, le informamos que está totalmente prohibida > cualquier utilización, divulgación, distribución y/o reproducción de esta > comunicación, total o parcial, sin autorización expresa en virtud de la > legislación vigente. Si ha recibido este mensaje por error, le rogamos nos > lo notifique inmediatamente por esta vía y proceda a su eliminación junto > con sus ficheros anexos sin leerlo ni grabarlo. > > En virtud de lo establecido en la Ley 15/1999, y la LSSICE 34/2002, le > informamos que sus datos forman parte de un fichero automatizado > titularidad de *SISTEMAS DE DOSIFICACIÓN DOSIPER, S.L.* La información > registrada se utilizará para informarle por cualquier medio electrónico de > nuestras novedades comerciales. Puede ejercer los derechos de acceso, > rectificación, cancelación y oposición en: *C/ SOLANA, 12-14 NAVE P.I. > VILLAGER DE LACIANA 24110 VILLABLINO (LEÓN).* > > En cumplimiento de la Ley 34/2002 del 11 de julio, de Servicios de la > Sociedad de la Información y de Comercio Electrónico, le informamos que > puede revocar en cualquier momento, de forma sencilla y gratuita, el > consentimiento para la recepción de correo electrónico enviando un e-mail > con su solicitud a: *dosi...@dosiper.com > <dosi...@dosiper.com>* > > ____________________________ > > > > This e-mail and any files transmitted with it are *confidential *and > intended solely for the use of the individual to whom it is addressed. If > you have received this email in error please send it back to the person > that sent it to you. Unauthorized publication, use, dissemination, > forwarding, printing or copying of this email and its associated > attachments is strictly prohibited. > > Under the provisions of Law 15/1999, and the LSSICE 34/2002 normative, we > inform you that your data will form part of a computerized database owned > by *SISTEMAS DE DOSIFICACIÓN DOSIPER, S.L.*The registered information > will be used to maintain the contractual relation and to inform you by > e-mail or postcards of the commercial newness and/or new promotions of the > company. We also inform you that you may exercise the rights of access, > rectification, cancellation and opposition in *C/ SOLANA, 12-14 NAVE P.I. > VILLAGER DE LACIANA 24110 VILLABLINO (LEÓN)* > > In compliance with Law 34/2002 of July 11th, Services Information Society > and Electronic Commerce, we inform you that you may revoke at any time, > easily and free, the consent to receive e-mail´s, sending an e-mail with > your request to: *dosi...@dosiper.com <dosi...@dosiper.com>* > > >