File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes validation Extended Ascii chars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation Extended Ascii chars" Watch "validation Extended Ascii chars" New topic
Author

validation Extended Ascii chars

M Pk
Greenhorn

Joined: Jun 02, 2005
Posts: 2
Hi,

I have to show an error message if the user enters an
extended ascii char (ascii code >127) in any of the fields on form submission.
I am using struts/websphere 6.1.
I don't want to specify each form field in validation xml.

Any help is appreciated.

MP
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If you don't want to validate each field then you'll need to do something like hook into the validation process via a custom request processor (if you're using Struts 1) or an interceptor or default validation method (Struts 2). Or do something through a filter, regardless of which Struts version.
M Pk
Greenhorn

Joined: Jun 02, 2005
Posts: 2
i was thinking of Filter. But how to rediect to same page with error message?
 
Consider Paul's rocket mass heater.
 
subject: validation Extended Ascii chars
 
Similar Threads
Display extended ASCII characters (ASCII more than 12 7 )in java.
Any implementation of Javascript Encryption and Java Decryption of Triple DES Algorithm
printing extended characters in swing
doubt on char assignment
Struts Form issue