• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DispatchAction - problem with buttons value

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i have these innerclass name inside my displatch action:

public ActionForward removeJob(...)

public ActionForward replaceJob(...)

I am having trouble with the button's label(- which is also the value to be called for action) because i use fmt:message for my Internationalization functionality.

So when i use: <html:submit>, label value must be thesame with my innerclass name to call my action class. but button's label is changed according to locale.

http://hostname/myApp/job.do?op=removeJob
I have to used different label value for removeJob in my button

Any help will be appreciated.

Thank you.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Quincex,

First an administrative matter: your current display name does not meet the standards outlined in the JavaRanch Naming Policy, which specifies that it must be a first and last name, and must not be obviously fictitious. Please take a minute to change it.

Regarding your question, your problem will be solved if you use LookupDispatchAction instead of DispatchAction as your superclass.
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic