I am using Jersey to do the URL binding for my web application. Hence, I am using it as a very simple MVC. I can manage to have Jersey return my JSPs, however:
When I pass my model to the view, it is passed as “it” — and I can access it on my JSP using tags, ala: ${it}, however, I want to use it as a JSP variable, via <%= it %>
Is there a way to do that?
I totally fail to see why you would ever do that, but anyway, the scriptlet equivalent of the EL expression
would be
Update: as per the comments:
Just make it a
Map<String, Something>or a Javabean class, then you’ll be able to get them bywhere
main,footer, etc areMapkeys or Javabean properties. It’ll return the value.