I want to know how to pass the name of the method to execute an action, this the code that I wrote in page.jsp
<s:url id="url" action="FormInt!nom_of_method" includeContext="false"/>
<s:a href="%{url}"><s:text name="Accueil.FormInt"/></s:a>
I will execute the method (nom_of_method) that is in action (FormInt),but it generated error with the following link
http://localhost:7070/example/FormInt!nom_of_method.action
the link i want to have
http://localhost:7070/example/FormInt.action
P.S: I use Struts2 thanks :)
Aucun commentaire:
Enregistrer un commentaire