Author: pbenedict
Date: Sun Jul  1 12:03:52 2007
New Revision: 552351

URL: http://svn.apache.org/viewvc?view=rev&rev=552351
Log:
STR-3052: Add actionId support

Modified:
    
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/exercise/struts-config.xml
    struts/struts1/trunk/apps/examples/src/main/webapp/exercise/html-img.jsp

Modified: 
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/exercise/struts-config.xml
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/exercise/struts-config.xml?view=diff&rev=552351&r1=552350&r2=552351
==============================================================================
--- 
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/exercise/struts-config.xml
 (original)
+++ 
struts/struts1/trunk/apps/examples/src/main/webapp/WEB-INF/exercise/struts-config.xml
 Sun Jul  1 12:03:52 2007
@@ -66,6 +66,7 @@
         <action path="/html-img" forward="/html-img.jsp"/>
         <!-- :FIXME: ImageAction should compute module prefix -->
         <action path="/html-img-action"
+                actionId="imgAction"
                 type="org.apache.struts.webapp.exercise.ImageAction"
                 parameter="/exercise/struts-power.gif"/>
         <action path="/html-image" forward="/html-image.jsp"

Modified: 
struts/struts1/trunk/apps/examples/src/main/webapp/exercise/html-img.jsp
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/apps/examples/src/main/webapp/exercise/html-img.jsp?view=diff&rev=552351&r1=552350&r2=552351
==============================================================================
--- struts/struts1/trunk/apps/examples/src/main/webapp/exercise/html-img.jsp 
(original)
+++ struts/struts1/trunk/apps/examples/src/main/webapp/exercise/html-img.jsp 
Sun Jul  1 12:03:52 2007
@@ -33,6 +33,7 @@
     <img src="struts-power.gif">
     </td>
     </tr>
+    <tr>
     <td>
     Struts img tag via page attribute
     </td>
@@ -50,11 +51,20 @@
     </tr>
     <tr>
     <td>
+    Struts img tag via action attribute and actionId
+    </td>
+    <td>
+    <html:img action="imgAction" />
+    </td>
+    </tr>
+    <tr>
+    <td>
     Struts img tag via page attribute, default module
     </td>
     <td>
     <html:img page="/exercise/struts-power.gif" module="/"/>
     </td>
     </tr>
+    </table>
   </body>
 </html>


Reply via email to