java with xml

179 byte By bronze-starDukes at 2007-11-26 12:09:36
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

information about reboot

243 byte By bronze-starDukes at 2007-11-26 12:09:37
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

how to download data in form of tables into database where no xml is given

171 byte By bronze-starDukes at 2007-11-26 12:09:38
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

Getting Null pointer Exception in vector.add()

498 byte By bronze-starDukes at 2007-11-26 12:09:39
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 ...

How torun War file

430 byte By bronze-starDukes at 2007-11-26 12:09:41
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 ...

java comm pls help.

465 byte By bronze-starDukes at 2007-11-26 12:09:42
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 ...

Entity Bean

13346 byte By bronze-starDukes at 2007-11-26 12:09:43
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 ...

window.open() and prerender()

634 byte By bronze-starDukes at 2007-11-26 12:09:44
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 ...

a question about POJO programming?

1013 byte By bronze-starDukes at 2007-11-26 12:09:45
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 ...

urgent help

928 byte By bronze-starDukes at 2007-11-26 12:09:46
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 ...

HashMap and Vectors problem

3518 byte By bronze-starDukes at 2007-11-26 12:09:47
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, ...

Free DDE tool?

209 byte By bronze-starDukes at 2007-11-26 12:09:50
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. :)

Regular expression question

419 byte By bronze-starDukes at 2007-11-26 12:09:51
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, ...

I need a center in Nigeria

442 byte By bronze-starDukes at 2007-11-26 12:09:52
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 ...

rmid and Netbeans

214 byte By bronze-starDukes at 2007-11-26 12:09:53
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

How to convert a class to cap

161 byte By bronze-starDukes at 2007-11-26 12:09:55
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.

Launching external process

559 byte By bronze-starDukes at 2007-11-26 12:09:58
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 ...

IDE Raid not recognised by Solaris 10 6/06

325 byte By bronze-starDukes at 2007-11-26 12:09:59
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 ...

problem in JAI scale factor

524 byte By bronze-starDukes at 2007-11-26 12:10:00
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 ...

Calling servlets from JFrame

443 byte By bronze-starDukes at 2007-11-26 12:10:01
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 ...

Open any Portal/web which has audio/vidio contentent ....

133 byte By bronze-starDukes at 2007-11-26 12:10:02
Hi ,Friends what's ur guidance for this ................please give me fast replay.....ThanksPral

problem with objects

1210 byte By bronze-starDukes at 2007-11-26 12:10:03
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 ...

I need speed hints

3508 byte By bronze-starDukes at 2007-11-26 12:10:04
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, ...

slow Jtable due to tableChanged method

13633 byte By bronze-starDukes at 2007-11-26 12:10:06
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 ...

File difference with java..

345 byte By bronze-starDukes at 2007-11-26 12:10:07
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 ...

sending mail problems

1670 byte By bronze-starDukes at 2007-11-26 12:10:09
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 ...

null pointer exception - hopw can I make new to Connection ?

370 byte By bronze-starDukes at 2007-11-26 12:10:10
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 ...

the third bodypart of a Multipart/Report is missing.

1029 byte By bronze-starDukes at 2007-11-26 12:10:11
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 ...

This tutorial is about querying Oracle 10G XE

368 byte By bronze-starDukes at 2007-11-26 12:10:12
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 ...

How to solve deadlocks?

246 byte By bronze-starDukes at 2007-11-26 12:10:13
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!!!

Generics and Factory Method

1291 byte By bronze-starDukes at 2007-11-26 12:10:14
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, ...

Missing IN or OUT parameter at index::1Error while firing select query ?

436 byte By bronze-starDukes at 2007-11-26 12:10:15
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 ...

refreshing JFrame

6468 byte By bronze-starDukes at 2007-11-26 12:10:16
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 ...

Winston Please help me Its Very Urgent. (Please help Me out )

1015 byte By bronze-starDukes at 2007-11-26 12:10:17
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 ...

problem in MergeSort i need it in 1 Hour :-(

3353 byte By bronze-starDukes at 2007-11-26 12:10:18
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 ...

Best practices

912 byte By bronze-starDukes at 2007-11-26 12:10:19
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 ...

deploying a simple servlet with creator 2...

1073 byte By bronze-starDukes at 2007-11-26 12:10:21
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 ...

query with the tablename coming at runtime cannot be created..!!!

789 byte By bronze-starDukes at 2007-11-26 12:10:23
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 ...

Forwarding Events

389 byte By bronze-starDukes at 2007-11-26 12:10:24
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 ...

Error while connecting to the data source

905 byte By bronze-starDukes at 2007-11-26 12:10:25
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 ...

Delegated Administrator misunderstood ?

575 byte By bronze-starDukes at 2007-11-26 12:10:26
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 ...

character cannot be deferenced

1653 byte By bronze-starDukes at 2007-11-26 12:10:27
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 ...

Regarding how to maintain different session for parent and child window

681 byte By bronze-starDukes at 2007-11-26 12:10:28
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 ...

About thread sleep

243 byte By bronze-starDukes at 2007-11-26 12:10:30
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

problem launching browser from java in XP

349 byte By bronze-starDukes at 2007-11-26 12:10:31
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 ...

Help with my dissertation

563 byte By bronze-starDukes at 2007-11-26 12:10:32
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 ...

Signature

573 byte By bronze-starDukes at 2007-11-26 12:10:33
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 ...

users verification

941 byte By bronze-starDukes at 2007-11-26 12:10:36
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 ...

Disabling Secure Static Versioning in JRE 1.5.0_10 does not work

994 byte By bronze-starDukes at 2007-11-26 12:10:37
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 ...

Placing labels at desired locations.

293 byte By bronze-starDukes at 2007-11-26 12:10:38
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