I'm having troubles getting JavaMail to work with authentication, using an outside SMTP-server. The server is not the server of my ISP (the one which connects me to the internet now). I can us...
Hi.
I need a method to convert milimeter to pixel.
I'm using the iText to generate pdf'docs. When I set the document size I need a com.lowagie.text.Rectangle Object.
The Rectangle takes f...
Hi, im writing my first ever java application which interacts with a database (and its not going well), i am using MySQL as the DBMS...
When i run my connection code i get the following exc...
The application being developed uses Java, Hibernate and stored procedure in MS SQL Server 2005. I can invoke the stored procedure through hibernate and process results successfully. However t...
Hi all,
I've got javax.xml.bind.JAXBException: "jaxb.Foo" doesnt contain ObjectFactory.class or jaxb.index
I am trying to do an unmarshall with JaxB, I have the following:
Any idea?
Hi,
I want to convert date in IST format to PST format and vice versa, irrespective of PC's current time zone. I am able to do that but the result is dependent on my PC time zone. Please le...
Hi, there!
I am using hibernate and spring 2, and its UI framework is struts2.
I have an Item class, it has association with User and Category. User could sell item, so item has an fore...
My HQL needs to compare the date
select a.id.application_no , b.id.applicPcode
from dirHibernate.AccountApplication as b
,dirHibernate.AccountDtl as p
where ...
Why doesn't Java take default parameter values?
I don't understand why they would leave this out of the language.
I know you can accomplish the same thing by overloading and calling the ...
I'm trying to generate a signature in one server (Machine I) and verify the signature in the other(Machine II).
An application in Mach II would call the login application in Mach I and veri...
Using Java, I would like to read a plain text file line by line and populate an array, each line of the file representing an item in the array. I have read several solutions here and online, ...
I am looking for java code that can convert an EBCDIC binary file in to ASCII. This EBCDIC file also has some packed data fields, the program should be able to unpack these fields as well, and...
I have a java.util.Date object stored in one of my objects and I want to insert it into a MS Access database.
patient.getPtDOB() returns a java.util.Date object. I initially thought that I...
I want to execute a SQL UPDATE using createSQLQuery. However, when I run executeUpate() it gives the exception:
java.lang.RuntimeException: java.lang.UnsupportedOperationException: Update...
Hi,
I am new to Java Servlets programming.I am using Windows platform,Oracle HTTP Server(Servlet enabled).Can u please give me code to how to upload the images from a web Form to a server di...
Hello,
I'm using DB2 and jsp. I want to generate an excel file or csv for each table, so every entry in the table will be in the excel or .csv file.
basically, i only need to do a sele...
int input = Keyboard.readInt(); //get an input form user
DataOutputStream out = new DataOutputStream(new FileOutputStream("input.txt"));
out.writeInt(input);
out.close();
but when i o...
Hi all,
Everytime JVM in my machine is getting crashed when I am trying run any java program (e.g. eclipse, ant script etc.). The following trace is logged in a log file each time:
#
#...
I have a friend that is also taking a class and is having a problem with the size of his JButtons. All he wants to do is increase the width of the buttons so the lable can fix inside the butto...
I am building this reusable component for a project it's basically a panel that retains all the search criteria and retrieves data to my tables for display to the user.
The problem is that ...
I've inherited a highly customised and long-in-the-tooth Struts-based application. I ported this in short order from Weblogic 5.1 + Solaris VM Solaris JDK1.2 + Oracle 8 + load balancing (share...
Hello
I want to convert a Hex String to String.
Example input:
41424344
Example output:
ABCD
Thanks from now!
Hello there,
I have a JTable with database records in it.when i add a new record i want to reload the table dynamically to show the new record,instead of closing and opening the frame aga...
Hi,
I'm trying to create an image for my company's developers so they can simply download it and have Eclipse +Tomcat + Plugins etc - the whole build environment ready to use straight 'out of...
My program is giving this error
Exception in thread "main" java.util.MissingResourceException: Can't find bundle
for base name com.www.ldap.LdResources, locale en_US
at java.util...