This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 63208
    
  69

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to find out the image coordinates in JSP?
 
It's not a secret anymore!