|
I am using Xdoclet 1.2.3 and org.apache.maven.plugin is 1.6. There is no encoding tag in validator-global.xml If I add <? xmlversion=”1.1” encoding=”ISO-8859-1”> Then it simply added to validation.xml with all other tag and This line is added 2 time in Validation.xml and it fails while
xml validation. but conversion done properly. So I cannot add explicit encoding
in validator-global.xml. If encoding is UTF-8 then german character converted to garbage
value. How can we define which encoding should use while merging ? by
default it is UTF-8 which is not working. Thanks Warm Regards, Praveen Jain From: Mikhail Kalkov
[mailto:[email protected]] I've
never used XDoclet but it sounds like xmlencoding attribute of <strutsvalidationxml/> tag only sets the output encoding,
and there is no simple way to set the input incoding. It is also noteworthy
that the default output encoding is UTF-8. Can you try to convert your
validator-global.xml from iso-8859-1 to utf-8? Which version of xdoclet and
xdoclet-maven-plugin do you use by the way?
From: "Praveen Jain"
<[email protected]> When we include xdoclet in the project there is no need to write
validation.xml (for struts validation). All rules are defined in validator-global.xml and when user
build using maven validation.xml is generated runtime and validator-global.xml
is merged in validation.xml All properties are defined in <strutsvalidationxml/> if I write some german character in the validator-global.xml ,
and when build all german character are converted to some garbage value in
validation.xml. hope this is will clear the problem. Thanks Warm Regards, Praveen Jain
From: Mikhail Kalkov [mailto:[email protected]] Hi,
From: "Praveen Jain"
<[email protected]> Can u please someone tell , how can I add german characters in
validation.global.xml? So that it can be converted exactly in validation.xml m while
building. Thanks Warm Regards, Praveen Jain
From: Praveen Jain Yes I am using ISO-8859-1 Thanks Warm Regards, Praveen Jain
From: Martin Eisengardt [mailto:[email protected]] Do you set any encoding in your
pom.xml? On Thu, Nov 29, 2012 at 11:44 AM,
Praveen Jain <[email protected]>
wrote: Hi I am building my project using maven, I have some german character in my validation-global.xml When I build it they got converted to some garbage value in
validation.xml. If I add <? Xml version=1.0 encoding =”iso-8859-1”>
in validation-global.xml , then after build german character placed as it is in
validation.xml. But in validation.xml after <form-validation> I
have again <? Xml version=1.0 encoding =”iso-8859-1”> which violets
the XML structure and it doesnot work. Please assist Thanks Warm Regards, Praveen Jain
|
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
