Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2008, 06:42 AM   PM User | #1
bhargavkumar_b
New to the CF scene

 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
bhargavkumar_b is an unknown quantity at this point
Handling mouse events in JSP

Hi ,

I have to handle mouse events in JSP,means i have to handle the event of the user i.e, if he press the lest click we have to handle that event where he pressed it with JSP. Iam finding examples in Applets , nut i have to do it in JSP.Can any body help me please? it's very urgent.

Thanks in advance
BhargavKumar.B
Edit/Delete Message
bhargavkumar_b is offline   Reply With Quote
Old 01-21-2008, 07:27 AM   PM User | #2
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
Hi,
Mouse events are client events. So to handle these events, you have to execute code at the client first. So JavaScript is the way to go here. In the JavaScript, you can communicate with the server using xmlhttp (and then you are talking ajax) or post a form to a jsp page. If communication with a backend is not needed, you can handle everything in JavaScript. Just have your jsp page output all the things you need to the client.
Roelf is offline   Reply With Quote
Old 01-22-2008, 05:12 AM   PM User | #3
bhargavkumar_b
New to the CF scene

 
Join Date: Nov 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
bhargavkumar_b is an unknown quantity at this point
Hi,
Thanks for u r quick reply.Can u suggest me any sample code or links which are available this code.

Thanks in advance
BhargavKumar.B
bhargavkumar_b is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:55 PM.


Advertisement
Log in to turn off these ads.