Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL int concat with String

843840May 26 2009 — edited May 26 2009
I'm trying to do something like the following inside my JSP:
${product.renewal ? "Yes" : "No: ("+ product.months + ")" }
where product.months is an int. I cannot concatenate an int with the String "No: ". How do I resolve this? Using jstl format?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2009
Added on May 26 2009
2 comments
2,146 views