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
-
Trying to figure out how to 'Cancel' option on the e-mail hotmail page? Is it possible to display the arrows to "undo" on the page e-mail through Hotmail? Do not see it as a tool bar option? Thank you!
Hello
I'm sorry, but we cannot help with hotmail problems in these forums in response to vista
Please repost your question in hotmail in the hotmail link below forums
http://windowslivehelp.com/product.aspx?ProductID=1
ForumsConsult with Microsoft Certified Solutions____________________________________________Welcome to Windows Live Solution Center -
I send word pad * documents rtf in email
Screenshots to save on the word pad that woks fine,.
However if I attach it to an email, the screen shot does not display
and the Security window warning shows that this document contains code that your security settings do not allowHello
Because the problem is related to Windows live mail and it would be better suited to the Windows Live community. Please visit the link below to find a community that will provide the best support.
-
Question of blackBerry Smartphones on the configuration of the e-mail
Hey, new Member here.
My old Blackberry 8830 broke and I got a new. I am trying to set up my e-mail account again, but the only option in the e-mail configuration page is to set up the email to work with the company's server, and just trying to set up a personal gmail account. I don't remember having this problem the first time I put my email.
Any help is appreciated.
Thank you
In addition to what sgardne says, try
Go to OPTIONS > ADVANCED OPTIONS > APPLICATIONS > TABLE of ROUTING HOST > then press Menu (BlackBerry) > register NOW.
-
ERROR "need a page valid if considering hidden BP."
Every time I want to open a file in Muse is now saying this. My actions are only open a file - I tried different files.
Should I uninstall and reinstall? What can I do?
Thank you
Brooke
See the answer to Anna in this post on the forum need a page valid if we have hidden BP
-
Out with the new v.31.1.0, the: 2 September 2014 version of Thunderbird, I can email is no longer a list of recipients, getting the error msg: F & G Committee < ' F & G Committee' > is not a valid e-mail address because it is not the form user@host. You need to correct before sending the e-mail message. In earlier versions, the addresses of individual e-mail in the list (F & G Committee in this case) are automatically placed in as the e-mail is sent. Is there a solution to this problem?
Read this.
https://support.Mozilla.org/en-us/questions/1019019 -
I'm ads between the Inbox massage new message in the yahoo mail page
I'm getting a massage composed ads between the Inbox in yahoo mail home page began today 21/10/2011 at 10 am EST. How to remove ads in the plain on the left or all ads from my homepage from yahoo mail replay to [email protected]
If it's an image then right click o it then click on block image adblock plus
-
website valid W3C, initially no error reported by the developer toolbar. But by right clicking (giving the menu validation), the toolbar reports two errors: width and height. Despite the fact that each page is posted! The forum for the toolbar, it's supposed to be a browser error. So, how can it be fixed? I use FF 3.6.6
This has happened
Each time Firefox opened
is after upgrade to 3.5?
http://chrispederick.com/forums/viewtopic.php?PID=8239#p8239
You create a new profile and install only the extension Web Developer, as recommended Chris?
-
How can I fix the error on the email page. It doesn't let me open the e-mail.
Error on the email page
How can I fix the error on the email page. It doesn't let me open the e-mail. I can get there but nothing opehs I have windows xp... Please contact me at * address email is removed from the privacy * thanks for any helpAre we to guess which email page you are talking about? Could this be one of them?
View all Windows Live and Hotmail questions in the appropriate forum found here:
http://windowslivehelp.com/ -
When I click on answer the e-mail on hot mail, I just get a blank page! Help!
When I click to reply to the e-mail on hot mail I just get a white page... This just started recently?
How does this relate to the features of Windows Update?
You will find support for Windows Live Hotmail in these forums: http://windowslivehelp.com/forums.aspx?productid=1
-
as stated above: why the font SIZING to my Windows Mail email to send does NOT work? (E-mail created page).
It is the Vista operating system,
Would like to have the answer for this function works.
Also in tools | Options | Compose, is the box for the stationery checked?If it has started, a system restore is worth a try. -
How can I eliminate the photo appear on the Windows Mail page when I attach it on email?
Using Windows Vista. When I send a mail with attachment (file, photo, etc.), file or page, photos usually appear on the e-mail page,
with very large size. How can I eliminate to appear?The short answer is you can't. Like Outlook Express and many other mail clients, when you join a photo, a copy shows after the text of the message. If you set read all messages in plain text, you won't see the copy, but you can't control how the recipient will see it. The only sure way to not show is put ii in a zipped folder and attach that. -
display images in windows mail
Until recently, the option 'Show images' appeared at the top of some emails. My only option now is to show the e-mail on a web page. I would like to recover the original option.
The problem is that IE9 has been installed by Windows Update and its not not watch 'bar info'. See www.oehelp.com/OETips.aspx#15 for workarounds.
Steve
-
original title: printing email problem
When I go to print an e-mail I get a dialog box to say that "an error has occurred in the script on this page" and will not print and computer freezes and I have to restart. He just started this. Why and how to fix?
Windows Mail uses the IE print engine. You can print from IE? There was an earlier report that one could not print Windows mail after installing IE9. If you can print from IE, then see if uninstall IE9 (which was installed by default) fixes the problem.
Steve
-
I have a textfield that accepts an email address.
I want to check for validation as soon as the focus of the text is lost.
Check the settings should be:
1. for example,[email protected]. Someemail here is the local part of the address, which typically identifies the user.
2. the local part cannot contain spaces (except if it is cited, which is rare, as in ' robert mitchell"@yahoo.com").
3. the local party also cannot contain special characters various, as the following: () <> , ' @:; \\ [ ]. If anyone tries to create an e-mail address that looks like <(([[))>@yoursite.com I want to reject outright.
4. the local part can and often it contains characters period, as in [email protected], but the periods must be preceded and followed by alphanumeric characters (that is, I can't use an email address for example[email protected]).
5. the domain may contain more than one period, as in [email protected], but it cannot begin or end with a period (as in [email protected]). [Finally, the guidelines permit but discourage a domain literal, as in robert@[192.168.33.12].
These are the criteria I want to check in my validation code.
I used this area at the present time. A label of the E-mail: and a box to contain input (editfield)
I know there is a
EmailAddressEditField
But it has very limited validation. If someone can guide in each of these methods, I would be grateful.
//Add box next to field for containing input of email HorizontalFieldManager hfm2 = new HorizontalFieldManager(); LabelField lbl2 = new LabelField(" Email: "); final EditField TextField3 = new EditField() { protected void layout(int maxWidth, int maxHeight) { super.layout(Math.min(maxWidth, 300), Math.min(maxHeight, 20)); } protected void paint(Graphics g) { g.clear(); g.drawRect(0,0, 50, 50); int oldColor = g.getColor(); g.setColor(Color.WHITE); g.fillRect(0, 0, this.getPreferredWidth(), this.getPreferredHeight()); g.setColor(oldColor); g.drawRect(100, 100, 50, 50); super.paint(g); } }; TextField3.setBorder(BorderFactory.createRoundedBorder(new XYEdges(6,6,6,6))); hfm2.add(lbl2); hfm2.add(TextField3); add(hfm2);
Thank you.
Hi Tech
Try this function. may be useful for you.
public static boolean Emailval(String email) { if (email == null || email.length() == 0 || email.indexOf("@") == -1 || email.indexOf(" ") != -1) { return false; } int emailLenght = email.length(); int atPosition = email.indexOf("@"); String beforeAt = email.substring(0, atPosition); String afterAt = email.substring(atPosition + 1, emailLenght); if (beforeAt.length() == 0 || afterAt.length() == 0) { return false; } if (email.charAt(atPosition - 1) == '.') { return false; } if (email.charAt(atPosition + 1) == '.') { return false; } if (afterAt.indexOf(".") == -1) { return false; } char dotCh = 0; for (int i = 0; i < afterAt.length(); i++) { char ch = afterAt.charAt(i); if ((ch == 0x2e) && (ch == dotCh)) { return false; } dotCh = ch; } if (afterAt.indexOf("@") != -1) { return false; } for (int i = 0; i < afterAt.length(); i++) { char ch = afterAt.charAt(i); if (!((ch >= 0x30 && ch <= 0x39) || (ch >= 0x41 && ch <= 0x5a) || (ch >= 0x61 && ch <= 0x7a) || (ch == 0x2e) || (ch == 0x2d) || (ch == 0x5f))) { return false; } if ((ch == 0x2e) && (ch == dotCh)) { return false; } dotCh = ch; } dotCh = 0; for (int i = 0; i < beforeAt.length(); i++) { char ch = beforeAt.charAt(i); if (!((ch >= 0x30 && ch <= 0x39) || (ch >= 0x41 && ch <= 0x5a) || (ch >= 0x61 && ch <= 0x7a) || (ch == 0x2e) || (ch == 0x2d) || (ch == 0x5f))) { return false; } if ((ch == 0x2e) && (ch == dotCh)) { return false; } dotCh = ch; } return true; }
Thank you
Pawan
(([[))>
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?
-
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