how to write an JDBC applet connect to Oracle

4872 byte By bronze-starDukes at 2007-11-26 12:14:35
[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 ...

SmartMX VS NFC IC

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

Is OJB better than JBDC

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

How to access mobile camera and address book using j2me?

205 byte By bronze-starDukes at 2007-11-26 12:14:38
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.!!!!

FileReader Issues

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

Absolute path access using Sun Application Server

186 byte By bronze-starDukes at 2007-11-26 12:14:40
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?

Problem with JOGL applet

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

convert decimal to binary

199 byte By bronze-starDukes at 2007-11-26 12:14:43
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

extract infomation

200 byte By bronze-starDukes at 2007-11-26 12:14:44
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

266 byte By bronze-starDukes at 2007-11-26 12:14:45
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

Trying to get a button to update Jtextarea on a frame..

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

character ? string ?

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

append to JtextArea on a panel

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

how to integrate jsp with WML

125 byte By bronze-starDukes at 2007-11-26 12:14:49
hai all,i have a doubt, how can i integrate WML with JSP, and how the WebServer recognizes this for processing.

Difference between CGI and Servlets

112 byte By bronze-starDukes at 2007-11-26 12:14:50
Hi,Can any one explain me wht is difference between CGI and Servlets.Thanks,Girish.K

stuck

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

what is the use of JIT compiler and Interpreter in JVM

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

About getting the values of Radio buttons in a Form to store in Database

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

<t:div visibleOnRole="true">

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

Javadoc, how to generate HTML with comment?

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

Source code exception location based on pstack

527 byte By bronze-starDukes at 2007-11-26 12:14:56
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

85 byte By bronze-starDukes at 2007-11-26 12:14:57
Transferring objects from one jsp to another jsp using request implicit object

what is the differance between Facelets and JSP?

158 byte By bronze-starDukes at 2007-11-26 12:14:58
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?

WinXP Petstore 2.0 Installation Error

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

Undo() function... need advice

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

Insert data from table component

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

How to call java class from servlet

297 byte By bronze-starDukes at 2007-11-26 12:15:03
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

Core java question

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

About JList

97 byte By bronze-starDukes at 2007-11-26 12:15:05
Hi,Can I show in JList more then one column? (I need list, not table).Thanks

Details on JSP error page include...

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

need help

466 byte By bronze-starDukes at 2007-11-26 12:15:07
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

95 byte By bronze-starDukes at 2007-11-26 12:15:08
transferring arraylist objects from one jsp to another jsp using request implicit object

Can a ResultSet be read dynamically?

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

How to add a container to another container?

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

for loop to get the largest number

118 byte By bronze-starDukes at 2007-11-26 12:15:11
hi therehow do i write a for loop to get the largest number in the loop..this loop is dynamic..thank you

How to get current ssl session id in rmi with ssl

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

Hardisc error

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

How to insert data into database. Please help me(Struggling Very much)

920 byte By bronze-starDukes at 2007-11-26 12:15:14
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,encoding String value?

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

Design issues

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

JSF OneMenu

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

exporting contents from a html table to Excel using hssf

234 byte By bronze-starDukes at 2007-11-26 12:15:22
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

About SIp proxy server development with java

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

how get

53 byte By bronze-starDukes at 2007-11-26 12:15:26
where i get driver java communication api full

File searching

216 byte By bronze-starDukes at 2007-11-26 12:15:27
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

Need help

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

GC overhead limit exceeded

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

java.rmi.Unmarshalexception error unmarshaling arguements; nested exception

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

h:dataTable Problem

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

Newbie SSL question

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