Re: i18n, passing variable into arg0 using bean:message

2003-06-24 Thread Tin Pham
On thing that wasn't mentioned.

You have to cast to (String) in the scriptlets example as define does not
set a type.




"Jason Lea" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Tin Pham wrote:
> > Hi,
> >
> > Individually these all work
> >
> > deleteBusiness.confirm.p1 = Confirm company {0} is correct.
> >
> > 
> >
> >  > scope="session" ignore="true"/>
> >
> > Instead of using a literal of esso we want to use the value taken from
our
> > formBean, deleteOganizationForm.
> >
> > We have tried various combinations. Can somebody please provide an
example?
>
> You are unable to use a bean inside the arg0="" parameter (as you have
> no doubt found out).
>
> You probably have 2 choices here:
>
> 1. Use JSTL (preferred)
> You would have to use the struts-el tags in the contrib directory
> It should look something like this
>
>  arg0="${deleteOganizationForm.organizationName}"/>
>
>
>
> 2. Use Scriptlets
>
>  property="organizationName" />
>
> 
>
> -- 
> Jason Lea




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



Re: i18n, passing variable into arg0 using bean:message

2003-06-20 Thread Craig R. McClanahan


On Fri, 20 Jun 2003, Tin Pham wrote:

> Date: Fri, 20 Jun 2003 02:15:39 -0400
> From: Tin Pham <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: i18n, passing variable into arg0 using bean:message
>
> Thanks! I really appreciate your help.
>
> I guess JSTL will eventually replace struts custom tags?

The Struts logic tags will *not* go away (that would break backwards
compatibility), but I would recommend that you use JSTL (perhaps in
conjunction with the struts-el library to allow the use of EL expressions
in Struts-like tags) for new development.

Craig McClanahan

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



Re: i18n, passing variable into arg0 using bean:message

2003-06-19 Thread Tin Pham
Thanks! I really appreciate your help.

I guess JSTL will eventually replace struts custom tags?

"Jason Lea" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Tin Pham wrote:
> > Hi,
> >
> > Individually these all work
> >
> > deleteBusiness.confirm.p1 = Confirm company {0} is correct.
> >
> > 
> >
> >  > scope="session" ignore="true"/>
> >
> > Instead of using a literal of esso we want to use the value taken from
our
> > formBean, deleteOganizationForm.
> >
> > We have tried various combinations. Can somebody please provide an
example?
>
> You are unable to use a bean inside the arg0="" parameter (as you have
> no doubt found out).
>
> You probably have 2 choices here:
>
> 1. Use JSTL (preferred)
> You would have to use the struts-el tags in the contrib directory
> It should look something like this
>
>  arg0="${deleteOganizationForm.organizationName}"/>
>
>
>
> 2. Use Scriptlets
>
>  property="organizationName" />
>
> 
>
> -- 
> Jason Lea




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



RE: i18n, passing variable into arg0 using bean:message

2003-06-19 Thread Hrishi Dixit

This could be one way:




..Hrishi

--
__

 Hrishi Dixit
 Finaplex
 415-490-2236 work
 415-297-2722 cell
 [EMAIL PROTECTED]

> -Original Message-
> From: Tin Pham [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 19, 2003 6:04 AM
> To: [EMAIL PROTECTED]
> Subject: i18n, passing variable into arg0 using bean:message
> 
> 
> Hi,
> 
> Individually these all work
> 
> deleteBusiness.confirm.p1 = Confirm company {0} is correct.
> 
> 
> 
>  scope="session" ignore="true"/>
> 
> Instead of using a literal of esso we want to use the value 
> taken from our
> formBean, deleteOganizationForm.
> 
> We have tried various combinations. Can somebody please 
> provide an example?
> 
> 
> 
> 

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



Re: i18n, passing variable into arg0 using bean:message

2003-06-19 Thread Jason Lea
Tin Pham wrote:
Hi,

Individually these all work

deleteBusiness.confirm.p1 = Confirm company {0} is correct.




Instead of using a literal of esso we want to use the value taken from our
formBean, deleteOganizationForm.
We have tried various combinations. Can somebody please provide an example?
You are unable to use a bean inside the arg0="" parameter (as you have 
no doubt found out).

You probably have 2 choices here:

1. Use JSTL (preferred)
You would have to use the struts-el tags in the contrib directory
It should look something like this




2. Use Scriptlets





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


i18n, passing variable into arg0 using bean:message

2003-06-19 Thread Tin Pham
Hi,

Individually these all work

deleteBusiness.confirm.p1 = Confirm company {0} is correct.





Instead of using a literal of esso we want to use the value taken from our
formBean, deleteOganizationForm.

We have tried various combinations. Can somebody please provide an example?




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