I have a parent file where my JSP is statically included.
<%@include file="test.jsp" %>
In the included file I want to access the variable of parent JSP using Struts2 tag. Please let me know if it is possible or should I go for dynamic include.
I have a parent file where my JSP is statically included.
<%@include file="test.jsp" %>
In the included file I want to access the variable of parent JSP using Struts2 tag. Please let me know if it is possible or should I go for dynamic include.
You can't access the variable but you can access the variable from the the value stack using OGNL. See OGNL Basics to learn more about variables in Struts and how to use them.
To include JSP content dynamically use
s:include
tag