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

  • SEARCH
  • Home
  • 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 8490379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:05:57+00:00 2026-06-10T22:05:57+00:00

Ok,i know in Php you can use include for a Php file…for example… include(array.php);

  • 0

Ok,i know in Php you can use include for a Php file…for example…

include("array.php");

Is there a way to do this in Javascript and Jsp?

From what i read i cant use for example include("array.javascript"); or include("array.jsp");

I want to load the array from a different file and i know how to do it with Php,but not with Javascript or Jsp. Any help?

  • 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-06-10T22:05:59+00:00Added an answer on June 10, 2026 at 10:05 pm

    I think you are a bit confused, JSP is an XML-based language executed at the server side that gets transformed into Java the first time is processed by the servlet container (server) whilst JavaScript is an interpreted language executed by the user’s browser, not the server. PHP is also executed at the server-side and that include function has nothing to do with JavaScript.

    Now, to port that behaviour to JSP you would use a JSP tag, more specifically, the <jsp:include /> tag:

    <jsp:include page="array.jsp" />
    

    But if what you are trying to is to link your JSP with a JavaScript file then you should use a better option which consist of using the standard HTML <script> tag:

    <script type="text/javascript" src="array.js" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I'm able to this in PHP, but I can't remember the name
The problem: I want to use PHP include to import file header_menu.html into all
I know PHP 5 already supports SQLite but for some reason I can't get
How can i know if PHP server is installed on my pc ? and
I know in C++ and in PHP you can fill a string or a
I want to know that whether on a php page we can get browser
I would like to know how to create a php function that can be
Possible Duplicate: how to upload folder with php I know we can upload single
As far as I know, Drupal Services Module can allow PHP scripts to communicate
i need to know how can i connect telephone using php languages

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.