aspose file tools*
The moose likes Struts and the fly likes using a bean value in html:image tag as the src Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "using a bean value in html:image tag as the src" Watch "using a bean value in html:image tag as the src" New topic
Author

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

Mark Wa
Ranch Hand

Joined: May 29, 2009
Posts: 122
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?


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using a bean value in html:image tag as the src