Re: Re: tokens in error messages
Dudley Butt <[email protected]> Tue, 15 Mar 2005 19:20:57 +0200
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, thanx for the idea,
I think I just need to clarify what I'm wanting.
In classic Struts you have the validation framework which u can send
in params as tokens to be substituted in the error msg.
For example
<bean:message bundle="<%=applocale>" key="errors.priceChange.continue"
arg0="<%=support_email>" />
the error msg looks like this in the resource bundle:
errors.priceChange.continue=To continue please email {0}
Can this still be done using STRUTSCX? THIS IS THE QUESTION! AND NO!,
I DO NOT WANT TO WORK WITH THE REQUEST DIRECTLY, thats why we have a
framework!
Thanx again
Dudley
On Tue, 15 Mar 2005 14:51:40 +0000 (UTC), Yayo <[email protected]> wrote:
> HI, man.
>
> I use this
>
> <errors-invalid-head>
> The field '
> </errors-invalid-head>
> <errors-invalid-tail>
> ' is invalid.
> </errors-invalid-tail>
>
> And I think I could automate it a bit using numbers or so instead of "-head" and
> "-tail" to compose the messages with more than 2 params... I say more than two
> 'cos for two I've got -head -mid and -tail such as for range check errors.
>
> Could it be?
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Strutscx-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/strutscx-user
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click