Sorry for re-instigating an old thread here. But I thought other people might find this useful too. I can give a slightly more precise answer for this problem. I had same issue today following through David Whitehurst's primer. I had this for example: <s:a href="vehicle.html?=id=${row.id}"> .... The message I got in the browser was: PWC6236: According to TLD or attribute directive in tag file, attribute href does not accept any expressions
This relates to the fact you are trying to use JSTL expression language in a Struts 2 tag Consequently all you need to do is convert the $ symbol to % and you're set to go: So, when I changed it to this, everything worked properly: <s:a href="vehicle.html?=id=%{row.id}"> ... You could have use the <s:param> tag too. But once again a JSTL expressions wouldn't be allowed. <s:a href="vehicle.html"> <s:param name="id" value="%{row.id}"> ... ----- http://gr8fanboy.wordpress.com/ gr8fanboy http://twitter.com/JGFMK http://uk.linkedin.com/in/jeremygflowers LinkedIn http://www.meetup.com/members/8154214/ Meetup -- View this message in context: http://appfuse.547863.n4.nabble.com/HREF-error-at-runtime-tp573221p2329694.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net