This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.andrewspencer.util; | |
import sun.text.Normalizer; // java.text.Normalizer in 1.6 | |
/** | |
* Here's how to remove accents in Java 1.5. | |
* NB Doesn't separate ligatures. | |
*/ | |
// WARNING Uses unofficial Sun classes, so JVM-dependent. | |
// Normalizer became standard in Java 1.6, though. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.andrewspencer.gist.multiple-checkboxes-struts; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import javax.servlet.http.HttpServletRequest; | |
import org.apache.struts.action.ActionForm; | |
import org.apache.struts.action.ActionMapping; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import org.dbunit.DatabaseUnitException; | |
import org.dbunit.assertion.DbUnitAssert; | |
import org.dbunit.dataset.IDataSet; | |
import org.dbunit.dataset.ITable; | |
import org.dbunit.dataset.filter.DefaultColumnFilter; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.Reader; | |
import java.sql.SQLException; | |
import javax.annotation.Resource; | |
import org.dbunit.DefaultDatabaseTester; | |
import org.dbunit.IDatabaseTester; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.andrewspencer.util.hibernate; | |
import java.io.Serializable; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.hibernate.HibernateException; |