You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rodolfo García Esteban/CYII <rg...@cyii.es> on 2005/04/28 14:41:01 UTC

The best place for output formats

Hi,

I have a screen with the results of a query. this screen shows dates, and 
I need to format it. Which is the proper place to do this? the action, the 
form, the jsp.

Thanks
________________________
Rodolfo García Esteban
Canal Isabel II
División de Aplicaciones Técnicas
C/ Santa Engracia, 125
Edificio 8
Tel. 91 545 10 00 - Ext. 2128
Fax. 91 545 14 41
_______________________

Re: The best place for output formats

Posted by Tom Ziemer <t....@dkfz-heidelberg.de>.
Hi,

imho the jsp (view), because the action is just the controller and each 
view component should be able to decide how to format data. Maybe the 
fmt tags (jstl) or a custom tag could take care of formatting the output.

Regards,
Tom

Leon Rosenberg wrote:
> imho the action, because the neither the jsp nor the beans/forms should
> know anything about a query. But I'm often very alone with this
> opinion :-)
> 
> regards
> Leon
> 
> 
> On Thu, 2005-04-28 at 14:41 +0200, Rodolfo García Esteban/CYII wrote:
> 
>>Hi,
>>
>>I have a screen with the results of a query. this screen shows dates, and 
>>I need to format it. Which is the proper place to do this? the action, the 
>>form, the jsp.
>>
>>Thanks
>>________________________
>>Rodolfo García Esteban
>>Canal Isabel II
>>División de Aplicaciones Técnicas
>>C/ Santa Engracia, 125
>>Edificio 8
>>Tel. 91 545 10 00 - Ext. 2128
>>Fax. 91 545 14 41
>>_______________________
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Re: The best place for output formats

Posted by Leon Rosenberg <st...@anotheria.net>.
imho the action, because the neither the jsp nor the beans/forms should
know anything about a query. But I'm often very alone with this
opinion :-)

regards
Leon


On Thu, 2005-04-28 at 14:41 +0200, Rodolfo García Esteban/CYII wrote:
> Hi,
> 
> I have a screen with the results of a query. this screen shows dates, and 
> I need to format it. Which is the proper place to do this? the action, the 
> form, the jsp.
> 
> Thanks
> ________________________
> Rodolfo García Esteban
> Canal Isabel II
> División de Aplicaciones Técnicas
> C/ Santa Engracia, 125
> Edificio 8
> Tel. 91 545 10 00 - Ext. 2128
> Fax. 91 545 14 41
> _______________________



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org