struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Lorenz" <felipe.lor...@gmail.com>
Subject Re: fieldError tag
Date Tue, 03 Jun 2008 11:20:58 GMT
HUmmmm ok..

Did you try it:

<s:fielderror>
          <s:param value="%{'field1'}" />
          <s:param value="%{'field2'}" />
    </s:fielderror>
    <s:form .... >
       ....
    </s:form>

I found it on: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/components/FieldError.html

Try, and tell us about it...

Have good day!


On Mon, Jun 2, 2008 at 7:06 PM, David Evans <dsevans@berndtgroup.net> wrote:

> I'm sorry, my explanation was too brief.
>
> Given that the field "myField" has had a field error added to the
> FieldErrors collection, I am wondering if there is a way to display it
> on a jsp page that will be shorter than the documented:
> <s:fielderror><s:param>myField</s:param></s:fielderror>
>
> I was hoping for something like:
> <s:fielderror field="myField" />
>
>
> Dave
>
> On Mon, 2008-06-02 at 17:59 -0300, Felipe Lorenz wrote:
> > Well... in the Action class just add a field error to a especific field..
> >
> > On Mon, Jun 2, 2008 at 3:21 PM, David Evans <dsevans@berndtgroup.net>
> wrote:
> >
> > > Hello,
> > >
> > > Is there any way to specify a particular field error like this:
> > > <s:fielderror field="myField" />
> > >
> > > instead of:
> > > <s:fielderror><s:param>myField</s:param></s:fielderror>
> > >
> > >
> > > Thanks,
> > >
> > > Dave
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message