Tuesday, 27 August 2013

Access the Spring Properties in jsp

Access the Spring Properties in jsp

We are using strusts2+spring3.2+struts.spring.plugin Also we are using the
property place holder to access the properties in actions
Something like:
@Value("${web.site.name}") private String siteName;
And we have siteName ready and populated.
Is it possible that we can access the value in the JSP pages too? Or we
should first get it from struts action and then pass it to JSP.

No comments:

Post a Comment