Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find out the image coordinates in JSP?

 
Naveen vkumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic