Jason B Herald

Feed Rss

Archive for the ‘Java’ Category

Here is some code to do domain lookup in java (nslookup style): Hashtable env = new Hashtable(); env.put(“java.naming.factory.initial”, “com.sun.jndi.dns.DnsContextFactory”); DirContext … Learn more

So I took up the task of learning to use the JBoss Application server and while the server itself is … Learn more

<validator name=”required” class=”com.opensymphony.xwork2.validator.validators.RequiredFieldValidator”/> <validator name=”requiredstring” class=”com.opensymphony.xwork2.validator.validators.RequiredStringValidator”/> <validator name=”int” class=”com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator”/> <validator name=”long” class=”com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator”/> <validator name=”short” class=”com.opensymphony.xwork2.validator.validators.ShortRangeFieldValidator”/> <validator name=”double” class=”com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator”/> <validator name=”date” … Learn more

<field name=”ah.address.zip”> <field-validator type=”required”> <param name=”trim”>true</param> <message>Zip Code is required</message> </field-validator> <field-validator type=”regex”> <param name=”expression”><![CDATA[^\d{5}$]]></param> <message>Zip Code must be 5 … Learn more

Aop

09.27.2008, No Comments, AOP, Code, Java, by .

K so I was going to have an entire AOP example finished tonight but the family ended up stopping by … Learn more