Hi konference

I would like use tag action but from action I need only property, dont
executed/rendered.

When I use this:
<s:action name="Action1" namespace="/" executeResult="true" />
<s:property value="%{testValue}" />
rendered it result and view.

When I use this:
<s:action name="Action1" namespace="/" executeResult="false" />
<s:property value="%{testValue}" />
the action probably dont execute and the value is empty
--------------------------
struts.xml
 <action name="Action1" class="cz.test.ActionTest" method="list">       
        <result>/index.jsp</result>                                             
                                                      
 </action>      
------------------------
ActionTest.class

    int testValue;

    public void prepare() throws Exception {
         testValue=3;
   }

   public String list() throws Exception{                               
                return SUCCESS; //==========>
        }

    public int getTestValue()...
   public void setTestValue(int value)...
------------------------------------------------

Thanks for help

-----
Tomas Jurman
Czech Republic
-- 
View this message in context: 
http://www.nabble.com/action-tag-tp16920759p16920759.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to