Anil's Blog is Best Viewed on GOOGLE CHROME

Wednesday, April 29, 2009

TO Find @ in column

if (pageContext.getParameter("item1") != null)
OAViewObject oaviewobject1 = (OAViewObject)am.findViewObject("NewEmployeeVO1");

if (oaviewobject1 != null)
oaviewobject1.reset(); //New line added; //new line added
OARow row = (OARow)oaviewobject1.getCurrentRow();

String email = row.getAttribute("Attribute1")+"";
System.out.println("Attribute1"+ email);
if( email.indexOf("@")<0)
throw new OAException("Invalid Email Entered", OAException.ERROR) ;

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.