This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When i am using the above code i get the following exception [1/30/06 18:51:51:336 IST] 64d7befc WebGroup E SRVE0026E: [Servlet Error]-[/pages/details.jsp(32,66) Attribute lForm has no value]: org.apache.jasper.compiler.ParseException: /pages/details.jsp(32,66) Attribute lForm has no value.
But when i use the normal <a> tag it works. Even you suggested to use <a> instead of <html:link>. Any specific reason its not working with <html:link>?
Joined: Feb 15, 2005
The reason it doesn't work with <html:link> is that you can't embed a <bean:write> tag inside any <html:xxx> tag. Struts just doesn't support it. If you really wanted to use an <html:link> tag, you could use a scriptlet in the href attribute.
In my opinion, <html:link> doesn't really give you any advantages over <a> when you're doing this type of thing, so why use it?