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

bullets tag

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Hi all
I am trying to create tag that will display images / bullets in the Jsp page,
the content its rendering is binary from clob in the db,
So the body will output:

My question is what class to inherit from struts?

Thank you
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
I tried extending TagSupport
but because the page is mixed mime (text & jpg)
i get exception :

Any help will be appreciated
[ June 22, 2008: Message edited by: Sharon whipple ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'd suggest you create a separate action class just for downloading the image that gets the data from the BLOB and outputs it to the HTTPServletResponse object's output stream and returns a null ActionForward. Then just use an <img> or <html:img> tag in your JSP to call the action and display the image where required. You can still create a single custom tag that incorporates a number of <img> tags if you want to.

Consultant, Sima Solutions
I agree. Here's the link:
subject: bullets tag
It's not a secret anymore!