Right way to use html:submit tag for localisation

V

Vijay

hi all,

I want to use localized strings as values to display on the submit
buttons. In my JSPs, i am using resource bundles to display the text on
the html:submit button.

How can I make all this transparent to my Action class. Is there any
nice way to do this?

Thanks for any help...
 
K

KevinHanna

It greatly depends on whether or not your action class looks at the
value of the submit button.

In most cases you won't be doing that. So this should require no
changes to your action class.

<html:submit property="action">
<bean:message key="button.doThatThang"/>
</html:submit>
 
V

Vijay

hi Kevin,

Thanks for replying. Can you tell me how my Action class will know what
button the user has pressed and take action accordingly. Currently, I
look at this value to find this out. I don't want to depend on
javascript.

If you are pressed for time, please guide me to some resource.

Thanks once again,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top