File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i run applet on server?

 
anchit pancholi
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a applet.class file and index.html file.

i want to run applet on server is it possible??

i have one jar file which have applet.class file and i mention this class in index.html.

my index.html file is have:-



and my web.xml file is



i am getting error. myapp not found.
i think i need to modify web.xml file and where i need to put it ???
please help me where i m going wrong.

thanks in advance

 
Tim Moores
Bartender
Posts: 2500
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple: an applet is not a servlet. There's nothing you can do about that in the web.xml. If you want to run servlets, then you need to write your code as such, and put it in the appropriate place (WEB-INF/classes or WEB-INF/lib).
 
anchit pancholi
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Simple: an applet is not a servlet. There's nothing you can do about that in the web.xml. If you want to run servlets, then you need to write your code as such, and put it in the appropriate place (WEB-INF/classes or WEB-INF/lib).


so you mean to say is -- i need to write servlet and by that servlet i can access applet(so that mean i need not to make any modification in my web.xml file)
thanks for quick reply.
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An applet is meant for the client side, not for the server side. What's inside it that you need on the server side?
 
Tim Moores
Bartender
Posts: 2500
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so you mean to say is -- i need to write servlet and by that servlet i can access applet(so that mean i need not to make any modification in my web.xml file)

No. Applets don't run on the server, period.
 
anchit pancholi
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:An applet is meant for the client side, not for the server side. What's inside it that you need on the server side?


ya i know it is client side but there is any way by that i can run server or mention in web.xml i know it will not work but i want to know other way to achieve that.
and applet have nothing to run one client side nut i have some database query that show in browser.

thanks
 
Tim Moores
Bartender
Posts: 2500
10
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever you need done on the server will not involve an applet. What you need is a servlet.
 
anchit pancholi
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:Whatever you need done on the server will not involve an applet. What you need is a servlet.


ok i got it ... so that mean it can only achieve by servlet only. thanks tim thanks a lot
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic