Deployed Captcha Code on webcenter spaces using custom task flow

Dear,

I use Captcha Code, the new workflow and the fragment to be deployed on webcenter spaces, the code works correctly when am run of JDeveloper 11.1.1.4.0, but when I deploy him on spaces webcenter 11.1.1.5 version and call this webcenter flow task space image appears not (actually its code Servlet).

as mentioned on Oracle PDF (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html)-> How to use Captcha with ADF Faces and Oracle ADF

Add Servlet in web.xml, then do Managed Bean Code (add in faces-config. (XML), then create a new task workflow and call the method that run the managed Bean of ADF task flow Page.

1 - Servlet in web.xml:
< servlet >
< name servlet - > CaptchaServlet < / servlet-name >
> the servlet class < nl.captcha.servlet.SimpleCaptchaServlet < / servlet-class >
< init-param >
width of < param-name > < / param-name >
< param-value > 250 < / param-value >
< / init-param >
< init-param >
height of < param-name > < / param-name >
< param-value > 75 < / param-value >
< / init-param >
< / servlet >
< servlet-mapping >
< name servlet - > CaptchaServlet < / servlet-name >
captchaservlet.jpg < url-pattern > < / url-pattern >
< / servlet-mapping >

2 - managed Bean:
public void callMethod() {}

FacesContext fctx = FacesContext.getCurrentInstance ();
ExternalContext ectx = fctx.getExternalContext ();
HttpServletRequest request = (HttpServletRequest) ectx.getRequest ();
CAPTCHA captcha (Captcha) = ectx.getSessionMap () .get (Captcha.NAME);
try {}
request.setCharacterEncoding("UTF-8");
} catch (UnsupportedEncodingException e) {}
bad luck - but ignore
System.out.println ("unsupported UTF!");
}
String response = (String) ectx.getRequestMap () .get ("bestGuess");
If (response! = null & & captcha.isCorrect (answer)) {}
sendMail();
SendMail_ToExternal();

} else {}
fctx.addMessage (null,
new FacesMessage (FacesMessage.SEVERITY_ERROR, "Please enter the number shown in the picture",
null));
}

}


I'm download the JAR of Captcha of Oracle: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html, Captcha download a use as task flow to deploy on webcenter spaces, but as I told you when I run this code of JDeveloper works correctly, but the problem when I deploy him on webcenter spaces code Servlet with image does not appear. I want to know if the servlet working with deployed code task flow on the webcenter spaces, or not?

Please advise...

Thank you

Did you add the configuration of servlet to WebCenter spaces? See the documentation for steps to do this: http://docs.oracle.com/cd/E25054_01/webcenter.1111/e12405/wcadm_app_config_files.htm#CHDJCCBI

Tags: Fusion Middleware

Similar Questions

  • Cannot use Custom Task Flow on page JSPX

    Hello

    I created streams of custom tasks using the ADF BC. The workflow has its own DataBindings.cpx file. When I add this workflow to my request, at run time, the server survey error on duplicates of files DataBindings.cpx (one file available in the workflow packed) and someone else present in consumer demand.

    How can I solve this problem? Appreciate your help on this.

    Thanks, Mihir

    Mihir,
    Please make sure that the two projects you speak (workflow and consumption) follow different package names.

  • Customizing task spaces WebCenter flows (Nov. 2010)

    To all those who know:

    I tried to reach a customization of the workflow WebCenter spaces and have been using this white paper (March 2010) as a reference:

    http://www.Oracle.com/technetwork/middleware/WebCenter/OWCs-ps1-custom-taskflow-WP-129410.PDF

    In the white paper, I'm following with 'prepare WebCenter spaces for customization of task flow:

    ---
    To customize the workflow in WebCenter spaces:
    1. download the Oracle Technology Network (http://www.oracle.com/technology/products/webcenter/files/oracle.webcenter.customization_application.zip) oracle.webcenter.customization_application.zip and extract the content locally.

    2. in JDeveloper, open the SpacesTaskflowCustomization.jws file.
    ---

    Sounds simple... but the file "oracle.webcenter.customization_application.zip" seems to have disappeared from the Oracle.com website: I get redirected to the WebCenter product page when you try to access the URL provided in the zip file.

    This raises two questions:

    (a) is the method described in the book 'valid' - in other words, do I have to download the customization_application zip file and...

    (b) If Yes, where can I get the file? (I've tried a number of strings to search in the box 'search', not to mention "Custom Task flows", the name of the ZIP file, etc. - with no luck).

    Any help is appreciated! (Thanks!)

    http://www.Oracle.com/technetwork/middleware/WebCenter/OWCs-R11-extend-spaces-WP-132596.PDF should have everything you need including links to the files correct zip for your version of spaces.

  • Profile picture to display in a Taskflow custom in WebCenter spaces.

    Hello

    I am trying to get a picture of a user profile in WebCenter spaces and post it in a custom taskflow which is developed in JDeveloper 11.1.1.6 and deployed through shared libraries.

    I don't understand how to do it. Please any ideas on this subject.

    Kind regards.

    The PeopleConnection has a data control that provides the full users profile information.
    Take a look at JDev in the resource Palette. My catalogs and open catalogs WebCenter Services. He has a record of data control. You find the control of profile data. Right-click on it and select Add to project.
    Are you able to use the data connections of people on your taskflow control.

    The control of profile data, you must use the getProfile method. It takes a string that is the username of the user you want to get the information from.
    As a return, you get the complete object for the profile. This object has a getPhoto() method, which will return the image of the user.

  • use different JADs to deploy a COD with different properties

    I've never had different JADs to work for the Web site deployment.

    This is the problem, I use getAppProperty MIDLET to get a property.

    I create a file myMidlet.COD with myMidlet.jad which has a property of the HOST.

    I have ten different JADs with different HOST property on a Web site for

    a myMidlet.COD that will be deployed. The midelt deploys nicely on the Blackberry

    but the HOST is the same as that used to build cod. They gave me a code snippet and

    added some debug statements to see what this thing of Module

    public class mybbProperty {}
    CodeModuleGroup [] allGroups;
    CodeModuleGroup myGroup = null;
    String moduleName;
    Boolean flag = true;

    public void mybbProperty() {}
    }

    public void init() {}
    versForm.debugtext += '\n init';

    AllGroups [CodeModuleGroup] is CodeModuleGroupManager.loadAll ();.
    versForm.debugtext += "\ngroup;
    moduleName = ApplicationDescriptor.currentApplicationDescriptor () .getModuleName ();
    versForm.debugtext mode += "\n" + moduleName;   Note ModuleName is correct and is "myMidlet".

    for (int i = 0; i)< allgroups.length;="" i++)="">
    versForm.debugtext += "\n"+allGroups[i].getFriendlyName ();

    If (allGroups [i] .getFriendlyName () .equals ("myMidlet")) {}
    versForm.debugtext += "\n"+allGroups[i].getFriendlyName ();
    versForm.debugtext += "' \n * found"; "
    for (Enumeration e = allGroups [i] .getModules ();)
    e.hasMoreElements () {}
    versForm.debugtext += "\n *"+ e.nextElement (); "
    }
    myGroup = allGroups [i];
    break;
    }
    for (Enumeration e = allGroups [i] .getModules ();)
    e.hasMoreElements () {}
    versForm.debugtext += "\n *"+ e.nextElement (); "
    //            }

    If (allGroups [i] .containsModule (moduleName)) {}
    myGroup = allGroups [i];
    break;
    }
    }
    versForm.debugtext += "\n end";

    }

    public String getAppProperty (String name) {}
    If (flag)
    init();
    flag = false;
    versForm.debugtext += "\n getAppProp"+ name;
    If (MyGroup is nothing)
    Returns a null value.
    Return myGroup.getProperty (name);
    }
    }

    I use the function mybbProperty.getAppProperty ("AppMyHost");

    I noticed that the getFriendlyName() is the name of my Application, so I use it and

    print information. Did I get this

    mybbProperty mybb = new mybbProperty();

    String s = mybb.getAppProperty ("AppMyHOST");

    myMidlet

    * Found

    * myMidlet-3

    * myMidlet-2

    * myMidlet-1

    of course, which returns null. So how do JAD another properties which was used to deploy the

    App for Blackberry. In Nokia its pretty simple use MIDlet getAppProperty() you need a jad and jar for

    deploy it.

    In any case, I don't know which module to get. The JAD I used to deploy the cod was called green.jad

    so I have no idea why myMidlet is important. I wouldn't see green.jad somewhere?

    Anyway, I would appreciate any code that does this correctly.

    Please see this thread on this issue.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=10&query.ID=5227#...

  • Integration of WebCenter spaces/portal with the AAU and the use of FrameworkFolders

    Hi all

    We look at the possibility of using the organisation wide Desktop Integration Suite... We also are a roll out of Webcenter spaces wide organization.

    It is preferable to use FrameworkFolders as his replacement the component folders_g and address the limitations are by folders_g (for example can have a maximum of only 1000 content in a folder, the time loading pages when a folder has no large pieces of content).

    Given only folders_g can be used for integration with Webcenter spaces/portal you are unsure of what should be our strategy. Is it intend to use folders frame with Webenter in the future?

    Thank you
    Maton

    Published by: 890922 on August 14, 2012 18:20

    Given only folders_g can be used for integration with Webcenter spaces/portal you are unsure of what should be our strategy. Is it intend to use folders frame with Webenter in the future?

    Of course there is. Unfortunately, no exact exit date was disclosed so far. If you need a quick implementation (after a few months) I'm afraid you'll have to go with folder_g

  • Customization of Template Portal WebCenter (spaces)

    I will try to find how to solve this problem or any workaround will help achieve the following task without using 'Webcenter Portal framework'.

    I need to use Oracle Webcenter Portal (spaces) as a managed server.

    Question:

    I have more CSS and I need to be applied on the portal based on logged in user or the location that the user used to connect to the portal. How can I imeplemnt this model webcenter? I guess I have to create the parameter will get a value back bean. I don't know how to inject that bean to the portal to read the value of it in front of the loading gate.

    I need to load the CSS to the customer for each user.

    I have only a public space a unlimited of CSS files. The idea is to use Ajax o backing bean or whatever to read the value of database and set it to CSS path before loading the portal.

    I can add a blank page and set a value to this topic, but how do I send it to the portal model.

    Hello Vinaykumar2,

    Thank you for your help.

    I might be able finish it by injecting the bean in the backend for webcenter spaces.

    No simulation were as follows:

    1 create a JDeveloper application > taskflow-ADF

    2. create your managed bean that has a list of values must be returned from the database and add it to the session scope

    3. create the model.

    4. Add the empty method to the workflow as intializer.

    5. deploy the project as a custom to the webcenter Portal Portal

    6 - create the model resource catalog of common goods and add this taskflow.

    Catalogue of resources model 7 - assign to the application model

    8 - Add taskflow model and hide.

    9 award on behalf of the skin to be value #{sessionScope.manageBean.skinName}

    value of the award to 10 logo URL to be #{sessionScope.manageBean.logoURL}

    -----------------------------------

    The scenario:

    In accessing the model and the portal is trying to be responsible, it will initialize taskflow, initializer will force him to call the constructor of bean used to

    1 - get IP of the request

    2 the name this IP assignment

    3. hit the database and get logo path and name of the db skin based on the name assigned to the number 2.

    4. then the portal will load with an assigned value for managed bean.

    -----------------------------------

    Tip;

    1 - the portal tries to read the value of the skin get before initializing model so him returned the value #{sessionScope.manageBean.skinName} = null. In this case, it will use Trinity file to get the default value.

    This value will be initialized after the first refresh. So we can add the javascript code in the first template to add cookies and reload this page first to get the correct value.

    I tried and it works fine.

  • changes of skin in webcenter spaces

    Hi all

    I have the application built in workflow of adf and deployed in webcenter spaces.

    I want to make some changes in the custom of the skin inside webcenterSpacesResources.

    I made the changes, but that the changes are not shown. How can I make my skin changes to display on my space pages.

    Hello

    Can you tell what change u done in CSS. can be a problem in your css only.

    In the opposite case. You can export your portal resources by right click-> export-> browser and provide the path/Name for your records. Then, from the administration console, you can download the archive generated

  • WebCenter spaces: content display model Presenter for the image gallery

    Hi all

    I use 11.1.1.6 Webcenter spaces

    I need to create a custom content presenter display model where a folder is chosen by the moderator. And all the files it contains will be shown as an album in a drop down.

    Whenever the user selects any album in the drop-down list, the images inside this album should be below in a thumbnail.

    I've set up two models one for the drop-down list and others to show images.

    I just need to know how can I use the two together. And how the selection of an album in the drop-down list should change the images?

    Should I call 2nd model presenter content from 1?

    Help, please.

    Kind regards

    Deepak

    Hello.

    I have a better approach:

    1. Store in a variable of limited scope, the folder selected in selectOneChoice.
    2. Use the cmfn:searchNodes function to retrieve the folder nodes
    3. Use the list of nodes with dt:contentTemplate.


    Information on the use of cmfn:searchNodes:

    Basically, he's waiting for the name of your repository of the University Complutense of MADRID and a CMIS query that must be built using the information in your file or a path.

    The CMIS query will have to be something like the following example (he gets all the contents of the folder with xCollectionId =988901828852000401

    SELECT * FROM cmis:document WHERE IN_TREE('/ucm/IDC:Folder/988901828852000401')

    
    
        
        Retrieve a collection of content nodes by CMIS query, specifying the maximum number of nodes to return.
        
        searchNodes
        oracle.webcenter.content.integration.servlets.functions.NodeRetrievalFunctions
        
          oracle.webcenter.content.integration.Node[] searchNodes(java.lang.String, java.lang.String, java.lang.Integer)
        
        
          
    ]]>
  • WebCenter spaces and Fusion (Appl Core) Applications - How do we tie - up?

    Just installed Webcenter. There are some nice features like social networking, discussions, streams of activity, worklist integration etc. An important feature that caught my attention was the DT@RT component (specifically, editing special-stream via the web). To using this component only modify the Webcenter applications? I'll be able to edit taskflows built using the application libraries and deployed within an application from merger running in a field of autonomous fusion?

    Also the ADF applications can be built apps Webcenter or Fusion (appl core) (because the data controls are available in both). As a general rule, what features are implemented via Webcenter applications and which are implemented using the essential applications of Fusion appl?

    Thank you
    Sam

    Published by: 899841 on November 29, 2011 19:43

    That's the beauty of the WebCenter. In its essence, it is nothing more than a Web Application of merger with lots and lots of additional libraries.
    All the features available to you in a merger application, you can also use in a webcenter application. You can create a model project that uses business components, you can create a taskflows as you would normally do a fusion web app.

    It is advisable to separate these features and develop transactional functionality in a separate application and deploy it as a shared ADF library and include it in your app webcenter. Using the catalogue of resources, you can add these taskflows on any page during execution.
    Using webcenter services, you can also include some services like tagging, linking, documents and so on in your own taskflows which gives it that extra touch of your generation taskflows custom.

  • WebCenter spaces &amp; UCM - they both go in the same field?

    I installed the two spaces & UCM and am at the stage where a domain is configured.
    For installation vanilla, trying to keep things as simple as possible for a test environment, if all the spaces & UCM components light up on the same domain?
    Or is there a reason I don't want to divide them?
    (Yes, I clearly don't understand the domain part earlier!)
    Thank you

    Certainly you want to put in the same field.
    A domain does not mean that each component is deployed on the same server. A domain can have multiple servers.

    You can watch a domain as a collection of servers that need to work together.
    When you want to use UCM + Webcenter spaces you want because they are in the same domain in this way, you can manage the WCS and UCM using the same enterprise manager and console weblogic. If you create a separate domain, you have two different enterrpsie managers and weblogic console.

  • How can I make a tab by default whenever I have connection to the portal of the webcenter spaces?

    Hello

    I have a single page in the portal of webcenter spaces, which is the default portal in the webcenter application. This single page has 6 or 7 like Home tab and the other tabs. Whenever I logged in the webcenter I can see the url redirects to my default portal but it doesnot get home tab made, instead, it shows the tab where I left just before disconnected tab.

    For example I have tabs A, B, C, D etc... I have logged in to the application portal and I did something in tab C and then I logged. After once again I re-login, I see this tab C shows, but I want to see that tab must be returned. Someone help me how to make a tab by default whenever I have connection to the webcenter portal.

    Thank you

    Ashok Laura.

    Hello

    This is an expected behavior as his persists the State of users. I did face this problem before and solved by setting the disclosed condition of showditailitem programmatically.

    Please check below the code for your reference.   Invoke the bean managed prior to the loading of the page to

    {} public void onPageLoad (PhaseEvent phaseEvent)

    If (phaseEvent.getPhaseId () .equals (phaseEvent.getPhaseId (). RENDER_RESPONSE)) {}

    If (!.) {AdfFacesContext.getCurrentInstance () .isPostback ())}

    If (this.newsPanelTab! = null) {}

    List childUIComponent = this.newsPanelTab.getChildren ();

    If (childUIComponent! = null & childUIComponent.size () > 0) {}

    for (int i = 0; i)< childuicomponent.size();="" i++)="">

    If (childUIComponent.get (i) instanceof RichShowDetailItem) {}

    If (i == 0) {}

    ((RichShowDetailItem) childUIComponent.get (i)) .setDisclosed (true);

    } else {}

    ((RichShowDetailItem) childUIComponent.get (i)) .setDisclosed (false);

    }

    }

    }

    }

    Thank you
    Amey

  • How to store the query string value in the scope of the session in webcenter spaces?

    Hello

    I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.

    Thank you

    Ashok.

    Please see the article below

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).

  • Redemption code has already been used

    I am a student and received my code redemption for Adobe Creative Cloud.  However, when I try to use the code after signing in, it indicates that the redemption code has already been used.  I was in contact with technical support Adobe several times where they have installed and uninstalled CC and still without a bit of luck.  Someone at - it other suggestions to redeem the code or if I install the application update the redemption code later.

    Any help would be much appreciated.

    Casey

    Redemption codes used only once.  The redemption code no longer has any purpose after he used only once.  After using it once you have the subscription assigned to your account and should be able to sign to the creative cloud using your Adobe account information.

    Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Hello! I am a fashion design student and my school offer us a wide range of Adobe programs. I asked the Redemption Code and I have but when I try to enter it know this code is already in use however the Photoshop and Illustrator that I already

    Hello! I am a fashion design student and my school offer us a wide range of Adobe programs. I asked the Redemption Code and I, but when I try to enter on behalf of the school know that this code has already been used however the Photoshop and Illustrator that I already have on my Mac do not work. Before you begin the school pack, I used a free version and so now I see that my free version is over but I can't use the pack of the school that gave me. How can I start using it?

    Hello

    Please see redemption code help

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

Maybe you are looking for

  • In the menu Edit-Find "search" on a Web page does not work?

    I want to find a Web page and in the Edit Menu and click Find and type in what I want to search. However, the page on 'find' the search function is no longer on the page. He had already helped find me a page, but the function has suddenly stop workin

  • The dimensions on the mobo MTQ45MK need, ThinkCentre M58P desktop computer

    All - beginners, glancing a ThinkCentre M58P, not the SFF desktop computer, with MTQ45MK mobo and my understanding is that there mATX mobo, but I need the dimensions because it may wind up in a different chassis until this project is completed. I thi

  • Update error

    I keep the code 80070490 receving when you try to update.

  • WRT310N connection is horrible when you use WPA

    I bought this router 3 Nov 2008 and it worked fine for a few days then I setup WPA and the connection from a fall. I can't hold a connection on any of my wireless devices, but if I just leave the router with factory settings I have no problem with co

  • Windows validation error

    I returned from vacation yesterday to find that my phone tells me that my copy of Windows 7 is not genuine. I run the validation tool which then prompted me to buy a new copy of Windows 7. This is a laptop ASUS game provided with Windows 7 installed