Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Struts and the fly likes LookUpDispatchAction problem with 'bestätigen' button name - SOLVED Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "LookUpDispatchAction problem with Watch "LookUpDispatchAction problem with New topic

LookUpDispatchAction problem with 'bestätigen' button name - SOLVED

Julian Saunders

Joined: Jan 29, 2009
Posts: 1
added request.setCharacterEncoding("UTF-8"); near the top of the security filter


We've got a big problem with Struts 1.2 internationalization.

When we change the Locale to German the Confirm button is called bestätigen.

The ä character is not getting converted properly by Struts and we get the error 'HTTP Status 400 - Request[/saveR****] does not contain handler parameter named actionMethod'

The line in the jsp is :
<input type="submit" name="actionMethod" value="bestätigen" class="button" id="button">

We did fix a problem where in the View Source it was converting the ä char to 2 more special chars. Everything looks ok now, but behind the scenes Struts is translating the button label wrong.

We have tried adding enctype="application/x-www-form-urlencoded" on the html:form that is submitted, but it made no difference.

Please can you help me if you have come across this problem before.

Thank you

jQuery in Action, 2nd edition
subject: LookUpDispatchAction problem with 'bestätigen' button name - SOLVED