35,618 Topics
![]() | |
Hi All, I am using Tomcat 6.0 Application server and Apache HTTP webserver 2.2 and Eclipse Galileo as my IDE. I developed an web application which is some site where users can login and browse around it. My problem is Only one user can access the application. That is when … | |
WHY WHEN I EXECUTE THE BELOW CODE I GETS AN EXCEPTION [B]java.sql.SQLException: No ResultSet was produced[/B].........BUT EVEN THOUGH INSERTION OPERATION WORKS FINE........CAN ANYONE TELL ME WHY THIS EXCEPTION COMES [CODE=java] Connection co; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); co = DriverManager.getConnection("jdbc:odbc:hh"); Statement st1; ResultSet result; st1 = co.createStatement(); result=st1.executeQuery("select count(*) from rooms"); result.next(); … | |
Hello, I'm trying to write a simple program to finde words betwen statments like <int></int>. I converted String stream to a charArray, to get indexes of chars in the string. [CODE] public void foo(){ bucket=str.toCharArray(); System.out.println(str.substring(548,563)); System.out.println(str.substring(644,656)); System.out.println(str.substring(844,857)); System.out.println(str.substring(942,954)); System.out.println(str.length()); for(int i=0;i<str.length();i++){ if(bucket[i+0]==':' && bucket[i+1]=='i' && bucket[i+2]=='n' && bucket[i+3]=='t' && … | |
So I have recently been learning java and everywhere I go I hear that java is a slow language compared to C or c++. I know that when it came out in the 90's that it was a lot slower, but I was wondering how much slower is it today. … | |
I am writing a prg which take a value from user and check weather its present in table or not.... [code] table.getValueAt(i,j).toString().toLowerCase() == searchfield.getText().toLowerCase(); [/code] Well if yes then make that cell red... What to write to make cell red? | |
I am trying to do several things. 1. Intialize - engage a user in a series of questions to assign values to the class variables, no args, no return value, called from constructor. 2. Display - displays all the class values, each in an sentence, no args, no return value. … | |
I am using JBoss as my app server. My application using almost 100 jars (libraraies).So How can I specify class path for all the libraries jar's because its not possible to define individually in JBoss_CLASSPATH .Can I define xml for the classpath but I don't know how JBoss detect or … | |
hello, I have this question to ask from you... when passing a object to a method is it pass by reference or pass by value ? I'm talking about calling another class's method... | |
Hi all I need to to read parameter value from web.xml I tried following way but it displays only null value .. [code=xml]<init-parm> <parm-name>email</parm-name> <parm-value>syz@gmail.com</parm-value> </init-parm>[/code] [code=Java]//servlet code pw.println(getServletConfig().getInitParameter("email"));[/code] | |
Good day, I'm new and glad to be here, I just need a help with the my code can anyone help me find the main error with it? The JList is giving me hell and since I migrated to a new laptop I'm failing to establish a connection with my … | |
Hi, Can anyone please help. I am working on Java 3D Cylinders. I cannot color the different faces of the Cylinder differently. TOP, BOTTOM, BODY. All should have different colors. I tried it with different appearances but to no avail. [code=java] Cylinder c=new Cylinder(); BranchGroup contentBranch = new BranchGroup(); Transform3D … | |
Hi, Does java provides any API to find the details of mobile service provider given a mobile number.?? Or any link to find the data regarding this. Thanks in advance | |
Hi I want to know what's the problem with my code. I'm just a beginner. I'm trying to display the smallest number, but everytime I run the program, the output is always equal to zero. However if I use this code to find the largest number, wherein the boolean condition … | |
Hello. I have decided to design and build an artificial intelligent chat room for the 2012 Google science fair. I will use java for it's ability to constantly expand without editing already written code. This chartroom will need to be able to distinguish verbs nouns adjectives ect, and from his … ![]() | |
Hi, First of all I would like to know if this is possible, I have a feeling it is. so if this is, How/What would be the best way to do this? Will I have to download 3rd party libraries? Thanx | |
hello friends, i've 2 forms 1) Home1 and 2)NewAccountForm in Home1 when a button clicked i perform NewAccountForm newAcc= new NewAccountForm (); newAcc.setVisible(true); this.setVisible(false); i.e. make invisible current(Home1) form and visible NewAccountForm , no problem here. [COLOR="Red"]BUT[/COLOR] in NewAccountForm after a button clicked when i try to make invisible current(NewAccountForm)form … | |
Any idea how I can make a applet using a thread and how i will implement it..SOS.. | |
Is there any way to take oracle backup from java. [code] Connection c = // Connection Setting; st = c.createStatement(); rs = st.executeQuery("//What to write here for backup"); [/code] I have tried imp and exp utility , but they cant be accessed through sqlplus... | |
Hi all, Quick question, Is there a way to store a GregorianCalendar object in a hard-coded array? Such as you do an int or String ? Or do I have to send 3 ints for dd/mm/yyyy and then create a new GregorianCalendar object in the Constructor? If this is the … | |
I want to make a Program that takes two inputs one initial number and one final number for example if I input 1 as the beginning number and 13 as the final, I would like the program to output the Fibonacci sequence: 1,1,2,3,5,8,13.. I hope someone understands it.. Pleease i … | |
In some cases of HTML cleaning, I would like to retain the text enclosed between the tags(which is the default behaviour of Jsoup) and in some cases, I would like to remove the text as well as the HTML tags. Can someone please throw some light on how I can … | |
I need to create a swing application, and draw a rectangle and paint it with RGB values. [CODE] Color c = new Color(10, 198, 19, 23); [/CODE] How should i do this ? any tutorial or example i could start with ? | |
Does a thread gives up monitor lock when Thread.sleep() is called? | |
Hello Everyone! I'm looking for some advice from some C# pros out there. I am not a C# developer, I am a java/actionscript developer. I have an old VB6 component wrapped up into activeX that I am trying to update. I have rebuilt the component from scratch in visual studio … | |
Can anyone help me to convert this java code to vb6 code? [CODE]import java.net.*; import java.io.*; class read_web { static void main(String[] url) { String web = "http://www.website.com"; String vs="",us = ""; try { URL website = new URL(web); URLConnection conn = website.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( … | |
I have been tasked with building an application that maintains a simple Student DB to store and process marks of students of 5 departments with 4 batches of students in each dept. I first thought of developing a UI-dataAccess style application. But Was unable to process because of various complexities … | |
Hi All, I am trying tp put messages into a jms queue using jms, webservices and weblogic server 10.0. When i run the web service in a single invocation the messages are put into the queue successfully. But when i try to run a load test on the web service … | |
hi :) i'm just wondering if there is any way to access to another website using my own? like: i have some input data and when i put it into the form of my website, it will search it in the another website's database and show me the result. i … | |
I'm trying to populate our database using some curl command like curl --user username:password [url]https://somewebsite.com[/url] curl - d "name=New User Name&address=New User Address" [url]https://somewebsite.com/api/add/new[/url] The instructions that they gave to me uses curl but I want to do it in Java so I decided to use HttpClient here's my code … | |
hi i am in great trouble. problem is i create a Servlet and code is HttpSession session = request.getSession(); session.setAttribute("employee", employee); "employee" is bean and now i am access that in jsp page like this: <LI><B>First Name:</B> ${employee.name.firstName} it work fine but if i use this bean in java code, … |
The End.