File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 60991
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find out the image coordinates in JSP?