• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

using a bean value in html:image tag as the src

Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have extracted a chunk of JSP code from several JSPs to a JSPF and include the JSPF in the JSPs that used to have that code in. At the same time I have refactored it and used as few scriplets as possible. However there is one scriplet I cannot get around. It adds a String of a bean onto the src of a <html:image> tag

like so:

<html:image src='<%=objectInSession.getAlias() %>/some/folder/frontpage.gif' onclick="doSomething();" />

How can I refactor this in my JSPF?

    Bookmark Topic Watch Topic
  • New Topic