• 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

Ajax in Tomcat

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am a starter in Ajax and i am implementing it using Tomcat 6.0

I have 3 files

1.try.html - html file
2.Ajax.js - javascript file
3.try.java - servlet code

Can someone please tell me where do i store these files in tomcat 6.0 files so that i can get them running.

Thankyou in advance
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not as easy as just putting the files in the right place. You will have to create a Java web application, package it as a WAR file and deploy the WAR file in Tomcat.

Have a look at this: The J2EE 1.4 Tutorial - Getting Started with Web Applications
 
Rohan Kalbhor
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Jesper,
Thank you for the Reply,
i researched a lot on this problem....here it goes

ROOT directory:
1.Javascript file
2.HTML file
3.Style sheet(In ROOt/css folder)create css folder if absent
4.servlet in ROOT/WEB-INF/classes folder

had a hard time playing with it...
hope some one finds it useful

--
Rohan Kalbhor
--
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For experimenting with JSP, this is fine but, before moving any further, you should consider Jesper's advice and learn how to create your own web applications.

By putting your code into the ROOT directory, you've mixed your code with an existing (but unrelated) web application.
 
Normally trees don't drive trucks. Does this tiny ad have a license?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic