• 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

can i run applet on server?

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7585
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic