This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
It's usually OK to use a scriptlet in an attribute of a Struts tag, but the policy is "all or nothing". By this, I mean that either the entire attribute must be represented by a scriptlet, or else no part of it can be a scriptlet. So, for example, the following would work:
If your Web application is a Servlet version 2.4 application, Struts does support EL expressions as part of an attribute, so the following would work:
In this case, though, "value" must be a scoped variable(page, request, session, etc.), and not just a Java variable.