• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieving pixel data

 
Rebecca Abraham
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the following code in my jsp file:

<tr>
<td>
<div align="center">
<a href="http://localhost:8080/display.do" target="_new">
<IMG width="468" height="60" border="0" src="http://i25.image.net/graph/test.gif?user=1521">
</a>
</div>
</td>
</tr>


The link takes me to a popup window where I need to retrieve the value of user. Could someone please tell me how I can get this value which is sent along with the img src? Its a bit urgent.
(I've followed the above way of passing data to avoid sending data using parameters in the link.)
Thanks.

Rebecca
[ August 12, 2004: Message edited by: Rebecca Abraham ]
 
prabhat kumar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as i understood the problem .. you need to first know the value of user then do some work and then deliver the image.
this can be done in this way ..

1. create a servlet with the name gif in package test .. so that it can be called like
2. set the contenttype for gif image type like this
response.setContentType("image/jpeg"); //change for fig images
3. extract parameter
String user = request.getParameter("user");
4. forward to actual image
response.sendRedirect("http://www.abc.com/grafik/pic.jpg");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!