Hi all,I am very new for java programming. I want to know how we retrieve data from xml file with the help of java programm. plz provide an example with code. Thanks
Hi AllIs there any way in Solaris, we can find out who has rebooted the serversuppose 20 people is having root password and they are using 20 different pc to login to that particular solaris serverThanksKanki
please help no xml for that site ,I need to download data which r in the form of tables in web page .database is mysql.... i am not able to understand POI of tomcat
Hi all,While adding a map value to a vector im getting null pointer exception.The snippet is as follows:Vector favoriteAccounts=new Vector();favoriteAccounts=null;Map accountDetails = null;favoriteAccounts.add(accountDetails);Note: "accountDetails" has a collection of values.what could be the ...
Hi all ,I am new to this technology ..help me out please I wnat to make run a jsp application through tomcat server .I Compile and deploy the things using eclipse and ant tool and creating a a war file ,,, so please tell me how to run that war file ...If I extract that file then Put this url ...
hi iam working on a sms project.the code reads sms fro com1 i have copied win32comdll to C:\j2sdk1.4\bin and javax.properties,comm.jar to j2sdk/liband classpath to comm.jariam able to run the code in jd1.3.but when i try in j2sdk1.4 .its not working .the port is not opening and its catching ...
hi all.I want write Entity Bean, this work with DB MySQL and use JBoss container.it is my Table:CREATE TABLE `users`.`asdsdsd` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `user` VARCHAR(45) NOT NULL DEFAULT '', `pass` ARCHAR(45)NOT NULL DEFAULT '', PRIMARY KEY(`id`) ) it is structure ...
I've got a table with a column with hyperlinks. When the user clicks a hyperlink the onClick javascript reads as follows: window.open("/MockFitwise/faces/CompanyDetails.jsp?idBedrijf=#{currentRow.value ['company.idCompany']}", "_blank");This bit works, however I don't get my ...
Hi allaccording to this quote about POJOs:The term was coined while Rebecca Parsons, Josh MacKenzie and Iwere preparing for a talk at a conference in September 2000. In thetalk we were pointing out the many benefits of encoding businesslogic into regular java objects rather than using Entity ...
i did this but i got null pointer exception..can someone tell me whats wrong with it and how to overcome this problem thank you.directoryName = "C:/";directory = new File(directoryName);files = directory.listFiles();File lastModifiedFile = null;for (int i = 0; i < files.length; i++){String ...
Hi all,I had this problem for a week, I tried to build a algrethem that store datas counting every 2, in another words, I want to group two things together, I made a testing program, using vector to store the two strings, and then put it into a HashMap, when I print out I always get below, ...
Hi,I'd like to know if there's a free DDE tool for communicating Java with Excel.Yes I already used the search but I've only found paid solutionsAny help would be appreciated. :)
How on earth it is possible to implements regural expression that does the following: -words between "" should become one sentence, no matter if it contains "," chars-other words should be splitted using " " or , as a delimiter.Example:"first sentence", simple double, word,"testing, ...
Hello Guys,I have been programming java for 3 years now and just became keen on getting certified this year. Firstly, I tried a Pearson VUE center here in NIgeria, but its like they were not accredited by Sun. Two weeks ago, I tried another, but the same story.Can I get anyone (especially from ...
Hello Guys,Apart from command line, how can i use the rmid tool with Netbeans. I currently had an Ant tool option to create a build file (in xml format) but could I have an easier means?Michael
Hi, I've compiled a Javacard applet and I'm having trouble to convert it to a cap file.Where can I find a tutorial about it ?tanks.
When trying to launch an external processing, I get this error: ""file.java": non-static method exec(java.lang.String) cannot be referenced from a static context at line 317, column 24". Any ideas?import java.lang.Runtime; try{Runtime.exec("calc");} catch (IOException ...
Hi,I am new to Solaris and was trying to install Solaris 10 on my old machine which has got Intel Server Board SE7500CW2 with built in Raid (ATA-100) controller. The raid controller is Promise Technology PDC20267 ASIC.What settings are needed to be done to allow the Solaris to recognise ...
I am using scale method for Zooming purpose.So i set scale factor as 0.5 for Zoom-in and 1 for Zoom-out.First I load the image,then i perform Zoom-in to make fit width.After Zoom-in,i am getting the image co-ordinates which is totally different from that of original.But actually what I need is ...
Hi,I am calling the servlet by clicking a JButton on Jframe. By using the URL class i could extablish a connection but the problem araises when i need to send data to the servlet where in i have to collect the data in the servlet using getParameter(). Anyone please help me out... Its better if ...
Hi ,Friends what's ur guidance for this ................please give me fast replay.....ThanksPral
hi. im trying to set the price of a car, the car price varies according to the customers age. the code below works, but the if statement does not. help would be great. public void assignCarToCustomer(Customer aCustomer){ setCustomer(aCustomer);// point car to the Customer instance}//set the ...
Hi, Here, one part of source code.private static final byte ASS_DATA_SIZE = (byte)116;private static final byte ASS_SIGN_SIZE = (byte)16;private byte[] mData;private byte[] mSignature;private byte[] mSignatureTemp; ...public Signature(){mData = JCSystem.makeTransientByteArray(ASS_DATA_SIZE, ...
I create a table model as in the following code. I need that the values of some columns are recalculated based on the change in different columns of the table . The code that I wrote seems to work correctly but on the other side it slow -down the load of the data in the table. In particular if ...
Hi AllI have a requirement of checking the file difference from java. I mean if i have given with 2 similar files, i would be able to display the difference between those files (similar to winmerge does). Is there any api's or third party tools to incorporate this functionality in my java ...
Hi I have this program that it works independetly but when I create an object from it from another program, it doesn't go through after the creation of the session.It stops atMessage msg = new MimeMessage(session); can some one help me and tell me the problem .thanksimport ...
void makeSql() throws SQLException{Connection connection;try {PreparedStatement ps = connection.prepareStatement("select name from FILES where id = ?");ps.setString(1, id); name = ps.executeQuery().toString(); } catch(Exception e){e.printStackTrace();}}what to write in order to fix ...
Hello,I need to find a way to acknowledge some messages sent by my application. To do that, my application must send emails with a unique identifier (UID) and a request for a delivery notification. When the application reads notifications, it needs to retrieve the original email's UID.The ...
Read this tutorial about two great products: Oracle 10G XE and Sun Java Studio Creator and along the way learn how to connect to Oracle 10G with ease. Fortify your querying skills using the Creator. http://www.devarticles.com/c/a/Java/Querying-Oracle-10G-XE-using-Sun-Java-Creat or-2/Brought to ...
Hi, I have a deadlock problem that I don磘 know how to solve.The isolation leavel is set to READ_UNCOMMITTED. And I have tried to shorten the transactions.What other methods are there to solve deadlocks?Thanks!!!
Hi, so this is just a test code. Is there any way to let it work, any other solution that can solve my problem? public class GenericsTest {ArrayList<B> bobj = new ArrayList<B>();ArrayList<C> cobj = new ArrayList<C>();public GenericsTest() {addElement(bobj, ...
Hi,In my process we are using Oracle data base and I am firing simple select query .The query is SELECT status_id FROM ADM_Payment_Status WHERE status_description='Raised'.When I fire the above query I am getting Missing IN or OUT parameter at index::1.I didnt figure out why I am getting this ...
How can i refresh JFrame with random number when JButton is pushed? i post my code in here , i am waiting for your help : )import java.util.Random;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JButton; import java.awt.*;import java.awt.event.ActionListener;import ...
Hi i am doing a simple application which contains 3 jsp pages, where the names of pages are Employee.jsp , Edit.jsp and Submit.jsp. So where this Employee.jsp page contains a table data and it shows all updated content in DB Table. So if i want to edit any detail of particular rowgroup. SO it ...
Hallo,im trying to implement a Mergesort with test methode but the problem i can not start the code, i need help to solve this problem, that would be perfekt if i get that in 1 hour, i have to give the Answer to my Teacher!hier ist my code:public class MergeS{static void msort (int[] array, int ...
I have a few questions about best practices when using Strings and StringBuffers. Question 1: for concatenation StringBuffer or StringBuilder is the best option. How about search and replace? Does the same explanation apply here (use StringBuilder to avoid spawning too much objects) or does the ...
i need to generate a simple war file around the below servlet:import javax.servlet.*;import java.io.IOException;public class PrimitiveServlet implements Servlet { public void init(ServletConfig config) throws ServletException {System.out.println("init"); } public void service(ServletRequest ...
Hi i am writing an application where a table needs to be created where the table name comes at run time..as followingStatement stmtCr = co.createStatement(); String sqlSt="CREATE table "+Ptype+" (au COUNTER PRIMARY KEY, id Number, Fid VARCHAR(50));";stmtCr.executeUpdate(sqlSt);But i am getting ...
Hello,I have implemented a JTree in with custom renderers. Each node is a complex widget. It has a label, a button and a table. Events are intercepted by the JTree, so if I click on the button nothing happens, and when I click on a table's cell I cannot edit the contents. So the cuestion is ...
Attempting to connect to MySQL from OpenOffice.org 2.0.x using JDBC (MySQL Connector/J) I constantly getjava.net.SocketException (connection refused) at (StandardSocketFactory.java:156) and other, similar messages.Realizing that this means Java can't connect doesn't mean that I have a clue ...
Hi all,I have installed JES 2005Q4 in schema 2 for calendar with Access Manager and Delegated Administrator (DA). I would have to delegate like a Two Tiered hierarchy as describe in the documentation.These doc tells me that Organization Administrators (OA) can create resource in DA, then after ...
what does character cannot be deferenced mean?heres my code, i get 4 character cannot be deferenced errors.import java.io.*;class intputoutput{public static void main (String[] args) { InputStreamReader inStream = new InputStreamReader (System.in);BufferedReader stdin = new BufferedReader ...
Hi All, I have a problem in maintaining session , when a new (child )browser is opened using one (parent) browser. Data in parent browser is maintained using session. According to requirement new browser should be replica of parent window and should support all functionalities of the parent.But ...
Hi,I am studying the following code try { Thread.sleep(5*60*1000);}catch ( InterruptedException ex) {} I would like to know.. in which situations the exception will be caught ?Thanks.Ivan
Hi guys.You guys are knowledgeable, and my only hope. I have no problem running the following command line in 2000, but problem in xp and newer, the browser close immediatly.cmd /C start iexplore javascript:open(" http://google.com")and yes i have to use javascript later on to custimize ...
HiI am using Borland JBuilder the foundation version (the free version) to develop an application. Can anyone please tell me how I can get a help file documentation. I remember they use to provide one with the much earlier version now you require to register with them (buy a product) to get the ...
Hi.I'm trying to make an applet that uses a Signature.But, i don磘 know if the argument passed to applet sign instruction is the MD5 generated by MessageDigest or the original text.I'm using a RSAPrivateKey and the algorithm ALG_RSA_MD5_PKCS1.The data in the buffer must to be the MD or the ...
hello ,this is not really 100% java question ,but I thought someone may be able to give me an idea .I have a database with about 18000 entries or usershere is head of my tableid#last_name#first name#tel#mobile#city#street_name#street_nb#birthday...I will have to add users to this tablethe ...
HiI have a problem here using the 1.5.0_10 JRE. The plugin is necessary for an applet we use, but through secure static versioning it hijacks any other static referenced JREs.We're using a lot of applications that come in form of Java Applets. Those applets are for production use in our ...
I wish to make an 'about' dialog box like this... "OK" simply closely the box... what is the best way to perform the layout? gridLayout seems to be way off. Any ideas?TITLE BAR|-LINE1 ||JPG|LINE2 |-LINE 3 || ||OK |Thanks,JavaRob