I believe, the point at which commons converters are implemented in Struts
won't help you here, judging by the way you're passing data to the view.

But if all you're trying to do is format the string into a date and you have
to stick with the DTO directly to view approach, you could try a combination
of the Struts TextTag and the JSTL formatting tags?  Format the data in the
JSP with the JStL formatting tag, then pass this new value to the TextTag?

Another option is to format it in the action, and pass it thru an actionform
(as previously described)



-----Original Message-----
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 2:27 PM
To: Struts Users Mailing List
Subject: Re: html:text and converter


Yes, that last msg wasn't much help.  Maybe if you provide a bigger picture
of
the situation, other folks can give you alternatives.  Or at least help
convince
you of the advantages to using AFs.

--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Perhaps it's time to consider using AFs.  :)
>
>
> --- Giovani Salvador <[EMAIL PROTECTED]> wrote:
> > The problem is that i am not showing the data with the action form. I
use
> > the html:text to read
> > directly from my DTO and, unfortunatly, no conversion is made.  :(
> >
> >
> > Giovani Salvador
> >
> >
> > ----- Original Message -----
> > From: "Hubert Rabago" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 08, 2004 3:14 PM
> > Subject: Re: html:text and converter
> >
> >
> > > You'll have to format the data that you're passing to your ActionForm.
If
> > you're
> > > extending from ActionForm (but not using a Dyna form), perhaps you can
> > format the
> > > data in your setField() method, or before returning from a getField()
> > method.
> > >
> > > --- Giovani Salvador <[EMAIL PROTECTED]> wrote:
> > > > Hi all...
> > > >
> > > > Is there a way to force that html:text call a converter? My problem
is
> > that i
> > > > am trying to format
> > > > a date before showing it with html:text tag and a possible way is to
> > pass by
> > > > the StringConverter class,
> > > > for example. By debugging the jakarta commons beans i perceveid that
> > this call
> > > > is not made. Any tip
> > > > on how to force passing by the StringConverter?
> > > >
> > > > Thanks.
> > > >
> > > > Giovani Salvador
> > > >
> > >
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
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