Displaying keyword search results 21 - 30
Created by Dr. Xi on September 11, 2008 22:55:01 Last update: January 11, 2011 19:48:19
Created by James on January 04, 2011 16:22:43 Last update: January 05, 2011 13:43:06
Created by James on October 06, 2010 20:54:39 Last update: October 06, 2010 20:55:00
Created by James on September 10, 2010 23:01:14 Last update: September 10, 2010 23:01:14
By default, heights for jQuery UI tab panels expand or contract depending on the height of each tab. The code snippet here sets the height of all tabs to be equal to that of the container.
<!DOCTYPE html> <html> <head> <title>jQu...
Created by Fang on March 23, 2010 03:50:11 Last update: August 18, 2010 21:59:52
This is a simple web application with a single servlet and a single JSP page. It is intended to be a test bed for JSTL tags. You may want to store all syntax, rules, and exceptions in your head, but in my opinion nothing beats a simple test program that allows you play with it all you want. So here it is (build with Maven ). Prerequisites: Maven: http://maven.apache.org/ . You don't need any prior knowledge of Maven, but you need to install the binary. JBoss: http://jboss.org/jbossas/downloads/ , or Tomcat: http://tomcat.apache.org/ if you don't run the SQL tests. You need to know how to deploy a web application (shh! Don't tell your boss it's just copying a file to the deployment folder). Steps: The directory...
Created by James on June 30, 2010 19:04:45 Last update: July 03, 2010 21:24:33
/** * * AJAX IFRAME METHOD (AIM) * http...The above code only supports HTML responses. In order to support JSON responses, the above...
Created by James on June 30, 2010 20:14:28 Last update: July 03, 2010 18:41:12
The HTML page
<!DOCTYPE html> <html> <head> <title>jQu...Client Side Code
// called before upload submit function sta...Server Side Code Using Apache Commons FileUpload as example. Upload code (responds to fileUpload.do ):
final HttpSession session = httpServletRequest...Progress code (responds to uploadProgress.do ):
HttpSession session = httpServletRequest.getSe...
Created by James on June 24, 2010 22:04:19 Last update: June 24, 2010 22:04:19
Start with this page:
<!DOCTYPE html> <html> <head> <title>jQu...When you click "Submit", the form submits fine. Now turn the form to a jQuery dialog:
<head> <title>jQuery UI Dialog</title> ...When you click "Submit", the form no longer submits! Why? When you convert the contents of the form into a dialog, the form becomes empty! The "Submit" button is no longer associated with the form. Conclusion: you should always put the form tag inside the element you are converting to a dialog.
Created by Fang on April 01, 2010 22:24:58 Last update: April 02, 2010 02:49:38
In this note I'll show you how to create and package a JSP custom tag. The purpose of this tag is to display a random splash image for a home page, among a set of images. We should be able to add or delete candidate splash images from the WAR archive without the need to change the JSP. This is the intended use of the tag:
<%@ taglib uri="http://custom.tag.com/demo" prefix...In the above example you provide a set of images named splash*.png (e.g., splash1.png, spalsh2.png, ...), and the tag will pick a random one to display when the JSP is rendered. Let's get started. I'll use Maven for this purpose. Create the standard Maven directory structure
./pom.xml ./src ./src/main ./src/main/jav...pom.xml
package tagdemo; import java.util.ArrayList......
Created by James on March 16, 2010 16:55:51 Last update: March 16, 2010 19:29:28
I had this seemingly innocent code that did not work: