----- Original Message -----
From: "Joseph Fifield" <[EMAIL PROTECTED]>
To: "WebWork User List" <[EMAIL PROTECTED]>
Sent: Sunday, March 24, 2002 5:42 PM
Subject: [Webwork-user] i18n usage question


> I have a simple jsp page with a form which makes use of the text('key')
> syntax to get messages from a resources bundle, and a simple action
> class that inherits from ActionSupport and implements LocaleAware. When
> I initially access the jsp page, none of the resource bundle messages
> are used (the values all return blank). However, after submitting my
> form and invoking the action the first time, now the messages show up. I
> assume because on the initial request of the jsp, there is no
> relationship between that jsp and the action class yet (until after the
> form submission)...? Not sure though...
>

Since you have not loaded an action before you hit your JSP, WW will not
find an appropriate method to map "text()". You several choices but here is
a couple of them.

1) You can use an inline Action tag and place an action on the stack or
2) Call an action's default command (foo!default.action) which will do
nothing and map it's success to this page.

> I looked at the example, and noticed in that case the locale was being
> set by user request from a form. In my case, I am trying to use the
> locale specified in the http request.
>
> My question is, how can I use a resource bundle in jsp's in this manner
> and still take advantage of the text('key') syntax in the ww custom
> tags?
>
> Thanks for your help!
>
> Joe
>
> _______________________________________________
> Webwork-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-user
>
>



_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to