I have the following code in my jsp:
Edit:
There is a difference between ""
(double quotes) and ''
(single quotes) in OGNL.
Double quotes evaluate single characters to strings while single quotes evaluate single characters to Character types. You may put multiple characters in single quotes and it will be evaluated as a string.
Further request scope is not
Map
but
Map
as can be seen below in last 5 lines of the jsp.
JSP
<%@taglib prefix="s" uri="/struts-tags"%>
1:
2:
3:
Test.jsp (Action)
package struts2; import com.opensymphony.xwork2.ActionSupport;
public class test extends ActionSupport{
public String letters = "abcd";
public int number = 1;
}