A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jan 28, 2004
Oct 19, 2006 09:02:00
I want to pass a value to a tag attribute. The value is a
concatenation of 2 other string values in scoped attributes. Can this be done purely by scriptless solution (JSTL/Struts tag lib) without expression?
<% request.setAttribute("a","12"); request.setAttribute("b","34"); %> <my:tag property='<%=(String)request.getAttribute("a") + (String)request.getAttribute("b")%>'/>
Author and ninkuma
Joined: Jan 10, 2002
Oct 19, 2006 09:50:00
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: String Concat
Setting attributes from JSP to Servlet
Help reqd. in displaying results
what is target in c:target??
Attributes sent from JSP wont show in Servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015