The e-mail on page validation irec external

Hello

I want to validate the format of the e-mail entered the page address external iRecruitment. I tried extending the controller of the page and in the PFR, I wrote the code. But it does not work.



My ExtendedCO has the following code-



package xxbr.oracle.apps.xxbr.PriIrc.server;

Import oracle.apps.irc.candidateSelfService.webui.RegisterCO;

Import oracle.apps.fnd.framework.OAViewObject;

Import oracle.apps.fnd.framework.webui.OAPageContext;

Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

Import oracle.apps.fnd.framework.OAException;

import oracle.apps.fnd .framework. OAAp plicationModule ;

import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextIn putBean;

Import oracle.apps.fnd.framework.server.OADBTransaction;

Import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;

import java.sql.CallableStateme nt;

import java.sql.SQLException;

import java.sql.Types;

public class ExtendedRegiste rCO extends RegisterCO

{

Public Sub processFormRequ EST (OAPageConte oapagecontext, OAWebBean oawebbean xt)

{

String s = (String) oapagec ontext.getParam eter("Submit");

OAMessageTextIn putBean = EmailCheck (OAMessageTextIn putBean) oawebbean.findChildRecursive ("Email");

If (s.equals ("prese it") & & EmailCheck.getV alue (oapagecont ext)! = null)

{

String Email = EmailCheck.getV alue (oapagecont ext) m:System.NET.SocketAddress.ToString ();

String outParamValue;

OADBTransaction txn = oapagecontext.g etApplicationMo dule (oawebbean) .getOADBTransac tion();

CallableStateme cs = txn.createCallableStateme nt nt ("start: 1: = XXBR_CHECK_EMAI L(:2);") End; ",1) ;

VR;

{

cs.registerOutP arameter (1, Types.VARCHAR);

cs.setString (2, Email);

CS. Execute();

outParamValue = cs.getString (1) ;

CS. Close();

}

catch (SQLException sqle)

{

launch OAException.wra pperException (s ELQ);

}

If (outParamValue. ) is equal to ("FAILURE " ""))

{

throw new OAException (Ema he + "is in the wrong format.) It should be in the format - [email protected] . Please correct. (' + outParamVa read OAException.ERR OR);

}

}

super.processFo rmRequest (oapag digit, oawebbean);

}

}

==================================================================================================================

pl/sql code is-

FUNCTION to CREATE or REPLACE xxbr_check_emai l (l_user_name in VARCHAR)

RETURN VARCHAR IS

l_dot_pos NUMBER;

l_at_pos NUMBER;

l_str_length NUMBER;

BEGIN

l_dot_pos: = instr (l_user_na me )

,'.');

l_at_pos: = instr (l_user_na me )

,'@');

l_str_length: = length (l_user_n soul);

IF ((l_dot_pos = 0) OR (l_at_pos = 0) OR (l_dot_pos = l_at_pos + 1) OR)

(l_at_pos = 1) OR (l_at_pos = l_str_length) OR

(l_dot_pos = l_str_length))

THEN

RETURN "FAILED";

END IF;

IF instr (substr (l_ user_name ))

l_at_pos)

,'.') = 0

THEN

RETURN "FAILED";

END IF;

RETURN "SUCCESS";

END xxbr_check_email;

===============================================================================================

have you checked this note: Validation of the email in the external candidates (Doc ID 1182533.1) registration process

Thank you

Vinoth

Tags: Oracle Applications

Similar Questions

Maybe you are looking for

  • Toshiba virtual Store account Reset - 34099

    Hello Reset the account 34099 Thank you

  • Not able to accommodate my WCF through IIS application.

    I am new to IIS and WCF. So please help me about these things. I'm trying to convey what I understand. I have the version of WCF file MSPServer.exe application which I'm running Services in the Windows Server 2008 machine. There is a MSPServer.exe.co

  • trouble in the new replacement hard drive

    I'm having a problem on my laptop model HPG61 - 327CL (64-bit) operating system windows 7, my hard lecteur_disque is damaged and the collapse. then change a new hard drive now, I noticed I do not did a recovery discs before the old hard drive collaps

  • Computer laptop V3-371 solid state drive

    I need to remove this SSD and copies the data. Laptop is dead. I have various caddies/adapters, but not for this little beast of PCB. Anyone know where I can get a SATA/USB adapter or even how it's called pls?

  • icons will drain

    OK, so I'm browsing the net on google chrome and I pulled out of it and on my icons the desktop a few GB empty and when I try to open it tells me to open it with another program. So when I try to open google chrome it is said to open it with another