This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
i need a way to find the key from the message passed .........
why i need it
i have a application that uses LookupDispatchAction and have corresponding ActionForm classes that validates
the bean properties ..... it actually do conditional validation based on which button pressed on the page by using mapping.getParameter()
and then extracting its value from request to decide which button is pressed like
if(request.getParameter(mapping.getParameter()).equals("SAVE")) // then do validation associated with save operation
if(request.getParameter(mapping.getParameter()).equals("DEL")) // then do validation associated with del operation
now my application is going to support multi languages here the problem arise the message that will come from button will come in different languages and it will cause to stop the validation
i have considerable amount of ActionForms and i dont want to edit every form
so i was looking to do any reverse lookup of keys from messages so that i can extract english messages and update accordingly