Sorry, I can't help with the first question, but . . .

Roland Carlsson wrote:

Hi!

I'm trying to validate an URL, but it seems like whatever I write it will
not validate any url:s (eg http://www.apache.org ).

I'm using the following form in my validation.xml:

<form name="linkform">
   <field property="url" depends="url">
       <arg0 key="common.this" />
   </field>
   <field property="description" depends="required">
       <arg key="errors.required" />
       <arg0 key="commom.this" />
   </field>
</form>

Is there anything wrong or doesn't the url-validator work?

Another question is where I change the formatting of the output of my
error-message. My designer isn't to happy with the bulletlist. He prefer a
short text behind the field.



You'll have display each message manually instead of all at once (as you typically do with html:errors).

I think this will help:

http://www.mail-archive.com/user%40struts.apache.org/msg15728.html


Erik

Thanks in advance
Roland Carlsson


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to