Replace the string "/ faces" when to deploy application

Hi all
I use Jdev 11.1.1.0.
When I deploy an application, so I can see from the url:

http://localhost:PortNumber / myApplication-ViewController-context-root/faces/myPage

I can change the channel 'myApplication-ViewController-context-root', but I can't change the channel 'faces '. Is there a way?

Thank you

Hello

In your web.xml file, you have:

Faces Servlet
faces *.

change it to what you want (as long as you do not create conflicts with other existing url mapping):
If change you it to:

Faces Servlet
/ foo / *.

You call your application with the URL:
http://localhost:PortNumber / myApplication-ViewController-context-root/toto/myPage

Jack

Tags: Java

Similar Questions

  • Search and replace the string formatting

    Hello

    I try to do a search and replace the formatting of a string.

    In the example, I'm looking for the string 'SUCCESSFUL', but it must also begin by usbflash and some number + PASSED.

    I can't get the format to have a number between 1 and 99. The number of replacements should add up to 6 in this case. I tried with \d for any number, and I also tried [1-99].

    Make a right-click on the function search and replace the string.  There is an option to use regular Expressions.  Then give it a try.

    EDIT: You need to set the entry replace all to TRUE.

  • How to replace the string "\" on json webservice?

    Hello

    I have problem with this json

    "{\"search_result\":[{\"name\":\"Mall Summarecon\",\"category\":\"BusinessEntity\",\"id\":\"1\"},{\"name\":\"Bamboo Dim Sum\",\"category\":\"BusinessEntity\",\"id\":\"2\"},{\"name\":\"Dimsum Ceker\",\"category\":\"Item\",\"id\":\"1\"}]}"
    

    I want to replace the string "\".

    the json are already working on my app via .cpp file

    I already add json.replace on my qml

    function simpleSearch(response){
            indicator.stop()
            model.clear()
            console.log("Response: "+response)
            var json = JSON.parse(response)
            json = json.replace('\\', ' ') // this is how the way i replace
            if (json == "[]")
                notFound.visible = true
    
            else
                model.append(json.search_result)
        }
    

    but still does not work

    is there a different way to replace it?

    Thank you

    Change your simpleSearchFinished as follows

    ....simpleSearchFinished()
    {
        QNetworkReply *reply = qobject_cast(sender());
        if (!reply->error()){
            QByteArray response = reply->readAll();
            response.replace("\\", "");
            if (response.startsWith("\"")){
                response.remove(0, 1);
            }
            if (response.endsWith("\"")){
                response.remove(response.length()-1, 1);
            }
            emit simpleSearchDone(response);
        }else{
            const int httpCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
            qDebug() << "ErrorCode" << httpCode << endl << \
                    "ErrorString" << reply->errorString();
            emit error(httpCode, reply->errorString());
        }
        reply->deleteLater();
        manager->deleteLater();
    }
    

    and QML

    function simpleSearch(response){
        indicator.stop()
        model.clear()
        var json = JSON.parse(response)
        if (json){ // is VALID/PARSED
            model.append(json.search_result)
        }
    }
    

    As I wrote, it is not a good workaround solution. The best is to send VALID JSON string directly from your server. But it works

  • Replace the string value of table

    with cte as)

    Select val '123', 'abwec' double val1

    Union of all the

    Select "456" val, "mowerw" double val1

    Union of all the

    Select val '709', 'wkwere' double val1

    Union of all the

    Select val '078', 'awerwewerwreq' double val1

    )

    Select * from cte;

    -incoming string

    "asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..."

    need to replace like 'abwec' 123 and 456 as "mowerw" and 709 as wkwere and 078 as 'awerwewerwreq '.

    How to replace the string value of the string

    I'm going to the table which will have mapping information I need to see the incoming string and replace the appropriate value of the val to val1

    something like

    Of

    "asdasd123456werwer@asdwer709@ewrwerewrwqqwezxder078ewrwer@87w8eopiu @..."

    TO

    "asdasdabwecewrwer@87w8eopiumowerwwerwer@asdwerwkwere@ewrwerewrwqqwezxderawerwewerwreq@..."

    By using the TYPE clause.

    with cte as

    (

    Select val '123', 'abwec' double val1

    Union of all the

    Select "456" val, "mowerw" double val1

    Union of all the

    Select val '709', 'wkwere' double val1

    Union of all the

    Select val '078', 'awerwewerwreq' double val1

    ),

    input_tbl

    as

    (

    Select "asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..." input_str

    of the double

    )

    Select max (input_str) Dungeon (first order by desc NWR dense_rank) input_str

    de)

    Select rno, input_str

    de)

    Select rownum NWR

    val

    val1

    input_str

    count (*) over() cnt

    from cte

    Cross

    Join input_tbl

    )

    model

    dimension (NWR)

    measures (val, val1, cnt, CAST (input_str AS VARCHAR2 (4000)) input_str)

    (

    input_str [any] = replace (nvl (input_str [cv () - 1], input_str [cv ()]), val [cv ()], val1 [cv ()])

    )

    )

  • How to pass an xml CDATA in the string element when OSB call a webservice?

    How to pass an xml CDATA in the string element when OSB call a webservice?

    I have a business service (biz) this route to exploitation of a Web service.

    An example of this legacy Web service request:
    < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns: ex = "example" >
    < soapenv:Header / >
    < soapenv:Body >
    < ex: run >
    < ex: arg > <! [CDATA [< searchCustomerByDocumentNumber >
    < documentNumber > 12345678909 < / documentNumber >
    [[< / searchCustomerByDocumentNumber >]] > < / ex: arg >
    < / ex: run >
    < / soapenv:Body >
    < / soapenv:Envelope >

    type ex: arg is a string.

    How to pass this structure CDATA webservice in OSB?

    Steps to resolve this problem:
    1 create an XML schema. For example:


    elementFormDefault = "unqualified" >


              
                   
                        
                             
                             

                        

                        
                             
                        

                   

         

         

         
         

    With this XSD, XML can be generating:


    documentNumber

    2 create an XQuery query to create a ComplexType searchCustomerByDocumentNumber. For example:
    (: pragma bea: element global-element-return = "searchCustomerByDocumentNumber" location = "searchCustomerByDocumentNumber.xsd" ::))

    declare namespace xf = "http://tempuri.org/NovoSia/CreateSearchCustomerByDocumentNumber/";

    declare function xf:CreateSearchCustomerByDocumentNumber($documentNumber_as_xs:string)
    as {(searchCustomerByDocumentNumber)}

    {$documentNumber}

    };

    declare the variable $documentNumber as XS: String external;

    XF:CreateSearchCustomerByDocumentNumber ($documentNumber)

    3. in your step in proxy pipeline add to assign the created the XQuery function call from the number of the document of your payload.
    Assign to a variable (for example: called searchCustomerByDocumentNumberRequest)

    4. create an another Transformation of XQuery (XQ) to create a request to the existing Web service. For example:
    {fn - bea: serialize ($searchCustomerByDocumentNumberRequest)}

    For more information about xquery Serialize function:
    41.2.6 fn - bea: serialize()
    You can use the fn - bea: serialize() function if you need to represent an XML document as a string instead of as an XML element. For example, you can share an XML document through an EJB interface and the EJB method takes the string as an argument. The function has the following signature:

    FN - bea: serialize($input as item()) as xs: string

    Source: http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/xquery.htm

  • Find and replace the string function replaces line breaks when I only replaced spaces?

    I need to replace all instances of a space or a series of spaces to a line with commas (or tabs) multi string so I can throw in a worksheet.

    I use the regular expression [\s]+ and it works, but it is also to replace the end of lines (\r\n) too.

    How can I replace the spaces but leave the end of the lines intact?

    Right-click on the search string and to take '-' code display. Enter the space character (\s) correctly - you \\s right now.

  • Replace the string with the formatted text

    Hello all - I'm back to my beloved project...

    I want to replace a string by a TextSelction (formatted text) and began with the famous feature of Jang FindAndReplaceString.
    Since my replacement comes from another document (sourceDoc), I edited to targetDoc activeDoc and introduced a second document (sourceDoc).
    The replacePara actually comes from a stone where he had been placed to avoid switch backwards between the documents in a book (where to find and replace) and source documents. In another function, I learned that information on the table requires the sourceDoc must remain open.

    • Of course, everything works fine until I want to insert the replacelement:
      erase line 26 is the string
    • Given that I do not insert a string, I skip lines 28 and 29 and try try line 30
    • On line 30 DocumentSource is Document object and replacePare object TextSelection. However, sourceDoc.replacePara is not set and
    • (as a result?) line 31 past the current contents of the Clipboard.

    Of course, there is a fog around me... and I need some sunshine.

    function FindAndReplacePara (targetDoc, findString, sourceDoc, replacePara, loopMax) {
      var tr = new TextRange();
      var restoreTR, frame = 0, loopCounter = 0, replacementCounter = 0;
      var findParams = new PropVals();
      var firstPgf = targetDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
      
      tr.beg.obj = tr.end.obj = firstPgf;             //  set up the starting text range as the very beginning
      tr.beg.offset = tr.end.offset = 0;              // of the flow. We'll move straight from beginning to end.
      trSaved = tr                                    // to come back after work
    
      findParams = AllocatePropVals(2);
      
      findParams[0].propIdent.num = Constants.FS_FindText;
      findParams[0].propVal.valType = Constants.FT_String;
      findParams[0].propVal.sval = findString;
      
      findParams[1].propIdent.num = Constants.FS_FindCustomizationFlags;
      findParams[1].propVal.valType = Constants.FT_Integer;
      findParams[1].propVal.ival = Constants.FF_FIND_CONSIDER_CASE;
    
      FA_errno = Constants.FE_Success;                // errno global, to be used to track the progress of the find and replace
      tr = targetDoc.Find(tr.beg, findParams);        // and do an initial find to get started.
      
      while(FA_errno === Constants.FE_Success && loopCounter++ < 2*loopMax) { //find and replace loop as long as we keep finding
        targetDoc.TextSelection = tr;                 // set up the text range to clear the original text
        targetDoc.Clear(0);                           // clear it
        
    //    targetDoc.AddText(tr.beg, replacePara);       // insert the new text at the original beginning of the text range
    //    tr.beg.offset += replacePara.length;          //  lets jimmy the text range in memory to place it directly after
        targetDoc.TextSelection = sourceDoc.replacePara;        // paste the whole replacement paragraph
        targetDoc.Paste (0);                          // <-- Current contents of clipboard is pasted !!!!
        if(FA_errno === Constants.FE_Success) {       // increment our return counter
          replacementCounter++;
        }
        FA_errno = Constants.FE_Success;              // ...  find the next instance. We'll reset FA_errno again just in case
        tr = targetDoc.Find(tr.beg, findParams);      // something screwy happened while we were replacing text.
      }
      targetDoc.ScrollToText(trSaved);                // we're done. Restore the document to it's original area of display
      return replacementCounter;
    } // --- end FindAndReplacePara
    

    Hi Klaus,

    Thanks for the explanation. I remember something like that GetTabRange of the way back. You have been quite patient and persistent with this project, indeed.

    So, as we are dealing with ranges of text here, I think that the only simple approach is to perform a copy and paste. There is no way to save a 'formatted' in a variable. The only super precise way would be to get a data structure of each text range TextItems in the sourceDoc, then meticulously recreate every element of the targetDoc. It would be very complicated, I think, so copy and paste seems the most logical. I wonder, though, if Miss me something, because I think that maybe you would have tried already so yes (?)

    In any case, I would do something like that, from line 30 of your original code sample (code untested here):

    App. ActiveDoc = sourceDoc;

    sourceDoc.TextSelection = replacePara;

    sourceDoc.Copy (0);

    App. ActiveDoc = targetDoc;

    targetDoc.Paste (0);

    ... etc.

    Does make sense, or am I barking the wrong tree, as they say?

    Russ

  • Search and replace the string in a column

    Hello

    In the table the data stored with "" (double quotes), I need to remove these quotes please suggest me how to remove


    Select the address of TECH_SOURCING_EMPLOYEE_DETAILS

    "No. 12/32"-> data recorded in this format in the table. I need to remove the double quotes


    Thank you
    Sudhir

    Hello

    UPDATE to modify existing rows in a table
    REPLACE to delete a given sub - a to a string.

    UPDATE     tech_sourcing_employee_details
    SET     address     = REPLACE (address, '"')
    WHERE     INSTR (address, '"')         > 0          -- Maybe
    ;
    

    This will remove all the quotes of the address.
    If you want to remove the quotes only from the beginning and the end of the string, then use TRIM instead of REPLACE:

    UPDATE     tech_sourcing_employee_details
    SET     address     = TRIM ('"' FROM address)
    WHERE     INSTR (address, '"')         > 0          -- Maybe
    ;
    

    The WHERE clause is only for effectiveness.
    So, whenever the column contains quotes, of the double quotation mark is always the first character in the string, then you can change the WHERE clause to:

    WHERE     address  LIKE '"%'
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
    
  • Replace the strings inside SWF's AS2/3

    There are, on some Board there are a few foreign flashes that predate the internet and effectively anonymous pertaining to the creator, if someone used a program to get the strings in the SWF file (programmed in AS3), machine to translate them and put back them.

    Deal is a machine translation. It's funny, but it's still wrong and I would like to do a good job of translating.

    So to get to the point, I would like to know where I might be able to find a program that can get the strings inside a SWF file that is programmed in AS2 or AS3, show them to me and I would like to replace them with custom text. The reason why I want to do it this way is that I must not decompile SWF. Decompile a SWF is bound to generate errors and I could not have certain fonts inside so I also have little to do with the opening of the thing I can.

    I tried a few solutions, including FLASM (only works on AS2) and others don't bother naming such that they are no longer capable of displaying the AS3 code and not edit or replacement of classes.

    I'm not 'try' anything.  I inform you of your options.

    If you do not find the source files and that you can not use a decompiler, you cannot change the source code.

  • Search and replace the string from a result

    Hi all
    I want to search a "("or ")" of the chain and all want the string before replacing "(" with a blank space...


    for example
    If the result comes like this
    name
    12 #122 (on the opening balance)
    I want the result as

    name
    on the opening balance)

    means
    12 #122 is replaced by "" how


    thanking you
    Gaurav Sontakke

    Like this?

    WITH t AS
         (SELECT '10 #10 (moving standard to msp1004)' str
            FROM DUAL
          UNION ALL
          SELECT '13208 #0' str
            FROM DUAL
          UNION ALL
          SELECT '2002-02-22 #10' str
            FROM DUAL)
    SELECT SUBSTR (str, 1, INSTR (str, '#') - 1)
      FROM t
    
  • Replace the string in BPEL

    Hey all,.

    I need to replace the & with a + since the & just breaks the bpel process. Any ideas on how to make a replacement string to find all the the & and replace it with the +, I looked in the transformation and the entitlement activity, but did not find all the functions to help me with this.

    Any help would be appreciated.

    Thank you

    You can create an XSL template for string replacements, see the link given below:
    http://geekswithblogs.NET/Erik/archive/2008/04/01/120915.aspx

    If you are familiar with Java you can add a Java embedding activity and string replacement using the method of the replacement of the java.lang.String class.

    Diakité
    http://SOA-HOWTO.blogspot.com

  • Reports on the string data when it crashes more than digital data

    It is an interesting situation for me. My apologies to simplify the introduction to the problem.

    It's easy when I met data from the table, a table, you have your descriptive data (Look up table)... Name of the product, the Transaction name,..., etc and you have a related table with the digital data in it (Table of facts),..., sales, cost, margin,... etc.

    Of course when the table with digital data in it breaks down further than the table with descriptive data. The solution is simple. Simply summarize you the data grouping in the descriptive table of digital data.

    ... Ok. Sorry about all this. Now, here's my problem...

    I have a situation where my table (get) descriptive data breaks down further than digital data in my table of facts. I know there is no way to summarize the data of type string, but I need a way to report the values in my eyes to the top of the table on the same line as the digital data cell associated with TWO or MORE look for rows in the table.

    I bet that this is not the first time that it has produced in the history of the RDBMS, so I think there must be a methodology out there somewhere to handle this situation.

    I think the final result will be something like; concatenate the descriptive data in the description cell that will be reported next to the digital data on the same line. I just need to know what the official solution, when it exists. There must be. Or at least a clever work around...

    Does anyone know what it is or how to handle this? Even more, is there a formal name for this kind of situation?

    Thanks in advance!
  • Is it possible to prevent the device restarts when I deploy an application?

    Hello

    Whenever I have deploy an application on my device (Blackberry 9780, OS6.0) to test the device restarts. Is it possible to deploy without having to go through this lengthy process?

    Who knows what is happening behind the scenes!

    There are simple things, like the establishment of the correct size at startup icon, which will mean that your device needs to restart after the installation.

    Since I believe PhoneGap and WebWorks are about you, you can get an answer on the forum WebWorks.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/BD-p/browser_dev

  • Is the signature required when you deploy the client application in the device?

    Hello

    I am trying to build my own version of the sample application client push. I have two questions:

    -First of all, is there a way to test shoot BIS Simulator, workaround, maybe?

    -Second, is it necessary to sign API classes used in the sample client application before loading it into the unit? The sample application works fine on the camera, but a version that has a very slight modification does not work, does not even start. Could it be linked with code signing?

    Thanks in advance,

    Burak

    You can't actually test pushes BIS with the Simulator. You can test your application without feature push using the Simulator.

    Yes, you will need to sign the application unless your device is "unlocked."

  • Icons in the taskbar disappears when installing any application

    Original title: icons in the taskbar disappears

    I use windows 7... Every time when I install an app, after a few days my icons to the taskbar disappear... Only after uninstalling the application is installed and the computer restarts, the taskbar icon comes back... I want a solution for this problem...

    Hi Fernando,

    Please contact Microsoft Community. I appreciate your efforts to solve this problem. I will surely help you this question.

    This problem might have occurred because of these reasons:

    1. Virus.
    2. Conflict between third-party applications.
    3. Corrupt system files.

    Try the steps listed here:

    Method 1:
    I suggest you virus scanner to make sure that the computer is virus-free.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note:
    (1)
    the Microsoft Safety Scanner expires 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    2) if you run the virus scan of the program which is infected with the virus will be deleted. Therefore, reinstall the program. Also, if files and folders are affected by the virus, while they might even get deleted.

    Method 2:
    If the problem persists, I suggest you to set up the computer in a clean boot state. Setting the system in a clean boot state will help you determine if third-party applications or startup items are causing the problem.

    How to perform a clean boot for a problem in Windows
    https://support.Microsoft.com/kb/929135?WA=wsignin1.0

    Note: After the clean boot troubleshooting steps, follow the "How to reset the computer to start as usual after a clean boot troubleshooting" section in the link provided to return the computer to a Normal startup mode.

    Method 3:
    If the problem persists, I suggest you to run check file system (CFS). SFC scan will search the system files corrupted on the computer and replace them.

    Use the System File Checker tool to repair missing or corrupted system files
    http://support.Microsoft.com/kb/929833

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

Maybe you are looking for

  • How can I transfer photos or data on a USB

    I have a few movies and photos that I want to transfer on a usb key, how do I

  • Victory question 8 (redirect)

    How to fix? Recovery Your pc needs to be repaired Boot your pc Data configuration is missing or contains errors File: \ELF\Microsoft\Boot\BCD Error code: 0xc000014c

  • Network share does not auto-enable itself

    I use mHotspot to extend my range wireless for things I normally can't reach the router in the same domain as the laptop. That's why I often used mHotspot to solve this problem. From lately, I had to reinstall my wireless driver, and since then, mHot

  • Do not display messages to trigger AfterReport

    Hi allI reported throungh sql statement such as select * from emp2.FUNCTION Beforepform RETURN BOOLEAN IS START     SRW . Message ()5000 ' DEBUG: before the Parm '()     SRW . Do_sql ()' TRUNCATE TABLE emp2 ')     SRW . Message ()1000 'Truncated EMP2

  • Weird happening with line spacing

    I work in a document (a magazine) that someone else created from a template. So who knows what weird stuff that lurks beneath the surface. I'm doing something really basic - change the line spacing of 12 points to 13 points - but for some reason some