
Getting a Browser’s Name and Version in ASP
There are two ways to get the browser name and version in ASP. One is the client side method and other is the server side method. Given below is client-side method, which requests a server variable:
There are two ways to get the browser name and version in ASP. One is the client side method and other is the server side method. Given below is client-side method, which requests a server variable:
Beginning Java programmers sometimes test the results of a newoperation for a null. The code for this test looks like this: Integer i = new Integer (400); if (i == null) throw new NullPointerException(); This test is not wrong, but it is unnecessary. The two lines making up the if
The default clone() method, inherited from Object, makes a shallow copy of an object.But sometimes we require that all the objects whose references are present in an object are also actually copied into the new object created by the
Home users of Outlook must create a new form and make it the default form for their Inbox. This code removes any attachments with vbs in the filename on incoming mail and stops any outgoing mail with a vbs attachment and must be pasted into the new form using the
You can use this kind of bean to pass information from a servlet to a JSP page through a session variable. For Instance: DataBean myobj = new dataBean();myobj.setData(
This tip loads and removes any font. Loaded fonts can be listed by the common dialog control but not in the Windows Fonts folder. The advantage is it lets you use any special font at run time. This way, you don’t copy and paste your font file into the fonts
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. public class HomogenousList extends ArrayList{ private ArrayList data = new ArrayList(); private Class itemType; public HomogenousList(Class type) { itemType = type; } public void
This is similar to the