views:

12

answers:

0

Hi here is a tiny part of my struts2 code. I am using struts2 tag "a" to carry out my functionality.

 <s:a href="%{Num}" name="delete">

However, when this converted to plain HTML code, it becomes

<a id="delete" href="/WorldExpo/deleteproduct.action?productcode=FLAG_AT">

I am wondering why the HTML tag "a" has got id="delete" rather than name="delete"

Thank you in advance