Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp-applet-jsp communication

 
soggy sen
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic