devxlogo

Tip Bank

Using the random_shuffle Algorithm

STL includes the random_shuffle() algorithm. As the name suggests, this algorithm randomly shuffles the elements of a sequence. It takes two arguments, the first of which is an iterator that

Image Won’t Display in ASP Page

Question: I am building a Web site that is hosted on Microsoft’s Personal Web Server. I have an Active Server Page (ASP) with some graphics on it. Everything works fine

What Are Java Server Pages?

Java Server Pages (JSP) are a complementary Java API to Java Servlets. They let you publish dynamic Web content. A JSP can contain HTML tags, scripts written in Java code,

What’s the Time Stamp of a File?

JDK 1.1.x’s java.io.File class has a lastModified():long method. You can use the value returned by lastModified method to create an instance of java.util.Date class and, thus, get a hold of

Variable Length Ordered Lists Using XSL

Question: I’m attempting to create an ordered list every time the Sequence attribute of a Para element has been set to ‘Begin’. The list should continue until it reaches a

Including XML Element in URL

Question: I have the XML structure: …….. I use this segment in an XSL template to create a list of hyperlinks that take me to the product page where [orderno]

Advantage of Using GET Method in ASP Forms

We all are familiar with disadvantages of GET method when compared to POST method. However, there is a real advantage of using GET when you are creating a link that

Right Place to Free up Resources

It is always recommend to free all object and variables at the end of a procedure. This can be done using the syntax MyVariable = Nothing. However, you should use