Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: How to get the property value in action

nuwan chandrasoma

2007-01-19

Replies:

Hi,

Inside you action class execute method

mapping.getMyProperty();

Thanks,

Nuwan.


----- Original Message -----
From: "Zhang, Larry (L.)" <lzhang20@(protected)>
To: "Struts Users Mailing List" <user@(protected)>
Sent: Thursday, January 18, 2007 10:59 PM
Subject: How to get the property value in action


I have the following action mapping, how to get the property value of
myProperty in action?

Thanks.

<action path="/maintainMyProcess" name="maintainForm"
type="com.....MaintainMyProcessAction" parameter="method">
       <set-property property="myProperty"
value="myPropertyValue"/>
</action>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.