You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dimitris Mouchritsas <di...@eurodyn.com> on 2008/06/16 14:37:46 UTC
Provide links from XDoclet validator tags
Hi once more,
seems like a struts day to me :)
Anyway, using struts 1.2.4 and XDoclet 1.2.3 is there a way to define an
error message for a form which includes an argument or something?
For example:
/**
* Set name.
*
* @param name the value to set.
*
* @struts.validator type="required,maxlength"
*
* @struts.validator-var name="maxlength" value="60"
*
* @struts.validator-args arg0resource="prompt.reg.orgname"
* @struts.validator-args arg1value="${var:maxlength}"
*/
public void setName(String name)
{
this.name = name;
}
if the organisation name is missing the message produced is:
Organisation Name is missing
What I'd like to produce is:
<a href="#Name">Organisation Name</a> is missing.
Is there a way to do it?
Regards
Dimitris
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org