Thanks Antonio.

Yes, this is exactly what I want.

And this is my fourth day to learn about JSP, STRUTS and everything about JAVA. 
So I found there are too much to learn, whereas I don't have much time to learn 
it systematically and I don't have enough materials to learn it from espesially 
that I cannot access Internet except e-mail. So this mail list is the only way 
that I can ask my questions.

Talos

----- Original Message ----- 
From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, March 20, 2008 4:03 PM
Subject: Re: About tag <bean>


2008/3/20, Chen Chunwei <[EMAIL PROTECTED]>:
>  Can tag <bean> fetch the value processed by a specified ActionForm?
>  For instance, there's an ActionForm named TestActionForm, which has a field 
> defined with "String test". And the corresponding get-method getTest() will 
> add a prefix "p:" to the field test. Supposing the origin value of test is 
> "a", then whether I can use tag <bean> to get the processed value "p:a"? If 
> can, then how?

I suppose that you are writing about <bean:write>.
Well, you can do it by using:
<bean:write name="formBeanName" property="test" />
"formBeanName" is the name that you declared in your
struts-config.xml, along with the called action.
The "getTest" will get called.

Antonio

P.S.: It seemed too simple to be true. Is it really this what you want?

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

Reply via email to