I'm new to Spring MVC and have the following situation:
In WEB-INF/demoshop-servlet.xml I have the following line:
<bean id="someBean" class="com.xxx.xxx.web.SomeBean" />
I also have a JSP that contains a line like:
${someBean.someAttribute}
I expected that the attribute is read from the bean when the page is rendered but it's not. The expression is just ignored. (While other EL expressions with objects introduced in a ModelMap in the controller are evaluated correctly.)
In order to debug this a little I inserted the following to the JSP:
<% System.out.println(application.getAttribute("someBean")); %>
Which prints null
.
What is missing, or what am I doing wrong here?