I'm looking for a way to evaluate a string as el when it is output in a JSP page. (i guess when it's toString() method is called under the hood???)
For example, in my page, if I do this:
<title>${bean.title}</title>
title will be a property of bean, which will return a string. I'd like to store other EL expressions in bean.title so they are evaluated.
So, if bean.title = "This is the ${param.pageType} page
", obviously that would evaluate before it was written to the page.
Is there any way to do this?