35,620 Topics
![]() | |
hi frds, i need code for pagenation using jsp servlet ....plz urgent........ | |
Firstly i would like to say Hello to everyOne.Am a Computer Science Student and Am new in Java Programming.My first program is to write a program that will read a file and display the sum of all values. ....wanted to use BufferedReader to read the file and store the values … | |
Im getting invalid coulmn index...any suggestions?...thanx in advance [code=java] public static int[] getListSummary(UserDataVO userData) throws Exception { Connection connection = null; PreparedStatement pstmt = null; ResultSet resultSet = null; int[] listSummary = {0,0}; int leadCount = 0; try { connection = DataBaseConnectionManager.getConnection(); if (connection != null) { if (userData.isAgentType()) { … | |
hi guys..........this is the code I'm trying to run [CODE] package dbpack; import java.sql.Connection; import java.sql.DriverManager; import java.sql.*; import org.jfree.chart.*; import org.jfree.data.jdbc.*; import org.jfree.data.general.*; public class chartdb { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //private void readData() //} private PieDataset … | |
Hi doing a project which consists of moving between individual frames and in general interrogating a database from these frames. My first frame is a Logon frame. In this Logon Frame/class i have also instantiated another class called Member where I've saved the username from the logon process. Can I, … | |
hai , all This coding about filter data using jTextFiled and display in jtable, so help me to combine these class be one class. thanks [CODE] //DBAccess.java import ca.odell.glazedlists.BasicEventList; import ca.odell.glazedlists.EventList; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DBAccess { private static Connection c; private … | |
Im getting this on just about every line....anybody see what Im doing wrong? [code=java] public static int[] getLeadsSummary(UserDataVO userData) throws Exception { Connection connection = null; PreparedStatement pstmt = null; ResultSet resultSet = null; int[] leadsSummary = {0,0}; int leadCount = 0; try { connection = DataBaseConnectionManager.getConnection(); if (connection != … | |
im a 1st yr IT student, we have a final project this end of class. . . all we have to do is make a program using java. Honestly, java is very hard for me so if i can have a favor please help me to understand it more. . … | |
now as an example of validation i have this code [INLINECODE] <%@ page contentType="text/html" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <html> <head> <title>User Info Entry Form</title> </head> <body bgcolor="white"> <form action="validate_jstl.jsp" method="post"> <input type="hidden" name="submitted" value="true"> <table> <c:if test="${empty param.userName}"> <tr> <td></td> <td colspan="2"><font color="red"> Please enter your Name </font></td> … | |
Hi Is it possible to play music in java from back to front? | |
I cannot explain this problem, and in searching all over I've seen a few leads but no help. I do not understand at all why I get this exception. It claims I am trying to cast a JList as a DefaultListModel when I'me trying to cast a ListModel and a … | |
hi, I was looking to solve this problem long time ago.My problem is: I have a link on jsp page (witch belong to a website ) when I click the link it suppose to give me the open/save/cancel dialog box to choose to open or save the specified file but … | |
Hi, I want to save a .txt file into database using java language, how can it is possible ? The .txt file has one word per line and I would like when the program find a string like "<P>" to continue until line with "</P>". If it is found to … | |
Hi there, What I am doing is filling a 2-D array with numbers in a random order. i.e. I pick a position in the 2-D array and input a number there eg: array[2][1] = 3;(this input is received from a text file) In this way, I fill the array but … | |
I want to learn [B] CORE JAVA [/B]... So, can any one advise me how to start... | |
any suggestions?...im thinking somewhere between lines 163-185, but I'm stumped <%@ page language="java" %> <%@ page import="trader.webservices.data.LeadDAO" %> <%@ page import="trader.aabacrm.LeadsList" %> <%@ page import="trader.webservices.data.*" %> <%@ page import="trader.webservices.presentation.Lead" %> <%@ page import="trader.webservices.data.UserInfoDAO" %> <%@ page import="trader.webservices.data.UserDataVO" %> <%@ page import="trader.webservices.data.ButtonDAO" %> <%@ page import="trader.webservices.constants.UserConstants" %> <%@ page import="trader.webservices.util.Utils" %> … | |
Hi, Pls tell me the output for the following code............ public class Test { public static void main(String args[]){ int i=0; for(int j=0;j<=10;j++) { i=i++; } System.out.println("value of i\t"+i); } | |
Hello EveryOne, Im Thiyagu Junior Java developer, can any one help me for design pattern or idea to develop HTTP monitor in Java. The objectives of HTTP monitor is - to log/view all URLs that is requested or visited by the system user via webrowser. - it can be a … | |
this is my first post...not sure whats the problem...any suggestions would be appreciated...thanx [code=language] <% int unViewedCt= 0; out.write("var jsLeads = new Array); (for (int i=0; i< leads.size(); i++) { currLead = (HashMap)leads.get(i); out.write("jsLeads["+ i +"] = new Array();\n"); out.write("jsLeads[" + i + "][0] = '" + currLead.get("PK_LEADID") + "';\n"); … | |
Hello everyone, I am using JDBC to compare the content of two database tables -- writing a general function and two tables are input. The two tables have various types of columns, like VARCHAR, BLOB, INT, FLOAT, etc. I want to save my time to write various statements to get … | |
Please tell me the method of installing jconnector for my sql server | |
Hello everyone, I want to run JSF1.2 in netbeans 5.5 with Tomcat server 6.0.13 how config tomcat and netbeans THanks | |
Hi guys probably quite a common question but I've imported both java.sql.* and java.util.* and want to create an sql Date variable. What's the syntax to declare the variable from the sql class. I'm getting an error message that there is contention between the .util and .sql class. Thanks | |
[B][I][/I][/B]i want to do project in mobile applicatios like voice commands or similar. can anybody help m? | |
| |
Hi, I have a jsp page where the user is asked to do certain entries. Now if the user leaves any one of the entires as blank or as a wrong entry and presses the submit button, he gets an alert message. Now after the user presses okay,, the page … | |
I have a class with a private static HashSet defined in it that holds objects, when I pass a new object to the class all the elements of the HashSet change to the last inserted objects. I thought a static declared Hashset is only created once so any objects added … | |
Hi everybody. I'm trying to turn on (or off) some LEDs conected to the Parallel Port. The program opens the port correctly but for some reason, it only allows me to use the LPT.MODE.SPP, even though that according to my Device Manager, the LPT1 mode is ECP. Besides that, the … | |
Hey guys, so I’m writing a code analyzer and I’ve reached a bottleneck with parsing Java numbers from the source code. It works fine for the usual int, double and float numbers expect when they are represented as either octal of hexadecimal. The ‘parse’ method of [inlinecode]Integer[/inlinecode] and [inlinecode]Double[/inlinecode] don’t … | |
Hi , i am trying to run Servlet since last 3 days , i have executed servlet so many times with same method but this time its troubling me . This is code of web.,xml <?xml version="1.0"?> <web-app> <servlet> <servlet-name>hello</servlet-name> <servlet-class>servlet1</servlet-class> </servlet> <servlet-mapping> <servlet-name>hello</servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> </web-app> Aug 8, 2007 … | |
I ahve created a directory Structure Sumit -> WEB-INF -> src -> classes and i putted Servlet file in src , compiled class file in classes folder and created Web.xml file in WEB-INF folder after that i craeted a war file ( I am not sure it should be inside … | |
What should be the encoding format of Web.xml file while saving it form notepad | |
i am writing code and also the error i am facing in database connectivity in jsp to mysql .plz help me .thanx code import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Connection; import java.sql.*; import java.io.*; public class ConnBean { Connection conn; Statement st ; public ConnBean() { String sqlDriver= "com.mysql.jdbc.Driver"; … | |
Am currently doing a project with a java GUI interrogating a database. My first GUI is a [U]Login[/U] display which when the user successfully logs in will move onto a [U]Menu[/U] display. My problem is that I cannot get from the [U]Login[/U] display to the [U]Menu[/U] display. These GUIs have … | |
I've revived an old java project I did in college. Basic chat type program like ICQ which stores offline messages and users in a database etc, etc. I've recently switched the database from Access to MySQL and am considering some other alterations. I've been reading a bit on RMI. I … | |
There is a task: Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator. Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 … | |
Hi, everybody. I've made a code of a "for" loop. Once i exceeds 4, the loop must stop. The input is in a JTextField. The problem is that the loop never stops although it exceeds 4. Can anybody help me? The problem is here : public void compare(int x) { … | |
[B][I][U][B][I]i am looking for a java project . i am in final year .[/I][/B][/U][/I][/B] | |
Hi, I have been trying to learn java on my own on Linux from command line. Can any one please give me a few very basic samples of code that ask the user for an input (interger/double/float/string all possible data types)? I have downloaded the official Sun Java tutorials but … | |
Hi guys, i am new to java so i started of with basics, but now im stuck at a little problem. I will paste the code and error's below, hoping that some1 could sort em out [code=java] import java.lang.*; import java.io.*; class Sphere{ float radius; int cXcord; int cYcord; int … | |
Dear all Could you tell me what is it-atomic type in Java? I explored internet and book Java in 21 days,but nothing about it. The question was about difference between object reference and atomic type. I found that object reference is an address that indicates where an object's variable and … | |
Hello everybody! I am a beginner in Java and computing at all. I need to make some tasks if you help me,please. So, the first taks is: Write down what is stored in s2 after the following Java code has been executed: String s1= new String("Hello"); String s2= new String("The … | |
I was reading through my java book which is called Introduction To Java Programming Sixth Edition by Y.Daniel Liang and I was reading about databases. I just wondered if java is used in webdesign for the purpose of creating databases and if that was instead of MySql and what the … | |
This is the last thing I am doing to my app, and I saved the hardest for last. I have been out here all week beating you guys to death with questions, so if I do not get any replies at all I will understand. I do not need this … | |
After my poor showing yesterday I was ready to quit, but I decided this morning I would rather feel dumb than feel like a quitter, so here I am. I coded this last night thinking if it worked great, if not then I would just drop it. Well it worked … | |
Hi, Please reply with the [B][B]code[/B][/B] which would generate a Unicode file from a CSV ( Comma Seperated File) given as input. Thanks, LakshmiNarayanan | |
I've been trying to find a function that returns the version number of the JVM. I found this website that does it, so I know it can be done: [url]http://www.javatester.org/version.html[/url] Can anyone help me out? | |
I have 3 things left I want to do to this app, I saved the hardest for last ... now I am wondering why. First is a search button. I want to be able to Search on my cd name field. I have been reading and playing with this since … | |
Hey, Can someone please assist me with these tasks? 1. Generate Unicode file from the CSV file (attached) 2. Parse a Unicode file and convert to ASCII 3. Compare two unicode files and generate a line by line comparison report Thanks. | |
Hi.. I am developing an internal messenger where i need to prepare documentation .so can anyone help me ASAP......... Thanks n Regards |
The End.