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 9167259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:20:47+00:00 2026-06-17T15:20:47+00:00

I am working on a project where I access the APIs and get the

  • 0

I am working on a project where I access the APIs and get the output using Java. Now I want to display the data using some graphs and other data visualization tools in a browser. I have searched for some JavaScript libraries for that. But how can I connect java and javascript to get the output in a browser.

Can I do it with JSP? I don’t want to use applets. Please suggest other ways also.

EDIT: If I use JSP then I will have to host a server. Is there a direct way without hosting a server?

  • 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-17T15:20:48+00:00Added an answer on June 17, 2026 at 3:20 pm

    Yes you can do that with JSP(java server page). By passing data from Java to javascript in your jsp page. JSP page typically compiled into raw html and send it to client.

    Simple example of passing value java to javascript in jsp page.

    <%
      String str="Hello world";
    %>
    <script>
     var jsvar = <%=str%>;
    </script>
    

    A example of java list values to js variable using jsp scriptlet.

    var  myArray = new Array();
    <% for (int i=0; i<list.size(); i++) { %>
          myArray[<%= i %>] = "<%= list.get(i) %>"; 
    <% } %>
    

    Better use jstl tag library which is easier to write and structured.

    JSP documentation
    JSP library
    JSTL documentation 1
    JSTL library

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

Sidebar

Related Questions

I am working on a project using JavaMail. I want to access my Gmail
Currently I'm working on project where I need to access Google Calenadar data using
I'm working on a project to replace ADO.NET data access logic using NHibernate where
I'm working on a project that uses Linq2SQL for data access. The project is
I am working on a project where I need to access some specific addresses
I am working on project where I have to access SharePoint data in C#.
We are working on a project that comprises of several windows services, data access
I'm working on a project using jsp and Microsoft Access. There are three tables
I'm currently working on a project which uses many ajax requests to access data
I'm currently working on a project that uses data access on different databases. Our

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.