tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Sushkin <nsush...@openfinance.com>
Subject Re: Displaying Photos stored in Oracle in HTML generated by servlet
Date Fri, 19 May 2006 01:10:11 GMT
On Thursday 18 May 2006 20:52, you wrote: 

> I did find that when I used:
>
> "<img src="/webapp/path/to/servlet.jpg?recId=" + member.getID() + "/>"
>
> The id that was returned had a / after the id which really caused issues.
> (ended up looking like 345556/)
> I changed the "/>" to " />" (a space prior to the /) and the code works
> fine.

You probably want to have something like 

"<img src=\"/webapp/path/to/servlet.jpg?recId=" + member.getID() + "\"/>"

So that it generates

<img src="/webapp/path/to/servlet.jpg?recId=345556"/>

instead of your code, which generates

<img src=/webapp/path/to/servlet.jpg?recId=345556/>

-- 
Nicholas Sushkin, Senior Software Engineer
Open Finance

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message