• 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

Calling Applet from JSP! Urgent Please!

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I would like to know ,how can I embed an applet class in to JSP page. I know of calling class file using "use bean id".
Please reply ASAP.
Thanks & Regards
Krishna
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't really think you can do that. You can send an HttpResponse to the applet, but I don't think you can call functions/classes on the applet from the server.
You might instead want to try invoking server commands from the applet and then getting back a response which effectively dictates the actions of the applet. In this way the server isn't invoking an action on the applet but it is telling the applet what to do next.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi nagesh
You use <jsp lugin> to use applets in jsp take this following code:
<jsp lugin type="applet" code="" codebase="" />
also other attributes are there like archive,jreversion and else but these all are optional and to passs parameters use
<jsp aram value="" /> to passsvalues in applet..
so bye
saurabh
 
Krishna Nagesh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai Pathak,
When I call using plugin type,it says no error and it is not picking the applet. I kept class files under "\root\Classes" as I keep regular class files. Is it the same for applet?. Please let me know. It is kind of very urgent!
Any help on this appreciated.
Thanks & Regards
Krishna
 
Ranch Hand
Posts: 147
Android Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you specifying that root\Classes directory in the "codebase" tag?
Take a look at the <jsp Plugin> syntax here.
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic