This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes How to find out the image coordinates in JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to find out the image coordinates in JSP?" Watch "How to find out the image coordinates in JSP?" New topic
Author

How to find out the image coordinates in JSP?

Naveen vkumar
Greenhorn

Joined: Mar 22, 2013
Posts: 1


How to find out the image coordinates in JSP. I need to write the Java class the does the following:
1. Display the image in the view
2. Identify the coordinates and match them to those defined in the XML file.
3. Parse the XML so as to identify the coordinates of the parts in the image
4. Clicking on a part in the image should display the respective number in an alert box.

Please help me.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Naveen vkumar wrote:
2. Identify the coordinates and match them to those defined in the XML file.


What "coordinates"? That's all very vague.

If it is button click coordinates within the image that you are asking about, then you'll need a JavaScript event handler to detect the click, and likely Ajax to send the info back to the server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: How to find out the image coordinates in JSP?
 
Similar Threads
How to display popup in JSF
Image display in jsp
image upload
trying to find a way to display individual user recent activity
Not seeing properties in JSP