• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

can i run applet on server?

 
Ranch Hand
Posts: 53
  • 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

 
Saloon Keeper
Posts: 5579
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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
  • 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.
 
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • 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
Saloon Keeper
Posts: 5579
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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
  • 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
Saloon Keeper
Posts: 5579
144
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 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
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!