You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Scaduto <rs...@douwantit.com> on 2002/03/08 20:21:09 UTC

RE: HTML tags - WHY?

Internationalization is one of the main reasons I see in using the Struts
tags for non-form related tags.  Our site is implemented in several
languages and so all of the images and text come from ResourceBundles.
Struts is automatically aware of these bundles and will display the right
content for the specified locale. The <html:img> tag is a good example of
this.

Outside of this the <html:link> tag will automatically handle URL rewriting
of the jsessionid for users who do not support cookies.

I think if you took some time and examined the inner workings of all of the
html tags you would find that even though you may have no use for some of
the features they implement, each of them adds something that may be of
value for someone.  The nice part about it is you don't have to use them if
you don't want to.

-Robert Scaduto

-----Original Message-----
From: cody.burleson@studiointeractive.com
[mailto:cody.burleson@studiointeractive.com]
Sent: Thursday, February 07, 2002 5:21 PM
To: Struts Users Mailing List
Subject: Re: HTML tags - WHY?



Maybe I should rephrase the question.  I understand what the tags are for
when related to form items and even hyperlinks (allowing forwards), but
what is the point of duplicating the others?

- Cody





Jim Crossley <jc...@ifleet.com>@jimmy.ifleet.com on 02/07/2002 04:14:45
PM

Please respond to Struts Users Mailing List
      <st...@jakarta.apache.org>

Sent by:  jim@jimmy.ifleet.com

To:   Struts Users Mailing List <st...@jakarta.apache.org>
cc:
Subject:  Re: HTML tags - WHY?


That is certainly the biggie.  Coupla others:

- Transparently inserts context path prefix.
- Automatically encodes html-specific characters

"Krueger, Jeff" <jk...@silverstream.com> writes:

> One thing is it will populate the tag with the value from your formBean.
>
> Jeff
>
>
> -----Original Message-----
> From: cody.burleson@studiointeractive.com
> [mailto:cody.burleson@studiointeractive.com]
> Sent: Thursday, February 07, 2002 3:00 PM
> To: Struts Users Mailing List
> Subject: HTML tags - WHY?
>
>
>
>
> Can someone help me understand why struts duplicates almost all standard
> HTML tags. In all of these cases, struts adds something special that is
not
> already inherent in the tag?
>
> - Cody
>
> ----------------------------------------------------------------
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material.  Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited.   If you
received
> this in error, please contact the sender and delete the material from any
> computer.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
mailto:struts-user-help@jakarta.apache.org>

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




----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>