struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <>
Subject Re: Struts tags ID generation
Date Wed, 16 Jul 2008 05:15:05 GMT
Struts 2 will create an id for you when using it's built-in tags. I've
never seen it quite as long as yours... Perhaps you built from a maven
archetype and might have passed in some parameters wrong? 

When you leave it up to struts, it will generate unique ids and it will
work w/o intervention. It also works fine if you specify an id, so it's
mostly a matter of preference and whether or not you need to know the id
for some added javascript. 


On Wed, 2008-07-16 at 14:33 +1000, Phan Le wrote:
> Hi there,
> I am new to this mailing list and currently experiencing strange  
> behavior when rendering ids for HTML elements.
> I have something like this in my HTML code
> <div
>   class="fieldWrap" id="wwctrl_com.mycompany.profile:profile-app:war: 
> 0.0.1-SNAPSHOT">
> I didn't specify any id in my <s:textfield> tag
> Any one know how Struts 2 do this?
> Thanks
> This email, including attachments, is intended only for the addressee
> and may be confidential, privileged and subject to copyright.  If you
> have received this email in error, please advise the sender and delete
> it.  If you are not the intended recipient of this email, you must not
> communicate to others content that is confidential or subject to
> copyright, unless you have the consent of the content owner.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message