Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Search the Tips
Tip Bank > Java > Java APIs

Java APIs - Page 3

Enterprise JavaBeans
41-60 of 448     Previous     Next
Deprecate Old APIs
by Ruchi Dhar
Debugging Variables Made Easy
by Mark Buckley
At one time or another, all ASP progrmmers have used RESPONSE.WRITE to write out a variable on the screen, ensuring that the variable is passing correctly or has the correct value. Then, when the ...
Generate a Script-name Independent HTML Form
by Hitesh Dave
This tip is useful for large, server-side scripts containing lots of functions/procedures that generate HTML forms. ...
How to Unhook Subclassing when Windows is Ready
by Simon Bryan
Check if a Given String Is a Palindrome
by Nico Montenegro
This code checks if a given string is a palindrome. ...
Testing New Operations For Null
by Navneet Gupta
Beginning Java programmers sometimes test the results of a ...
List That Requires Items of the Same Class
by Rod Gammon
The benefits here are that the class can be set at runtime. You don't need to write a new list for every Class that needs listing.
Send All Your System Messages To File
by Kesav Kumar
Often, while developing a system you want to debug it using System.out.println or System.err.println. When development is over you would like to send all those messages to file. The easiest way ...
Creating an Object When its Class Is Unknown Before Runtime
by Nitin Garg
If you are writing an application in which you don't know the class of an object until runtime, then you cannot use the new operator to instantiate the object. This is because new does not take ...
Why You Shouldn
by Nitin Garg
There are fundamental incompatibilities between the ways AWT and Swing draw themselves. Swing classes are pure Java classes that look the same on all operating systems. AWT Java classes are not ...
Decoding the Application/x-www-form-urlencoded Data
by Sandeep Gain
The java.net.URLDecoder class has a static method to perform this decoding. The following code fragment resides in the doGet() or doPost() method of a servlet. The variable request is a javax.
The Protected Modifier
by Navneet Gupta
A protected feature of a class is available to all classes in the same package, just like a friendly feature. Moreover, a protected feature is available to all subclasses of the class that own ...
Making a Cookie Expire After a Specified Amount of Time
by Sandeep Gain
To specify an expiration time, you can use the setMaxTime(int) method of javax.servlet.http.Cookie. It takes as a parameter the number of seconds before the cookie will expire. For example, for a ...
System.out Vs. System.err
by Nitin Garg
System.out leads the output to the standard output stream (normally mapped to the console screen). System.err leads the output to the standard error stream (and, by default to the console, as ...
How to Read Client-Side Cookies From a Servlet
by Sandeep Gain
Reading cookies from a servlet is easy. You can gain access to any cookies sent by the browser from the javax.servlet.http.HttpServletRequest passed to the servlet's doGet, doPost, etc methods. ...
How to Write Underlined Text
by Shantanu Garg
Interestingly, underline is not a supported font style, i.e., you ...
Minimizing Flicker in Animation
by Nitin Garg
Flickering in animation is caused due to the default behavior ...
Setting the Default Memory Limit of the JVM
by Nitin Garg
To set the memory limits of the JVM in a Java application, run the program using following ...
Exchanging Data Between Java Applets and JavaScript
by Nitin Garg
Public methods and member variables of Java applets are visible to HTML documents. This makes the methods and variables can be accessed using JavaScript. The syntax for doing this is given ...
Viewing Error Outputs From Java Applets in IE
by Nitin Garg
The file Java/Javalog.txt in the Windows directory (i.e. C:\windows\Java.Javalog.txt for windows and C:\winnt\Java\Javalog.txt for NT) contains information for the last applet that was loaded by ...
41-60 of 448     Previous     Next
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date