Unable to get data from class
I get this code from the internet which read from comm port of the computer & modify is as below:-
package COM;
/**
*
* @author kwngeaw
*/
import javax.comm.*;
import java.io.*;
import java.util.*;
public class ComControl implements Runnable, SerialPortEventListener {
static CommPortIdentifier portId1;
//static CommPortIdentifier portId2;
InputStream inputStream;
OutputStream outputStream;
SerialPort serialPort1;//, serialPort2;
Thread readThread;
protected String divertCode = "10";
static String TimeStamp;
static String kwngeaw = "";
Integer y = 0;
public void main() {
//Integer x = new Integer(0);
try {
portId1 = CommPortIdentifier.getPortIdentifier("COM8");
//portId2 = CommPortIdentifier.getPortIdentifier("COM8");
ComControl reader = new ComControl();
//sleep few sec
// Thread.sleep(5000);
// x = Integer.parseInt(kwngeaw.split(" ")[kwngeaw.split(" ").length - 1]);
//close running thread
//Thread.interrupted();
}
catch
(Exception e) {
TimeStamp = new java.util.Date().toString();
System.out.println(TimeStamp + ": COM8 " + portId1);
//System.out.println(TimeStamp + ": COM8 " + portId2);
System.out.println(TimeStamp + ": msg1 - " + e);
}
};
public ComControl() {
//========
try {
TimeStamp = new java.util.Date().toString();
serialPort1 = (SerialPort) portId1.open("ComControl", 2000);
System.out.println(TimeStamp + ": " + portId1.getName() + " opened for scanner input");
//serialPort2 = (SerialPort) portId2.open("ComControl", 2000);
//System.out.println(TimeStamp + ": " + portId2.getName() + " opened for diverter output");
} catch (PortInUseException e) {}
//========
try {
inputStream = serialPort1.getInputStream();
} catch (IOException e) {}
//========
try {
serialPort1.addEventListener(this);
} catch (TooManyListenersException e) {}
//========
serialPort1.notifyOnDataAvailable(true);
//========
try {
serialPort1.setSerialPortParams(2400,
SerialPort.DATABITS_7,
SerialPort.STOPBITS_1,
SerialPort.PARITY_EVEN);
serialPort1.setDTR(false);
serialPort1.setRTS(false);
//.setSerialPortParams(2400,
//SerialPort.DATABITS_7,
//SerialPort.STOPBITS_1,
//SerialPort.PARITY_EVEN);
} catch (UnsupportedCommOperationException e) {}
//========
readThread = new Thread(this);
readThread.start();
//========
}
public void run() {
try {
Thread.sleep(100);
} catch (InterruptedException e) {}
}
public void serialEvent(SerialPortEvent event) {
Integer x = new Integer(0);
switch(event.getEventType()) {
case SerialPortEvent.BI:
case SerialPortEvent.OE:
case SerialPortEvent.FE:
case SerialPortEvent.PE:
case SerialPortEvent.CD:
case SerialPortEvent.CTS:
case SerialPortEvent.DSR:
case SerialPortEvent.RI:
case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
break;
case SerialPortEvent.DATA_AVAILABLE:
StringBuffer readBuffer = new StringBuffer();
int c;
try {
while ((c=inputStream.read()) != 10){
if(c!=13) readBuffer.append((char) c);
}
String scannedInput = readBuffer.toString();
TimeStamp = new java.util.Date().toString();
//System.out.println(TimeStamp + ": scanned input received:" + scannedInput);
kwngeaw = scannedInput;
x = Integer.parseInt(kwngeaw.split(" ")[kwngeaw.split(" ").length - 1]);
inputStream.close();
if(scannedInput.substring(0,1).equals("F")){
outputStream = serialPort1.getOutputStream();
outputStream.write(divertCode.getBytes());
//System.out.println(TimeStamp + ": diverter fired");
outputStream.close();
} else {
// System.out.println(TimeStamp + ": diverter not diverted");
}
} catch (IOException e) {}
break;
}
y=x;
System.out.println(y);
}
public Integer getWeight()
{
return y;
}
}
=========================================================================
In my other class, I have my desktop application which called the getWeight() function from this ComControl class when i click the Jbutton2:
package desktopapplication1;
import COM.ComControl;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import java.sql.*;
import java.io.*;
/**
* The application's main frame.
*/
public class DesktopApplication1View extends FrameView {
public DesktopApplication1View(SingleFrameApplication app) {
super(app);
initComponents();
// status bar initialization - message timeout, idle icon and busy animation, etc
ResourceMap resourceMap = getResourceMap();
int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
messageTimer = new Timer(messageTimeout, new ActionListener() {
public void actionPerformed(ActionEvent e) {
statusMessageLabel.setText("");
}
});
messageTimer.setRepeats(false);
int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
for (int i = 0; i < busyIcons.length; i++) {
busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
}
busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
public void actionPerformed(ActionEvent e) {
busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
}
});
idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
statusAnimationLabel.setIcon(idleIcon);
progressBar.setVisible(false);
// connecting action tasks to status bar via TaskMonitor
TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
String propertyName = evt.getPropertyName();
if ("started".equals(propertyName)) {
if (!busyIconTimer.isRunning()) {
statusAnimationLabel.setIcon(busyIcons[0]);
busyIconIndex = 0;
busyIconTimer.start();
}
progressBar.setVisible(true);
progressBar.setIndeterminate(true);
} else if ("done".equals(propertyName)) {
busyIconTimer.stop();
statusAnimationLabel.setIcon(idleIcon);
progressBar.setVisible(false);
progressBar.setValue(0);
} else if ("message".equals(propertyName)) {
String text = (String)(evt.getNewValue());
statusMessageLabel.setText((text == null) ? "" : text);
messageTimer.restart();
} else if ("progress".equals(propertyName)) {
int value = (Integer)(evt.getNewValue());
progressBar.setVisible(true);
progressBar.setIndeterminate(false);
progressBar.setValue(value);
}
}
});
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
mainPanel = new javax.swing.JPanel();
btnCapture = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
jComboBox1 = new javax.swing.JComboBox();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
menuBar = new javax.swing.JMenuBar();
javax.swing.JMenu fileMenu = new javax.swing.JMenu();
javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
javax.swing.JMenu helpMenu = new javax.swing.JMenu();
javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
statusPanel = new javax.swing.JPanel();
javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
statusMessageLabel = new javax.swing.JLabel();
statusAnimationLabel = new javax.swing.JLabel();
progressBar = new javax.swing.JProgressBar();
mainPanel.setName("mainPanel"); // NOI18N
javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(desktopapplication1.DesktopApplication1.class).getContext().getActionMap(DesktopApplication1View.class, this);
btnCapture.setAction(actionMap.get("showAboutBox")); // NOI18N
org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication1.DesktopApplication1.class).getContext().getResourceMap(DesktopApplication1View.class);
btnCapture.setText(resourceMap.getString("btnCapture.text")); // NOI18N
btnCapture.setName("btnCapture"); // NOI18N
jTextField1.setColumns(20);
jTextField1.setName("jTextField1"); // NOI18N
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboBox1.setName("jComboBox1"); // NOI18N
jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
jLabel1.setName("jLabel1"); // NOI18N
jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
jLabel2.setName("jLabel2"); // NOI18N
jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
jButton2.setName("jButton2"); // NOI18N
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setLabel(resourceMap.getString("jButton3.label")); // NOI18N
jButton3.setName("jButton3"); // NOI18N
jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
jLabel3.setName("jLabel3"); // NOI18N
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
mainPanel.setLayout(mainPanelLayout);
mainPanelLayout.setHorizontalGroup(
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(27, 27, 27))
.addGroup(mainPanelLayout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(18, 18, 18)))
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(mainPanelLayout.createSequentialGroup()
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btnCapture, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())))
);
mainPanelLayout.setVerticalGroup(
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addGap(22, 22, 22)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addGap(18, 18, 18)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField1)
.addComponent(jLabel2))
.addGap(13, 13, 13))
.addGroup(mainPanelLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(13, 13, 13)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(81, 81, 81)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnCapture)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
menuBar.setName("menuBar"); // NOI18N
fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
fileMenu.setName("fileMenu"); // NOI18N
exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
exitMenuItem.setName("exitMenuItem"); // NOI18N
fileMenu.add(exitMenuItem);
menuBar.add(fileMenu);
helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
helpMenu.setName("helpMenu"); // NOI18N
aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
aboutMenuItem.setName("aboutMenuItem"); // NOI18N
helpMenu.add(aboutMenuItem);
menuBar.add(helpMenu);
statusPanel.setName("statusPanel"); // NOI18N
statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N
statusMessageLabel.setName("statusMessageLabel"); // NOI18N
statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N
progressBar.setName("progressBar"); // NOI18N
javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
statusPanel.setLayout(statusPanelLayout);
statusPanelLayout.setHorizontalGroup(
statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 439, Short.MAX_VALUE)
.addGroup(statusPanelLayout.createSequentialGroup()
.addContainerGap()
.addComponent(statusMessageLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 269, Short.MAX_VALUE)
.addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(statusAnimationLabel)
.addContainerGap())
);
statusPanelLayout.setVerticalGroup(
statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(statusPanelLayout.createSequentialGroup()
.addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(statusMessageLabel)
.addComponent(statusAnimationLabel)
.addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(3, 3, 3))
);
setComponent(mainPanel);
setMenuBar(menuBar);
setStatusBar(statusPanel);
}// </editor-fold>
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try
{
Integer kwngeaw=0;
ComControl reader = new ComControl();
reader.main();
kwngeaw = d.getWeight();
System.out.println(kwngeaw);
}
catch(Exception e)
{
System.out.println(e);
}
finally
{
}
}
// Variables declaration - do not modify
private javax.swing.JButton btnCapture;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JComboBox jComboBox1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField jTextField1;
private javax.swing.JPanel mainPanel;
private javax.swing.JMenuBar menuBar;
private javax.swing.JProgressBar progressBar;
private javax.swing.JLabel statusAnimationLabel;
private javax.swing.JLabel statusMessageLabel;
private javax.swing.JPanel statusPanel;
// End of variables declaration
private final Timer messageTimer;
private final Timer busyIconTimer;
private final Icon idleIcon;
private final Icon[] busyIcons = new Icon[15];
private int busyIconIndex = 0;
private JDialog aboutBox;
}
======================================================================
This system always printout null pointer exception. Is there anything wrong with the program? It don't have any compilation error using netbean 6.9
View Answers
Related Tutorials/Questions & Answers:
Unable to get data from class - Development processUnable to
get data from class I
get this code
from the internet which read
from comm port of the computer & modify is as below:-
package COM... the getWeight() function
from this ComControl
class when i click the Jbutton2
unable to get datas from oracle databaseunable to
get datas
from oracle database Dear Sir,
I am again struck in my project..
i want to display
data from oracle database but i
get...
org.apache.jasper.JasperException:
Unable to compile
class for JSP:
An error occurred
Advertisements
Unable to compile class for JSP - WebSevicesUnable to compile
class for JSP org.apache.jasper.JasperException:
Unable to compile
class for JSP
When I am trying to access a java file kept under src folder under a package
from a jsp page placed under web directory, I am
Problem to get connection from DAO class to JDBCProblem to
get connection
from DAO
class to JDBC package controller;
import java.sql.Connection;
import java.sql.DriverManager;
public
class ConnectionProvider {
private static Connection con=null;
//static Connection
get the value from another class - Java Beginnersget the value
from another class Hello to all, I have stupid question.
I have main.java and ConfigXML.java(read my config xml file).
Code
from...().trim();
[/code]
How I can
get String alsl = ((Node)flnameTEXT.item(0
unable to insert data into database unable to insert
data into database hello.i have a problem in inserting
data into database.i have used two prepared statement.one for retrieving the eid based on ename and the other is inserting
data into database based
unable to insert data into database unable to insert
data into database hello.i have a problem in inserting
data into database.i have used two prepared statement.one for retrieving the eid based on ename and the other is inserting
data into database based
unable to insert data into database unable to insert
data into database hello.i have a problem in inserting
data into database.i have used two prepared statement.one for retrieving the eid based on ename and the other is inserting
data into database based
unable to insert data into database unable to insert
data into database hello.i have a problem in inserting
data into database.i have used two prepared statement.one for retrieving the eid based on ename and the other is inserting
data into database based
Get JTextField value from another class
Get JTextField value
from another
class
... value
from other
class. For this, we have created two classes ClassA.java and ClassB.java. In
ClassA, we have defined a textbox 'text1' that will
get the value
from sql query to get data from two tablessql query to
get data from two tables how can i
get the
data from two different tables?
Hi Friend,
Please visit the following link:ADS_TO_REPLACE_1
JOIN Query
Simple Query
ThanksADS_TO_REPLACE_2
How to get data from Excel sheet - StrutsHow to
get data from Excel sheet Hi,
I have an excel sheet with some
data(including characters and numbers). Now i want read the
data from excel sheet and display in console first then later insert this
data into database
how to get data from sap - WebSeviceshow to
get data from sap Hi all,
I am new to java family.
I... third party system.
how to fetch the
data from sap and other third party system at atime?
can we schdule the new system that collects the
data from other
how to get data from checkboxes - JSP-Servlethow to
get data from checkboxes hi,
i got list of tables on screen... need to
get only those tables to the next page where i can
get list of columns to that selected tables.
please help me. hi,
we can
get the selected
how to get data from database into dropdownlist in jsphow to
get data from database into dropdownlist in jsp Can anybody tell me what is the problem in this code as i am not able to fetch the
data from... tutorial go through the link JSP
Get Data Into Dropdown list
From Database
get data between date from msaccess databaseget data between date
from msaccess database here is my code,
i want to
get data between date using jsp with msaccess.i stored date... also.suppose
i want to
get data fromdate ("01-09-2012") to ("04-09-2012), i got output
Get date data type from tableGET DATE
DATA TYPE
FROM TABLE
In this example , we will
get "Date"
data type
from a table of "Mysql"
database and it also display...*;
import java.io.*;
import java.util.Date;
public
class fetchdate {
public
JSP Get Data From DatabaseJSP
Get Data From Database
In this section we will discuss about how to
get data from database using
JSP.
To
get data from database to a JSP page we... the country name and put it into a result set. Then
get all the
data
from the result
Unable the get SubFolder Direcotry in Java?:- Unable the
get SubFolder Direcotry in Java?:-
Unable the
get SubFolder Direcotry in Java?:-
try {
String st1 = "C:\TestFolder; // Main Folder URL
File folder = new File(st1);
File[] listOfFiles = folder.listFiles();
for (File
unable to compile class file - JSP-Servletunable to compile
class file I wrote database connection in jsp file...*;
import java.util.ArrayList;
public
class ComboboxList extends HttpServlet... *
from Combolist");
List ulist = new ArrayList();
List clist = new ArrayList
Get Data From the XML File Get Data From the XML File
Here you will learn to
retrieve
data from XML file using SAX parser. We use the JAXP
APIs to retrieve
data from XML document .
Description
Unable to call .jrxml file from jspUnable to call .jrxml file
from jsp Hi,
I am doing web application... then it
unable to access it.Error also not showing. I will show my code and its output...())
{
rsOfIncident =db1.getExecute("Select *
from Incident
How to get the most recent data from the sql databaseHow to
get the most recent
data from the sql database Hi, just wanted to show the most recent row
from the database table...in my web page. for example if i have four records in the table that was added on different different
How can I get specific data from JSONHow can I
get specific
data from JSON Hi,
How can I
get specific
data from JSON?
Thanks
Hi,
In Python you can use the json library... shows how you can
get the user
from the json:
>>> import json
>>>
How to get data from Oracle database using JSPHow to
get data from Oracle database using JSP hello i have a simple problem in jsp in the sense to
get data from the database like oracle . I have... in the sense to
get data from the database like oracle . I have created one jsp
Run a .exe from a classRun a .exe
from a class how to lauch a .exe file
from a
class in Java and to check the success ful execution of the same
JSP Get Data Into Dropdown list From DatabaseJSP
Get Data Into Dropdown list
From Database
In this section we will discuss....
This tutorial explains you that how to fetch
data from database and set... for fetching
data from the database and set
it into the dropdown list in JSP