Re: [Stripes-users] JSP expression language and stripes framework

2014-11-21 Thread William Krick
I hadn't thought about using JSTL. Then I could also do something like this (using "empty" in the test as suggested by Mike McNally)... http://actionbean.person.name/> ? 'valued customer' : actionBean.person.name }"/> On Fri, Nov 21, 2014 at 5:38 PM, Joaquin Vald

Re: [Stripes-users] JSP expression language and stripes framework

2014-11-21 Thread Mike McNally
Yes, you can do that. Personally I'd write Hello ${ empty actionBean.person.name ? "valued customer" : actionBean.person.name } Of course you want to prevent XSS attacks too: Hello ${ empty actionBean.person.name ? "valued customer" : fn:escapeXml(actionBean.person.name) } On Fri, Nov

Re: [Stripes-users] JSP expression language and stripes framework

2014-11-21 Thread Joaquin Valdez
I do this using JSTL but I am sure there is a better way: // do something... http://actionbean.person.name/>} > > > I'm trying to figure out how to display alternate text in the jsp if the > value from the actionBean is null, but I can't figure out any syntax that > works. I

[Stripes-users] JSP expression language and stripes framework

2014-11-21 Thread William Krick
In a JSP, I can do something like this to display a value from the action bean... Hello ${actionBean.person.name } I'm trying to figure out how to display alternate text in the jsp if the value from the actionBean is null, but I can't figure out any syntax that w