• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Retrieving pixel data

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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");
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic