You can use run-time expressions within a Struts <html:xxx> tag, but it's all or nothing: meaning that the whole entry must be a run-time expression or none of it must be a run-time expression. If you code the following, it should work:
I am not a JSP expert. I have looked a few times but I have not seen a good book or article that talked about how custom tags and scriptlets interact and when they are evaluated. I tend to try out different things until they work. With that said, I searched through the code base for my project.
I see a few examples where bean:define is used along with standard html tags. All the examples that I found that use struts tags define the scripting variable in a scriptlet. You could try something like this and see if it works:
Joined: Feb 08, 2006
I see that Merrill submitted a reply while I was typing. Yea, I guess in all the examples that I found the entire attribute value is a run-time expression.
Joined: Feb 17, 2006
Hi Merill! I tried this and its working now.Thanks a lot. Cheers :-)