Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3784262
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:21:02+00:00 2026-05-19T11:21:02+00:00

There is a project deployed in Tomcat. The web-app of course in is webapps

  • 0

There is a project deployed in Tomcat.
The web-app of course in is webapps of tomcat and the structure is as follows:

tomcat-home
|--webapps
       |
        -MyProject
                 |
                  -WEB-INF
                  -startingPoint.js
                  -client
                  -other dirs etc

Now startingPoint.js is a javascript file that essentially loads an applet in the browser and is similar to this:

document.write('<OBJECT ');
document.write('  codebase = "jre.exe" WIDTH = "100%" HEIGHT = "100%" MAYSCRIPT > ');
document.write('  <PARAM NAME = CODE VALUE = "com/AnApplet.class" > ');
document.write('  <PARAM NAME = CODEBASE VALUE = "/MyProject/client/classes" >');
document.write('  <PARAM NAME = ARCHIVE VALUE = "/MyProject/client/lib/Appletclient.jar"> ');
document.write('  <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.6"> ');
document.write('  <PARAM NAME = "MAYSCRIPT" VALUE="true"> ');
etc.

If I write in the IE url bar the url:
http://ip:port/MyProject (tomcat is running of course) the applet is loaded in my browser but I can not understand how.
I mean from web.xml I can not see something that would serve the javascript file.
If a js file is in the roor directory of my project, does it get automatically served?
I feel I am missing something here.
Could someone please advice, what is it here I should be looking for?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:21:03+00:00Added an answer on May 19, 2026 at 11:21 am

    Either this .js is included in your welcome-page specified in web.xml or in index page ,

    That page will get loaded and with that if js is included it will load.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am used to using Tomcat/Log4J for my logging. My current project is deployed
There is an existing project that is already deployed in production. We want to
I developed a dynamic web project in Eclipse. I can access the app through
I have a Java web application I’m developing for a school project. There’s a
In my project there are large no. of FIXME / TODO which are to
In my project there are some 'Prototype' factories that create instances by cloning a
Is there a project that can log errors in requests to Django on Google
I am using Spring with Hibernate in my project.There are many methods written in
I am using My-eclipse and doing a struts project there is no syntax error
I am using MySQL database and JSP for a project. In my project there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.