724 byte By
mtndood at 2007-9-26 2:01:04
Im experiementing with various examples of parsing an XML document and adapting it to a TreeModel for use in a JTree component. Im looking at some of the newer JAXP API's like org.w3c.dom.traversal Interface DocumentTraversal. Im wondering about depth first and pre-order traversal.What do ...
1739 byte By
m_ansram at 2007-9-26 2:01:19
Hi Friends, I am using the MQ server fV 5.2 or windows 2000. I am trying to publish a message to a topic using the following code com.ibm.mq.jms.MQTopicConnectionFactory tcf = new ...
484 byte By
rdf2 at 2007-9-26 2:01:27
Hi,Is there anyway for one to keeping an smtp connection alive? Every mail I send via smtp sends a QUIT at the end which essentially close the connection on the smtp relay.Thus when I send a new mail it has to re-establish a connection to the mail server every time, which can take some ...
143 byte By
tnr009 at 2007-9-26 2:02:21
I want to separate the XML contents so that I can create lists. How do I create a dropdown list based on the XML contents?
I have a session bean S with a method foo1(). S.foo1() calls an entity bean A (which has multiple child entity beans of type B) twice via its method bar() which creates a new child entity B. In other words, you call the session bean which calls the entity bean twice and tells it each time to ...
HiI want to generate a report based on certain criteria. The values entered by the user in the text boxes of the HTML form needs to be validated from the database table. Should I validate all the fields at once or should I validate one field at a time. How does it effect the performance. I am ...
232 byte By
datou_yu at 2007-9-26 2:02:56
when i use jaxp parse a xml dcument, for every node, there is always a empty child node which has a "#text" node type, emptyl node name and node value. could someone can tell me what's this node for? thanks your help!
588 byte By
kbandela at 2007-9-26 2:03:13
Hi All,ENIVRONMENT:OS: Windows NT 4.0 Apache Web Server, Macromedia Cold Fusion Server 5,Java JDK 1.3.2, JAXP 1.1PROBLEM:I have a Java class in which i am parsing an XML string(using SAX parser) and doing some other stuff. All is fine when I run at the command prompt. But it doesnt work when ...
760 byte By
rajeshkz at 2007-9-26 2:03:42
Hi, I'm trying to get the encoding of an xml file with the following code.- org.xml.sax.InputSource is = new InputSource( new FileInputStream( new File (filename ) )); System.out.println( "encoding for "+ filename + " is " + is.getEncoding() );-Input xml file is <?xml version="1.0" ...
I am trying to do the tutorials with j2sdkee1.2.1 intalled on Windows 98. While I tried to run compileEJB.bat file for Converter Application, I am getting the error on the console- " Bad command or file name".I feel there is no problem with my installation as I am able to start J2EE server and ...
Hi -I was wondering about an alternate way to connect to Oracle from an entity bean... In the J2EE examples for entity beans, the context is queried to find the datasourceand then the datasource is queried to geta connection.To replace CLOUDSCAPE with ORACLE in thereference implementation, I ...
82 byte By
tomym at 2007-9-26 2:05:34
Can anyone tell me how to send SMS using JavaMail API.Thanks
421 byte By
karank at 2007-9-26 2:05:37
Can any one tell me where can I get the source code for the sun.jdbc.odbc.JdbcOdbcDriver class file.Actually, I am working on IBM Websphere and I need to access an MSAccess database. When I try to configure my Appln. in Websphere to work with MSAccess database, it asks for the driver jar ...
320 byte By
isam_hk at 2007-9-26 2:05:54
Does anyone kindly to send me the sample codes for sending & receiving e-mail through smtp by javamail api?Since I'm new in javamail & hv no idea where to start. But I think I can amend the sample code for my own use rather than start from scratch. THanks! ...
253 byte By
xerokool at 2007-9-26 2:06:23
hi alli got a rather simple question here.how do u construct a DocType to look like the following:<!DOCTYPE svg SYSTEM " http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">thanks :)
433 byte By
pokkkkk at 2007-9-26 2:07:05
I wanted to declare an interface in my Binding-Schema.These interface should have a Getter-Methode that returns a class called PvXMLElementarvertrag. In my DTD this element hat obviously subelements and therefore it is a class. But the generated Interface returns a String. Also a Declaration in ...
hello ppl, i am relatively new to ejb. i am developing an entity bean. in the findbyprimarykey method i am incrementing a counter.i have written a function which returns the value of this conter. this is a remote method. but i am unable to get the correct value of the counter.pls help.mail me ...
329 byte By
rohit29 at 2007-9-26 2:08:36
Hi all.I have a jsp which displays a set of results in a tablular form....my clients now want me to include a button in this jsp page on clicking which i will be able to export the entire data from the displayed page to a text file can anyone suggest me as to how to go about it...thanks ...
208 byte By
crivers1 at 2007-9-26 2:08:39
Where can I get the current version of SAX? I have some of the source, but am interested in getting the complete jar. If anyone can point me in the right direction I would appreciate it. Thanks.
536 byte By
hairsinl at 2007-9-26 2:08:47
HiI need to call JNI from an EJB. I know that this cannot be done directly as it would break the EJB programming restrictions. I understand that you need to create a standalone Java program (outside the container), which can use JNI to call C functions in a dll, and that the EJB can look up the ...
1315 byte By
redjat at 2007-9-26 2:09:00
hi, i performed some test trying to select one node in a document with 10000 nodes (<name first="ssss" last="sss">) and the test said:[bold]Using xpath[/bold]String xpath = "/doc/name[@first=\"Rodrigo\"]";Node node = XPathAPI.selectSingleNode(doc, xpath); [bold]it delay like 1970 ...
911 byte By
tengj6 at 2007-9-26 2:10:47
I have tried j2ee1.3.1. I followed the tutorial, deployed the first example--the converter. I have no problem to run the ConverterClient from the command line. But when I tried to run the jsp client, it gave me the following ...
1017 byte By
DVijay at 2007-9-26 2:10:59
Hi, I've the following situation, I have a stateless session bean, S1 and, Two entity beans E1 and E2.E1 has a reference (a foreign key column) to the primary key of E2.Now, in the remote method of S1, I do the following steps, 1. set the E2 reference in E1 as null (this would be persisted to ...
351 byte By
spatemp at 2007-9-26 2:11:18
I am trying to run the PETSTORE example and I have couple of questions. 1) I think I need J2EE app server to run this. where do I get it from. What link. 2) I have JBOSS and ANT running on my computer. Is It easy to configure/run this in JBOSS environment. I am sort of new to all ...
i am a new Java Programmer for July, everyday i programming lots of code. but there is always errors occured in my program, what is the reasonS? who can help me? Do i need a tutor for learning Java Programming language?
Hi I am trying to send mail using Javamail api using web server as wweblogic 6 on soalris and client browser on windows but it throws exception File Not Found.Following is the code:/** Create the JavaMail session **/ Properties properties = System.getProperties(); ...
When I get a BodyPart that's an instance of com.sun.mail.util.SharedByteArrayInputStream, how do I retrieve the text from this stream? Treating it as an InputStream and reading the bytes into a buffer yeilds what looks like gibberish. Anybody know how to do this?Any help would be ...
166 byte By
tkokchi at 2007-9-26 2:13:11
Hi all, I am trying to locate the deployment descriptors of the examples in J2EETutorial. Can anyone enlighten of their whereabouts?Best Regards.
401 byte By
jinnjee at 2007-9-26 2:14:22
hey ejb gurusi am looking for some info on how clustering support is actually implemented in application servers? i mean to say that, for instance, we have a bare-bones application server and if we want to support clustering in that server, how do we go about doing it? any resources which talk ...
In Java RMI,it allows dynamic class loading,that is when the stub and interface class files are modified by the server,the client side can download the updated stub and inteface classes.As the remote interface of EJB extends Javax.ejb.EJBObject which in turn extends java.rmi.remote.Also the ...
795 byte By
1884133 at 2007-9-26 2:16:16
How do I force a SAX parser to use a fixed DTD (and ignore any DOCTYPE decl. in the xml doc) ?I have been searching Java forums, apache website, the web, and SAX APIs for a way to do this but without luck. The usage is that I want to validate with a DTD located on the server, and wish to set my ...
844 byte By
6tr6tr at 2007-9-26 2:16:19
I am trying a Wrox Books Example (Chapter 2 in Professional Java XML), and if I do this: java BookMainI get this error: Exception in thread "main" java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524) at ...
364 byte By
wma453 at 2007-9-26 2:16:34
I'm getting Exception in thread "main" java.lang.NoclassDefFound : org/xml/sax/helpers/DefaultHandlers.xalan.jar,jaxp.jar, and crimson.jar are in c:\jdk1.3.3\jre\lib\extI tried creating a CLASSPATH environment variable but that didn't work either. Can any one give me a procedure to follow ...
442 byte By
kukunoya at 2007-9-26 2:17:19
Hello All,I have an xml file, and I'm reading data from it. I give this data directly as the text to JTextPanes and JLabels. If I am able to specify the HTML tags in the XML file it will be of great help to provide formatting(bold) and wrapping functions. But the problem I'm facing right now ...
1536 byte By
xerokool at 2007-9-26 2:17:39
hi all,i wanted to know how to get the attribute 'width' from the following tag:<svg width="382" height="966" viewBox="0 0 382 966" xml:space="preserve">also, i have an error(Exception in thread "main" java.lang.NoSuchMethodError: main ) when i tried to run my app even though i dont ...
790 byte By
dewangs at 2007-9-26 2:17:57
Hi all,My plans were to use XML, but I am now reconsidering the decision. The data to be stored is users for a Chat server.1. Concurrent access - With a database, there are locks and provisions for simultaneous access. With XML, I would have to syncronise my methods since my app is ...
Hello,Does anybody know how to propagate the SecurityContext between EJB and JSP so that when I login in my JSP page the user will be after recognized in my EJB system ?ThanksFrancesco
Hi,From a java client, i am calling a business method from a ejb. the home and remote interface object is sucessfully received at the client. but at the time of calling the remote business method the following error occurs.java.rmi.RemoteException: ; nested exception ...
2946 byte By
kttan at 2007-9-26 2:18:37
I am creating a FeedBack form, which loads the dynamic data from a XML file.In my XSL file I created some <INPUT>s and one <TEXTAREA>. The contents of these fields will be from the XML files.When I process these two files, all <INPUT> fields display the contents successfully ...
509 byte By
sbpyari at 2007-9-26 2:18:46
hi Guys.. I created a BMP bean to a tanle that contains LOB fields..I am using OC4j server for testing the beans.. while creating a bean i am getting an exception java.sql.SQLException: ORA-22292: Cannot open a LOB in read-write mode without a transactionORA-06512: at "SYS.DBMS_LOB", line ...
If I send a message in HTML message.setDataHandler(new DataHandler(htmlTemplate, "text/html")); it is still being received in text through some web interface mail browsers (e.g lineone). Also when hotmail receives it two copies are displayed.What can I do to only allow one copy to be displayed ...
436 byte By
ccyaa at 2007-9-26 2:19:03
i already check the classpath , but still get the following error :org.apache.jasper.JasperException: Unable to compile class for JSPC:\jsp\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fxml_0002fmessage_0002ejspmessage_jsp_0.java:81: Attempt to reference method getFirstChild in interface ...
hi all, please tell me how to create a new XML document through JAVA with DOM API. please give me full information and coding for this. thanks & regards Amit Bansal
I am developing a mail portal using java mailapi iam finding it difficult to to give visual clueof recent,unread,deleted messageswhen i open the folder in read write mode all the recent messages flag is set to seen can any body give me a posiible solution or some online tutorials ...
556 byte By
deragon at 2007-9-26 2:19:50
Greetings. I started using Jaxp 1.1 last week. I noticed that the functions DocumentBuilder.parse() only accept java.io.InputStream. Can someone explain why java.io.InputStream has been used instead of java.io.Reader? I thought that we should move to java.io.Reader gradually. I have to use a ...
283 byte By
Somrajs at 2007-9-26 2:20:13
Hi All,I am writing a small application in IBM MQSeries using Java.My objective is to read from a queue whenever a newmessage written into it.Any help in this aspect would be of great help.....Thanx in advance....Sanjay.
423 byte By
JavaDen at 2007-9-26 2:20:48
We have to do this portal for a company that has stocks and news that users setup like on yahoo or msnNow the question is how do we get this news thru JMS or RMI, basically we need to build some kind of service that runs all the time and connects to the news and updates the database if the news ...
2583 byte By
neelimap at 2007-9-26 2:20:54
Hello,Please assit me.....I need a rush help. Stuck! Stuck!!!!I am reading a text file which has multiple headers(identified in the first 2 pos as '//'), followed by '01' records which are details. It would look like//nbr....01address....01city.....01zip....//name...(continues).My jave ...
631 byte By
squaloD at 2007-9-26 2:20:57
I'm using j2ee with an InstantDB data base.I take connections from a datasource properly registered.... When I start the j2ee server, it reads informations from the DB and appears to work properly, but if I make changes to the DB tables from another application, these changes are not visible ...
1075 byte By
Anakha_ at 2007-9-26 2:21:36
I've been trying to figure out the best way, if it's even possible, to persist a socket connection in my session bean and I could use some help. :-)Basically, when my bean is first called, it opens a socket connection to an outside server. Then it performs an operation by sending a command ...