java - Which variables can be accessed with the ${...} syntax in a Struts tag in a JSP page? -
i'm getting little bit frustrated since can't find out variables can access ${...} syntax in struts tag, placed in jsp page.
as example i've got following code:
<c:set target="${status.menue}" property="activemenuepath" value="whatever" /> where object "status.menue" have defined in order can accessed dollar sign , braces. defined in struts tile or in form?
it should placed in of page, request, session or application scopes using respectively jspcontext#setattribute(), servletrequest#setattribute(), httpsession#setattribute() or servletcontext#setattribute(). either directly or indirectly inside servlet. mvc frameworks indirectly, configureable giving model object "request", "session" or "application" scope.
the expression language (el) access them using jspcontext#findattribute().
this way unrelated struts. it's legacy mvc framework built on top of jsp/servlet api. <c:set> not struts tag well, it's jstl tag.
Comments
Post a Comment