Advertisement

250 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Java Solutions: 126 - 150 of 4231
null
I would like to use a properties file to configure log4j.  I am wondering how I need to edit the log4j.properties file to accomplish these goals below: 1. Root logger is set to WARN logging...
I'm creating a JFrame(parent) which in turn creates another JFrame(child). Until the child frame is active the parent frame should be disabled i.e it should be modal.
Hi, I want to insert a simple record in the DB2, programmatically. Here's the code which does it. java.util.Calendar cal = new java.util.GregorianCalendar();                java.util.Date now = cal.g...
An error, "No CurrentSessionContext configured",  occured while executing the following method Public static Session currentSession() { try {    System.out.println("HibernateUtil.curre...
I have a many to many relationship between groups and users that I have mapped as shown at the bottom of this post. I now would like to add an additional column to the user_group database, ...
Given the following xjc generated code, i am trying to set the Validity to todaysDate ! I need to use XMLGregorianCalendar to do this, but i just cannot get it to work. I have tried XML...
Hi experts, I have a table, which has a start and end date, and i want to query, using Hibernate's query language, whether a given day falls between these two SQL dates.  Can anyone help me...
i have an application that is running against an oracle10g database.  when i try to perform certain operations in the application, it comes back with the error: ORA-01795: maximum number of...
dear experts,   anyone have the source code to convert infix to prefix in java by using stack method (linked list). i found a lot is infix to postfix but none infix to prefix. please help. th...
previously i used to remote debug using jdeveloper and jboss;now when i try  to remote debug with eclipse3.1.2 and jboss; am getting failed to connect to remote VM.connection refused.i followe...
I use hibernate to connect Oracle data base. The program got error while connecting to Oracle database. I run from debugger and found out the SessionFactoryName is null. Is it causing the c...
wsdl 2 java if i ahve a link to wsdl how do i generate allt eh client stubs and requried classes using wsdl 2 java tool I downloded axis 2 and used that tool but i just see only a few of the s...
if i have a byte array: byte[] bytes = new byte[2]; bytes[0] = 'a'; bytes[1] = '1; how do you print it out in hex form?
I have following in JSP: <s:url id="autoex" action="checkLoginName">         <s:param name="loginname" id="hidden1" value="tobeDecided" />     </s:url> Then I have button to invoke this ...
after downloading the samples and building it I am getting the below error Severity and Description          Path                  Resource     Location     Creation Time   ID A cycle was detected in the bu...
I'm having a little trouble on what I consider to be an easy problem.  I'm trying to call a method in a bean class that is a "non" getter/setter method, but for the life of me haven't been abl...
I am coding a JSP (process.jsp) containing scriplets to accept an request in xml format (via http post) from another server.  I am currently simulating the client side by using jsp also (sendr...
Hi Experts, Can you provide me simple java code on how to upload a file using Spring Framework? I have refer to the example from Internet. But still not able to upload. Please help. ...
I need to create a jar file from eclipse tool. I have a ant file to create  the jar, but in this case I need to manually create the jar file. The and file looks as below <echo message="Gene...
Hi all, How to Iterate a MAP in JSP in Struts2 framework. My  map looks like ths Map<QuestionObject,List<Answer>> NOTE:QuestionObject is a serializable object with setter and getters. Wh...
We keep getting the following error randomly on one of the servers. I did make sure that the hibernate.cfg.xml is at the proper location. Also, the following error can be resolved if I bounce...
Hi,  I'm using Java JDBC Statement to do select/insert/update data.  All my stmt.executeQuery()/stmt.executeUpdate() are executed  only once. (not in a loop) I have around 2000 of these St...
i am getting exception in this while calling doDispatcher method;how to rectify this problem; 05/01/08 12:15:58 java.lang.IllegalStateException: Response has already been committed 05/01/0...
Hi I'm new to Java and I'm trying to convert an input string (ie from user and not a file) from UTF8 to its ascii representation. I've see the java documentation regarding the meathod toAscii...
When connecting to using Type 1 JDBC drivers, we do something like below Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:AccessConn", "", ""); ...