• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

set a jsp:include param value to a custom tag result

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks, I'm trying to send some data to an include file via it's param property from the results of a custom tag, like this:

<jsp:include page="sortIcon.jsp" flush="true">
<jsp aram name="showsort" value="<tdm:getSortIconVisibility name="tdmresponse" property="title" />" />
</jsp:include>

This line gives an error in my IDE stating that it's expecting an "=" sign. So, I'm resorting to creating a scriptlet at the top and mimicing the tag's functionality in there. I would really like to avoid placing code in the jsp file, does anybody have any suggestions what to do here? I also, just for kicks, escaped all the quotes in the line. The IDE liked it but the JSP engine read the line as a string literal.
 
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic