This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

jsp-applet-jsp communication

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an applet embedded in a jsp. i was successful in passing data from the jsp to applet. but when some mouse event occurs in the applet, i need to pass the data to a jsp page. how can this be done?
 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to be more explicit about what you mean by "pass the data to a jsp page".

You can't pass data to the current JSP, it executed on the server long before the HTML containing the applet was sent to the browser. Do you mean passing data to the JavaScript in the HTML page?
[ January 21, 2008: Message edited by: Bear Bibeault ]
 
soggy sen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need the co-ordinates of the point where the user clicked in the applet. i understand this cannot be passed to the present JSP as it has been loaded already. what will be the best way to get the coordinate?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to generate a new HTTP request from within your applet.

This topic seems like it would do better in our Applets forum than in the JSP forum. To a JSP, handling a request from an applet would be no different than handling a request from a browser. Moving...
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i need the co-ordinates of the point where the user clicked in the applet.


WHERE do you need these values? What do you want to do with them?

i understand this cannot be passed to the present JSP as it has been loaded already.


Note the difference between "present JSP page" and "present HTML page". Getting the values to the former is impossible, while getting the values to the latter may be feasible.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic