• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp-applet-jsp communication

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic