getting error-texts into global xml
Stephan Reichelt <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Organization | FhG IVI |
| Message-ID | <[email protected]> |
HI,
for detailed error handling (though multi language facilities are not
necessary), I need also texts in error-entries in strutscx-xml:
As example, something like
errors.add("dateElement", new ActionError("Please enter valid date!"));
should give the entry
<root>
...
<errors>
<dateElement>Please enter valid date!</dateElement>
...
</errors>
...
</root>
Is there any way to do this? For some input Elements we can have up to 5
different messages. It would be very difficult to put all of them into
variables_XX.xml and filter them via XSL..
MfG,
Stephan R.
--
[email protected]
Fraunhofer IVI Tel: +49 351 4640 616
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click