What's the path that the handler uses for the images? It seems likely that there are some servlet-context relative path issues that would crop up in a case like this, but I've never even heard of InterMedia before. Does that "sendImage" method return an HTML <img> tag?
Can you interact with the OrdHttpJspResponseHandler with more fine-grain detail? If you could get at the image path then you could have more control. Joe At 5:31 PM -0400 2002/07/09, Eva Garabedian wrote: >Hi All, > > I am attempting to use Oracle 9i's interMedia classes to manage images >and thumbnails, and when attempting to display them in JSPs, I notice >that if I run this outside of Struts, all is well, but within Struts, >the image is no longer displayed. > >Can anything be done to work around this possible context contention >issue? > >Here is some of the JSP code: ><%@ page language="java" %> ><%@ page import="PhotoAlbumBean" %> ><%@ page import="oracle.ord.im.OrdHttpJspResponseHandler" %> > ><jsp:useBean id="album" scope="page" class="PhotoAlbumBean"/> ><jsp:useBean id="handler" scope="page" >class="oracle.ord.im.OrdHttpJspResponseHandler"/> ><% > String id = request.getParameter( "id" ); > String media = request.getParameter( "media" ); > if ( id != null || media != null ) { > // Use a try block to ensure the JDBC connection is released > try { > // Select data and fetch the row > album.selectRowById( id ); > if ( !album.fetch() ) { > response.setStatus( response.SC_NOT_FOUND ); > return; > } > > // Deliver the full-size or thumb-nail image > handler.setPageContext( pageContext ); > if ( media.equals( "image" ) ) { > handler.sendImage( album.getImage() ); > return; > } > if ( media.equals( "thumb" ) ) { > handler.sendImage( album.getThumb() ); > return; > } > } > finally { > album.release(); > } > } >%> -- -- * Joe Germuska { [EMAIL PROTECTED] } "It's pitiful, sometimes, if they've got it bad. Their eyes get glazed, they go white, their hands tremble.... As I watch them I often feel that a dope peddler is a gentleman compared with the man who sells records." --Sam Goody, 1956 tune in posse radio: <http://www.live365.com/stations/289268> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>