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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:05:40+00:00 2026-06-17T00:05:40+00:00

My project requirement is to develop a website which interacts with a mysql database

  • 0

My project requirement is to develop a website which interacts with a mysql database and a java application which continuously runs on the server. user is on some remote computer he sends a request to the java application by executing a jsp code on the server, the jsp code waits for the application to send the information back. once the jsp recives the info. it sends a request to database. The is a special type of database built just because of limitations of a database and my project requirements. Please tell me how the request are sent i.e. what part of java will help me do this.

some link that have the same info but not exact Communication between two separate Java desktop applications.

EDIT: my question is…. what should i use in a jsp page such that i will be able to get info. from the application which stores data in a special form of datastructure. For now I dont want to talk to database. I just want to interact with a running application.

for example there is a program on the server which returns sum of two numbers which waits for someone to give it input. now my jsp sends two numbers to the application which adds the two numbers and gives back the sum to the jsp page. now jsp page code can do anything which is not my concern for now.

  • 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-17T00:05:41+00:00Added an answer on June 17, 2026 at 12:05 am

    Database access through the Website is one of the essential components for any web-based development. JDBC, a mechanism that allows Java to talk to databases.

    Java Database Connectivity (JDBC) is a standard Application Programming Interface (API) that is used to access databases, irrespective of the application driver and database product. In other words, JDBC presents a uniform interface to databases, however, if you change the database management system and your applications, you only need to change their driver. JDBC provides cross-DBMS connectivity to a wide range of SQL databases, and other tabular data sources, such as spreadsheets or flat files.

    Here is the sample example:

    import java.sql.*;
    class DBQuery1{
        public static void main(String args[]) throws SQLException
      {
                try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   }catch(ClassNotFoundException e){};
            Connection cnn;
            Statement mystmt;
            ResultSet myrs;
                String op = "jdbc:odbc:JavaTest";
            cnn = DriverManager.getConnection(op,
                     "Admin", "");
            mystmt = cnn.createStatement();
                String sql;
                sql = "SELECT * FROM SupplierMaster " +
                  "WHERE SupplierCode IN ( " +
                        "SELECT SCode " +
                        "FROM Relation " +
                        "WHERE PCode IN ( " +
                              "SELECT ProductCode " +
                              "FROM ProductMaster " +
                              "WHERE ProdCatg IN ( " +
                                    "SELECT CatgID " +
                                    "FROM CategoryMaster " +
                                                "WHERE CategoryName = 'Eatables')))";
            myrs = mystmt.executeQuery(sql);
                System.out.println("   "+"Sup Code" + "       " +"Sup Name" + "    " + "Sup Address    ");
                System.out.println("--------------------------------------------------------------------");
            String name, add;
                int code;
                while (myrs.next())
            {
                 code = myrs.getInt("SupplierCode");
                 name = myrs.getString("SupplierName");
                 add = myrs.getString("SupplierAddress");
                 System.out.println("       " + code +"       " + name+"        " + add);
            }
      }
    

    }

    More information you can find on this link:

    http://webserver.ignou.ac.in/virtualcampus/adit/course/cst302/block2/cst302-bl2-u3.htm

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

Sidebar

Related Questions

I need to develop a application for a user's management in a IT Project.
We are developing customized installer using visual studio 2008 installer project. The requirement which
I have an idea for a hobby project which performs some code analysis and
We have a current Java EE project and a new requirement to introduce a
I am developing an iOS application for a school project. My application requires some
I have a project requirement which requires android to be always powered on with
I am about to develop a peer to peer file sharing application in Java
I have to develop an application which fulfills following demands: It has to be
One of my project requirement is to save data keyed in by the user.
In our project we have requirement that, after receiving sms message from third party

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.