[code][code][code][code]Hi, I having trouble writing an applet for JDBC to connect to Oracle database. I can connect and run the program as standard application but having trouble in applet. For one where do you put the DriverManager.getConnection in the applet. Also I having trouble performing ...
hi,Can anybody tell me what is difference between SmartMX chip and NFC IC?What is the difference between ISO14443A and ISO14443B?And what about ISO/IEC 18092:2004 ISO/IEC 21481 how these three are related?Thanks
HI,I have a problem. We are currently using OJB for data access. I want to know the public opinion that is OJB better than JDBC.
I m using sun java wireless toolkit 2.5 beta and jdk1.5how can i access my mobile camera using j2me ?please give some example codes and links .....reply as soon as possible.!!!!
Hello. I've been working on this one code for a little, and I'm coming up with two errors that I just don't know how to fix. Here's the code.// Java Documentimport java.io.*;public class fileio{public static void main(String[] args){int[] letter = new int[26];int i;int letternumber;int ...
How can we access image residing on an absolut location on Linux? Because '/root//images/123.jpg' is considered relative path in Sun Application Server! Can anyone help in this?
HeyI am having trouble deploying my JOGL applet on the web. Has anyone been able to do it?I followed the instructions at https://jogl-demos.dev.java.net/applettest.html but when mine runs it gets to the point where it says loading... and just sits there.Im still using the old JOGL ...
Hi, I have a decimal value 70 for example and want to obtain it in binary like this:01000110.Can anyone please send me the code how to achieve this pleasethanks in advance
hi, i have a problem here. i have created few textarea for user to fill in. is there a possible that after they fill in and click submit, the information is stored in a database created for it?
Me want to know about all types requestDespatcher()methods with example code in jsp and servlets.... bcoz me having example.. but me not have the clear steps to execute..so plz mention clear steps with code...my HearFull thanks in advance
Hi,This a newbie. I have the following code but can't figure out how to append data I read into a string into JTextArea...The code builds the frame which implements action listener.outputArea = new JTextArea("Books", 15, 15); container.add(outputArea);I'm trying to append a string to the ...
Hi all,i have a combination of numbers and characters say for example100mg250gm10-15gm 23%i should seperate the numbers from the units for generating an xml with customized tags say 100 and mg seperately 10-15 and gm seperately,23 and % seperately. How can i write a common code which identifies ...
I can't seem to get my ActionListener to append data to an existing JTextArea(). I can create an instance of the frame with the panels and working buttons using the constructor. I can't seem to get my ActionListener class to work for appending data. It works for clearing the text fields and ...
hai all,i have a doubt, how can i integrate WML with JSP, and how the WebServer recognizes this for processing.
Hi,Can any one explain me wht is difference between CGI and Servlets.Thanks,Girish.K
I keep getting an error on line 48, cannot resolve symbol. The 'H" in HoursPerYear of the calculation section is the error, but I am new to java and I don't know way. Please Help!*/import java.awt.*;import java.applet.*;import java.awt.event.*;public class KilowattApplet extends Applet ...
hai all,we are compile the java source code and then we will give that byte code to JVM, but as part of JVM one Compiler and one Interpreter is there, what is the use....why they are inserted it into JVM.. for what purpose........
Hi, In my Login Form I have user name and password and two radio buttons parent and teacher, when i click on my radio button parent, the value parent will store in the database table field status, How can i write this.Please, help meRegards,Kiran
Hello, I've Problem in using <t:div> .In my application i have 3 roles as role1,role2 and role3.According to the roles i need to display only that part of the page which is required for that role.Like role1 can view only one part of display, role 2 has to view only 2nd part of page and ...
This is my code:/*** Registers the quantity of print page. * ** @param n page quantity* @return void* @see generatePrnFile */public void setQuantity(int n){this.pageQty = n;}This is how I use javaDocjavadoc *.javaHow can i have the comment, description or summary displayed on my HTML? Do I ...
Hi,I have a core that's caused by an exception. pstack tells me the offending function and also the hex offset inside that function, and I need to get to the exact line in my source file.The way I used to do that in the past was to generate a .s from the .C using the -S option of CC, but the ...
Transferring objects from one jsp to another jsp using request implicit object
What is the differance between Facelets and JSP?What are the benifits of using Facelets and why we need to use XHTML with facelets but not HTML?
Hi all,I wish to deploy and run the Java petstore 2.0 demo. I have the following OS and platforms:- WinXP Home SP2- Java EE 5 SDK (installation dir: C:\Sun\SDK)- NetBeans IDE 5.5 BetaI've followed the procedures outlined in the index.html packed in the javaPetStore JAR file. I've downloaded ...
Hi. in couple of days I have to start writing program in which has to be Undo() function (and it's service functions), that function as my lecturer says, have to be able do all undo operations from the start of the program. One of suggestions was to save all data to files after any change. ...
Hi guys,I have a table which has 4 columns and 5 rows. How can I insert these data into MYSQL database? Can someone explain to me? I have no idea of how to retrieve the records row by row from the table and put them into the database.I am using Sun Java Studio Creator 2 Update 1.*Note: table ...
HI. I have a java class call TimeRule, one of the function is public static time_rules[] getAllRuleTime()and ireturn timeList; in jsp I can use time_rules[] timeList = TimeRule.getAllRuleTime(); to access this class, how can I access this at my servlet?Thank
Suppose we have three classes X, Y, and Z1.X has a public method f()2.Y extends X and overrides f()3.Z extends Y4.x is an object of type X, y is an object of type Y and z is an object of type Z.when I invoke z.f(), which version of f() will be called? The one in Y, i.e. y.f() or x.f()? I ...
Hi,Can I show in JList more then one column? (I need list, not table).Thanks
I have a scenario as defined below:-There are two JSPs, A_page.jsp and B_page.jsp.They have AERROR.jsp and BERROR.jsp defined as error pages for them respectively.Case1:- If A_page.jsp includes B_page.jsp using include directive.In case there is an error, which error page will be shown, ...
hi all i m a new java programmer i am using jbuilder2005 and SQL server 2000 i am trying to connect form java to data base i have the JDBC driver for sqlserver and i tryind to put them in classpath but i have a problem i dont know if if i put it in the right way because i still recieve the same ...
transferring arraylist objects from one jsp to another jsp using request implicit object
In a case if there are 20 rows in a table EMP, and I executed the following code:-Connection con=DriverManager.getConnection(URL);Statement stmt=con.createStatement();ResultSet rs=stmt.executeQuery("SQL code goes here...");wait(5000); // call wait(5000) method to pause for a ...
Hi all!! Thanks in advance...I have an application to browse files. This consists of a frame with a file dialog.Another application is a calculator applet. I am finding a problem in binding these two elements as grid elements in a new frame so that both can be used simultaneously...does tis ...
hi therehow do i write a for loop to get the largest number in the loop..this loop is dynamic..thank you
Hi,There is a question about rmi with sslsession, that I pay a few time to check java api and sourcecode but no result.In a rmi call execution with ssl, how to get current session id in this call?I google web and find only one resolution: customize its SocketFactory.I wanna know from you, Is ...
I get this error on our Sun Server (Sun Microsystems sun4u 5-slot Sun Enterprise E3500). Suspected to be hardisk error, can someone explain to me the severity of the problem? Do we need to call sun engineer on this or change hardisc?..thanks. Dec 11 22:14:26 oracle unix: WARNING: ...
Hi i am having a jsp page which contains some textfields and one button. I have a database table and i have added to my page. The first column of Database table is ID which is of NUMERIC type and it has been set into primary key. And rest of fields are CHAR type. I am using SQL Server 2000. I ...
hi,[code][PrintWriter out = new PrintWriter(new OutputStreamWriter(res.getOutputStream(), "UTF8"), true);the above line working well, i can able to convert to UTF-8 encoding.how to convert string values to URF-8 .any one can convert the following lines to UTF-8StringWriter writer = new ...
Hello there,I have 4 classes.1. User2. Client3. UserManager4. ClientManagerUser is an abstract class and Client inherits from User. Therefore, a Client is a User.UserManager is solely responsible for User objects management. It handles adding, removing, editing and getting all Users. Moreover, ...
Hi...I user dropDownMenu like this:<h:selectOneMenu onchange="javascript:changePlanet()" id="changePlanet" value="#{loginAction.planet}"><f:selectItems id="allPlanets" value="#{loginAction.allPlanets}"/></h:selectOneMenu>I have collection of few planets like : Mars, ...
Hi,I want to export contents from a html table in a JSP to excel using hssf.The contents in the html table are set with the properties of a javabean.could anyone please help me with thisthanx already
excuse me...i am new to java...i wish to know details for develop a new sip proxy server with java...i just need to develop a simple sip proxy server only ( for educational)hope anyone can help me out of this.i need to know what kind of java technology that i should use and learn for this ...
where i get driver java communication api full
Dear all,Can you help me ? Let's say in a folder contains :- A.doc- B.txt- C.datHow can I get filename, based on the extension (e.g. "doc" or "dat") ?Thank you
can any one tell me how to put common heading for rows in JTable, like -|N| |||| ||a--|m| || ||| |e-|s| || ||||N| ||||||-|R| ||| | | |e--|g| | || | ||N|o| | || | |-this is the exact requirment, how can i do this, as shown above i need to have some common heading for few rows and some other ...
hi everyone, i get the following error when running my code and i cant see why as i have set -Xmx2800m, i have 4g of memory on my system. i am using java 1.6 but my code does use a lot of recursive methods so i am wondering if it has more to do with that as my system monitor says that the code ...
Hi,My code throws following exception during running time.java.rmi.Unmarshalexception error unmarshaling arguements; nested exception is; java.lang.ClassNotFoundExcpetion server_stub.classBut, the folder contains all the classes like interface class, implementation class and stub class also.. I ...
Hi,I have a SearchBean class which is a managed bean. It has a SearchResults Class. The SearchResults class has a few integers, and a ArrayList of SearchData.This works<h:outputText value="#{jci_SearchBean.searchResults.searchDataList[0].title}" />Which shows that there is a valid ...
Dear gurus,I've a question regarding SSL. When I submit a URL request through SSL with query-string parameters, can anyone sniff out the query string or is it protected by SSL?Similarly, when cookies are disabled, I know that the server uses jsessionid to maintain the session states. Suppose I ...