Hi, I am new to struts2, When I use EL, I am getting session scope attributes..but when I do the same thing by using
struts OGNL, getting nothing. Please advise me what I am doing wrong.
Code is below:
===========
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
JSP Page</title>
</head>
<body>
Your mail Id: ${session.emailId}
Your maild Id: #session.emailId
</body>
</html>
I am getting the below output
----------------------------------
Your mail Id:
myuser@yahoo.com
Your maild Id: #session.emailId
Please advise me why OGNL is not recognized in my page? Thanks.