Not sure if this is the best solution, but this is what I do:

I have the image map html link to the servlet...

In the servlet, I do this:

int userX = ( (req.getParameter("image.x") != null) ?
 Integer.parseInt(req.getParameter("image.x")) : (some_default) );

int userY = ( (req.getParameter("image.y") != null) ?
 Integer.parseInt(req.getParameter("image.y")) : (some_default) );

Hope this helps,
--Will

----- Original Message -----
From: Eric A. Kihn
To: [EMAIL PROTECTED]
Sent: Monday, August 23, 1999 11:10 AM
Subject: Image Map


Greetings,

    Does anybody know how to retrieve the X,Y value from a servlet called
with an image map. Or even better have an example?

Thanks,

Eric A. Kihn
NOAA/NGDC
[EMAIL PROTECTED]
Voice:(303) 497-6346
Fax: (303) 497-6513

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to