This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Applet from JSP! Urgent Please!

 
Krishna Nagesh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
Matt Gregory
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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.
 
saurabh pathak
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Glen Tanner
Ranch Hand
Posts: 147
Java Python Ruby
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic