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.