File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes String Concat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "String Concat" Watch "String Concat" New topic

String Concat

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
I want to pass a value to a tag attribute. The value is a string concatenation of 2 other string values in scoped attributes. Can this be done purely by scriptless solution (JSTL/Struts tag lib) without expression?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

<my:tag property='${a}${b}'/>

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: String Concat
It's not a secret anymore!