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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:35:43+00:00 2026-05-31T17:35:43+00:00

I am using oracle db and weblogic as web server. From my android app

  • 0

I am using oracle db and weblogic as web server.
From my android app i am able to send parameters to my remote server..
My PROBLEM is HOW TO GET THE RESULT SET GENERATED BY MY QUERY FROM MY SERVER TO MY ANDROID APP???

I would be very grateful if someone sites me some examples of doing it…

String result = "";
//the year data to send
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("year","1980"));

//http post
try{
    HttpClient httpclient = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("http://example.com/getAllPeopleBornAfter.php");
    httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
    HttpResponse response = httpclient.execute(httppost);
 }

The code given below is my jsp page…

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"  
pageEncoding="ISO-8859-1"%> 
<%@page import="java.util.*,java.sql.*"%>

<%!
 Connection con;
 PreparedStatement ps;
 String uname,pass;
 ResultSet rs;
%>

<%
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
 con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","pro","pro");

ps=con.prepareStatement("select * from login_stud");

rs=ps.executeQuery();


}
catch(Exception e)
{
e.printStackTrace();
}
%>

I want my android app to retrieve the result set ‘rs’….and display it on the mobile screen…how to do that.???. if you want details abut my app u can ask me @dldnh

  • 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-31T17:35:44+00:00Added an answer on May 31, 2026 at 5:35 pm

    The best thing you can do is to implement JSON with a RESTFUL Web Service.

    More info:

    1. JSON.ORG

    2. How to create a JSON response

    3. Android includes JSON classes such as JSONArray, JSONObject that can be used to interpret the response the Web Service will return. See more at here.

    You can’t go wrong. JSON is fast, there are ways to secure the communication if you implement RESTFUL Authentication.

    Best of all your Web Service will be compatible with iOS Apps and any other platform with JSON support.

    Good luck!

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

Sidebar

Related Questions

I'm using Oracle 9.2 with Weblogic 8 server. I'm getting the Data from a
I'm using Oracle Advanced Queues via JMS from within Websphere App Server. Does anyone
I have a problem with my WebLogic Oracle server, now I'm using Java EE
when using oracle forms to generate md5 hash, i get result that is different
I'm programming a web application using weblogic and oracle. the datasource is configured through
We are using Oracle Weblogic 10.3 as our application server. We have multiple modules
Using Oracle, how can I find index names and creation dates from systables/information_schema? How
I am using weblogic JDBC datasource and my DB is Oracle 10g, below is
I use weblogic 10. Its provide an Oracle JDBC driver 10.2.0.2 (in the server/lib
We are using Oracle ADF Faces in a new web project. I am always

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.