How to check URL validation in webdynpro?

I get the error message in the webdynpro application of nw04 as followed:
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=file:
wdfd00184026a\ECM\CMIS\PlugFest
    at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
    at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
Does the system provide the function to checkURL so as to avoid the error?
Thanks for help!

Hi,
You can create a simple type with built-in type as String. Then maintain a format as ##:##. But this will not restrict the user from entering junk value on the client side, a validation will be performed in the next request-response cycle.
Regards,
Satyajit.

Similar Messages

  • Check URL Validity

    Hello, I'm trying to figure out how to check the validity of a URL. I have wrote something, but it's not exactly what I want. Here is what I have:
         public boolean URLCheck(String checkme) {
              if((checkme.contains("http://") || checkme.contains("https://") ||
                        checkme.contains("ftp://")) && (checkme.contains(".edu") ||
                        checkme.contains(".com") || checkme.contains(".net") ||
                        checkme.contains(".org"))) {
                   return true;
              else{
                   output.setText("Bad URL.");
                   return false;
         }This is obviously very flawed, it only checks the protocol and the end of the server address (com,org,net,etc...).
    I would like to write a piece of code that could check if the URL is in this format, but I'm not sure where to begin.
    < url > ::= < protocol >://< server_address >/< local_address >
    < protocol > ::= http | https | ftp
    < server_address > ::= < host >.< domain > | < host>.< domain >:< port >
    < host > ::= < alphanumeric_character_string >
    < domain > ::= < alphanumeric_character_string > |
                   < alphanumeric_character_string >.< domain >
    < port > ::= < numerical_string >
    < local_address > ::= ~< login_name >/< location > | < location >
    < location > ::= < null_string > | < file_name > |
                     < path >/ | < path >/< file_name >
    < path > ::= < directory_name > | < directory_name >/< path >I'm not asking to have the code written for me, but I was wondering if someone could tell me how I could go about doing something like this.
    Thank you in advance!

    Thank you, here is what I tried:
         public void grabURLContents(String contents) throws Exception {
              try {
                   URL inputFile = new URL(contents);
                   BufferedReader in = new BufferedReader(
                                  new InputStreamReader(
                                  inputFile.openStream()));
                   String inputLine, storage = "";
                   while ((inputLine = in.readLine()) != null)
                       storage += inputLine +"\n";
                   output.setText(storage);
                   in.close();
              catch(Exception e) { output.setText("BAD URL: \n" + e); }
         }The only problem with this is: when I enter a url that obviously doesn't exist such as http://awdawfagasegr.com it still prints the html contents of my ISP's "Page not Found" page. Is there any way to prevent this?
    Thank you for your help by the way. Sorry if I seem very ignorant, I am not familiar with Java's URL class.

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

  • How to check CRL validity time from client?

    Hello,
    I have one Windows Server 2003 R2 working as Standalone CA. It provides certificate for one of our internal IIS website.
    I have decreased CRL publish interval from 1 week -> 1 day and Published new CRL.
    However, our webserver is propably not aware of new CRL publishing interval changed on CA, because I suppose webserver has cached CRL locally.
    My question is, how to check cached CRL validity time from our webserver? Its running Windows Server 2003 R2.
    I attempted to run following command on webserver with 0 results: certutil -urlcache crl

    You basically have to wait it out when you are running an 11 year old operating system
    The certutil -urlcache CRL command was introduced in Windows Server 2008/Vista.
    The deletion/inspection of cached CRL data was not really an option in Server 2003
    Brian

  • How to check the validation of RegEx

    Hi,
    My application needs users to enter RegEx. My question is how I can check the validation of the RegEx that users enter. The Class RegExp does not seem to provide any methods to check the validation of the RegEx.
    Regards,
    Haibin

    You would need to hand roll your own validator, unless someone knows of one that is out there. Flex does not validate RegEx.
    If this post answers your question or helps, please mark it as such.

  • How to check the validity period of saprouter ?

    Dear all,
    As per sap note 1178684, we can check the validity period of the saprouter by executing "sapgenpse get_my_name -n validity"
    I am wondering how to run that command in as/400 ?
    Please advise. I am not familiar with as/400 OS.
    Thanks
    Regards,
    Kent

    Hi Kent,
    please proceed as described on the http://www.easymarketplace.de/snc-iseries-setup.php
    logon with sidadm (or sidofr):
    (depending on the user, that is running the SAPRouter)
    CD DIR('/usr/sap/saprouter')
    ADDLIBLE LIB(SAPROUTER)    ??? or whereever the stuff is ...
    RMVENVVAR ENVVAR('SECUDIR')
    ADDENVVAR ENVVAR('SECUDIR') VALUE('/usr/sap/saprouter')
    RMVENVVAR ENVVAR('SNC_LIB')
    ADDENVVAR ENVVAR('SNC_LIB') VALUE('/usr/sap/saprouter/sapcrypto')
    CALL PGM(SAPGENPSE) PARM('get_my_name')
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.net - http://www.4soi.de - http://www.easymarketplace.de

  • How to check CSI validity

    how to check CSI validity

    hi,
    use these tables to get bom details.
    STPO          BOM Item Details
    STPU          BOM Sub Items (designators)
    STKO         BOM Header Details
    MAST         BOM Group to Material
    STZU          BOM History Records
    STAS          BOM Item Selection
    STPF           BOM Explosion Structure .

  • UIWebView - how to check the validity of url

    How can I check that a webView has started loading a webpage?
    I notice that the webViewDidStartLoad method is not called if there is some problem in the target url.
    Is there any way to notify the user that the url provided does not exist?

    How is the date entered? As a string? If so, use java.text.DateFormat to parse the string. If the string represents a valid date, a date object will be returned.

  • How to check the validation in UI before committing data?

    Hi,
    I'm using Jdev 11.1.2.1.0 version .
    I needed to check whether there is duplication of values in Boolean check box before committing the data into the Database.
    But this validation rule is to be checked based on the value selected in the Select One Choice drop down list in the page.
    I did it with adding a ValueChangeEvent in the drop down list and checking the values in the Boolean check box. It worked , but only in the case of earlier committed data in the database.
    How can i actually verify the data entered in the table in the page before it being committed into the DB ?
    Nigel.

    Hi,
    an improvement to your solution would be to move the major part of your code from the backing bean into a method on the ApplicationModuleImpl file (you create this from the AM editor)
      public boolean checkForDuplicate(){
           ViewObject vo = this.findViewObject("ResponseVO");
           int numRows;
           int j=0;
           numRows = vo.getRowCount();
           String rowValue = "a";
    //the part below of your code I don't like at all. Why do you need to increase a flag
    //and use an if statement ?
           for (int i=0; i<numRows; i++){
              rowValue = (String)vo.getCurrentRow().getAttribute("ResponseFlag");
              if(rowValue.equals("Y")){                           
                  j++;
                  if(j>1)
                      return true;
             return false;                           
        }This code you then expose on the AM as a client interface (same AM editor --> Java menu option)
    In the PageDef file (double click it to access the visual editor) click the plus icon next to the Bindings header. Choose "Generic Binding" --> method binding and point it to the AM and the exposed method. This creates a method binding "checkForDuplicate"
    Change your managed bean code to
      BindingContext bctx = BindingContext.getCurrent();
      BindingContainer bindings = bctx.getCurrentBindingsEntry();
      OperationBinding checkForDuplicate = (OperationBinding ) bindings.get("checkForDuplicate");
      checkForDuplicate.execute();
      boolean isDuplicate =  checkForDuplicate.getResult();            
      if(isDuplicate){
             FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Two same respones!");
             FacesContext.getCurrentInstance().addMessage(null, msg);
                                               Frank

  • How to check hyperlink validity?

    Hi
    The problem:
    I have a form in which a user will insert a hyperlink. The servlet should validate this hyperlink in the sense that the hyperlink actually should exist and point somewhere on the internet. How can I do this - I don't want to download the page under the hyperlink?
    It will be fine if somebody will point me the good direction (API, method name, tutorial, article, whatever else).
    Thanks in advance.

    Open a socket to the desired URL (see java.net API). Then send a HTTP HEAD request. You should receive a 200 if all is well (other 200 family codes may still be valid). Any other responses indicate the link is invalid (well, you could get a redirect response, which may or may not be considered 'valid' in your application). The generic format of a HTTP HEAD request is:
    HEAD www.yahoo.com/some_link.html HTTP/1.1
    Host: www.yahoo.com
    Connection: close
    [terminating, blank linefeed '\r\n']
    Make sure to flush() and close() the socket's OutputStream. Receive the response on the socket's input stream. You really only need to inspect the first line:
    HTTP/1.1 200 Document Follows
    Inspect the response code (in between the protocol version and the response message text). The following codes may or may not indicate success, depending on your application:
    200 - Ok (always considered 'good')
    201 - Created
    202 - Accepted
    204 - No Content
    301 - Moved Permanently (re-direct)
    302 - Found (re-direct)
    304 - Not Modified (should only be returned if you set a HTTP request header date)
    The following codes will certainly indicate failure:
    400 - Any response code in the 400 series
    The following codes probably indicate failure (though it could also simply indicate a server is down, although the link is still valid):
    500 - Any response code in the 500 series
    Response codes in the 100 series should be considered unexpected (though not an error) from a HEAD request.
    Best of luck.
    - Saish

  • How to check CRL validity Period before doing CA Migration ?

    Hi ALL,
    I am performing a CA migration so for doing that my first step is to
    Check that CRLs have a validity period that extends past expected migration duration
    So can any one please let me know how can I check the CRLS validity period ??
    If not, publish CRLs - ensure that published CRLs have a duration that is reasonably longer than the estimated duration of the migration.
    So can any one please let me know how can I should ensure that published CRLs have a duration that is reasonably longer than the estimated duration of the migration ??

    Why even try to determine what is remaining in the existing CRLs. Publish a new base/delta CRL period that will last the duration. For example, if you think it will take five days, then change the validity period for both the base and delta CRL to five days,
    publish a new set of CRLs, and do the migration.
    certutil -setreg CA\CRLPeriodUnits 5
    certutil -setreg CA\CRLPeriod "Days"
    certutil -setreg CA\CRLDeltaPeriodUnits 5
    certutil -setreg CA\CRLDeltaPeriod "Days"
    Restart ADCS
    Copy *.crl \\webserver\Share
    Just remember to change it back to your previous intervals
    after the migration.
    Brian

  • XML validation: how to check ALL validation problem for XHTML

    I have a lot of documents in HTML format (not very good) that I would like to convert in XML (XHTML). I know it is not so easy and I would use this strategy in a Java program:
    1. Try to check the well-formness and validation with a XML parser (SAX or Xerces)
    2. If not valid: try to individuate ALL the problems the file has (*and not only the first one that halts the processing process*)
    3. Try to transform the HTML to a validable XHTML with some approach: regular expression or other methods
    So the questions I do to you are the following:
    1. What XML parser do you think is the best for this purposes? SAX or Xerces?
    2. How can I understand what are all the validation problems in the file and not only the first one (If I remember well XML parsers halt the parsing process at the first error...)?
    3. How can I transform the HTML to a valid XHTML? I have only to use RegEx or is there other tools to do this for XHTML and HTML problem?
    Thanks
    r
    Edited by: robertobat on Feb 21, 2009 7:09 PM

    >
    1. Neither of them. (Disregarding the fact that SAX and Xerces aren't in the same category and don't cover all the possibilities.I would say SAX default implementation in JRE and SAX parser in Xerces.
    2. I think you have "valid" and "well-formed" confused. And HTML isn't a dialect of XML so the idea of trying to use an XML parser to handle HTML isn't a good idea.I know very well what is the difference between valid and well-formed but I've used "validation" to represent all the conversion problem. But you are right. I'm convincing myself that using a XML parser as the first step is not a good idea.
    3. Well, this is the real question, isn't it? Those other two were just a waste. Don't screw about with regex, for one thing it doesn't work well for hierarchical structures and for another you won't finish in a finite time. Just use an HTML parser which can produce a DOM, like TagSoup for example. Or run them through HTMLTidy. You could also submit them to one of the internet sites which will validate XHTML for you.I've seen Tidy and its capability to convert an HTML to a XHTML and I think it is better then TagSoup because I have to implement this mechanism in a production environment and I want to use only open source projects that have a very long story and that are strong. But I'll see TagSoup as you say.
    I cannot use an Internet service to convert millions of private documents.

  • How to check the validation at data base level as well as current user ente

    Dear all
    i have creation page in that item code will not enter the duplicate values
    in that creation page contains advanced table
    user will click on create 15 blank records using add another row
    suppose in first row user will enter LAPTOP assume this item code
    in this case i need to raise exception through databse level
    in second row also user enter LAPTOP1 in this case exception will not raise becaause data is not there at databse
    in third row user will enter LAPTOP1 in this case item is not there in data base but it is there in second row in this case
    i need to raise exception
    how to achieve this
    Thanks in Advance
    Sreekanth

    You can validate this in form submission.
    1. Call a method in AMImpl.java
    2. loop the ViewObjects and check the values
    3. If you find a match, throw the error
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                   

  • How to check adobe services in webdynpro

    I am trying to create adobe form but when I click on 'layout' tab geting following error:
    'The forms design tool for developing the form layout could not be started; either it is not installed or there are errors in the installation'
    where to check whether adobe services are registered or not.
    thanks
    Chitrakesi

    Hi Chitra,
    To check whether ADS is installed on the system the following steps have to be considered.
    Configuration Check for PDF-Based Forms in ABAP
    Purpose
    Use this process to check whether all configuration steps for developing and processing forms in an ABAP environment are completely and to verify, which ones you still need to perform manually.
    Process Flow
    1. The first check you need to perform is Checking by Executing Test Report FP_TEST_00
    2. Check the ABAP Connection
    3. Check the User and Password
    4. Check the Destination Service
    Step 1.
    Procedure
    1. Log on to your SAP NetWeaver AS ABAP.
    2. Call transaction SA38 and enter the name FP_TEST_00.
    3. Choose Execute (F8). A dialog box is displayed.
    4. Enter FP_TEST_00 in the field Form.
    This is displayed as the default form name.
    ADS5. Enter the name of the connection to the ADS. Enter the default name , or, if you have specified another name, the one you are using in your system.
    6. In the dialog box, choose Output in Print Preview.
    7. Enter an appropriate device type in the field Output Device.
    8. Choose Print Preview.
    Result
    If the configuration is correct, a form containing several lines on two pages is displayed.
    If the configuration is not correct, no form is displayed. In that case, you need to perform further tests.
    Step2.
    Checking the ABAP Connection
    Use
    This is a test for checking the RFC destination. This test applies to both connections using Basic Authentication and SSL connections.
    Procedure
    1. Log on to your SAP system.
    2. Call transaction SA38.
    FP_PDF_TEST_OO. 3. Enter the name of the test report
    4. Enter the name of the connection. Enter the default name ADS, or, if you have specified another name, the one you are using in your system.
    5. Choose Execute (F8).
    Step 3.
    Checking the User and Password
    Use
    This is a test for checking whether the entries for the user, security role, and passwords are correct in a system that uses Basic Authentication.
    Procedure
    1. Enter the following URL in your Web browser: http://<server>:<port>/AdobeDocumentServices/Config<server> where is the name of the J2EE engine where the Adobe document services are installed, and <port> is the port of the J2EE engine.
    Note that the entries in the URL are case-sensitive.
    2. The Web page of the Web service AdobeDocumentServices is displayed. Choose Test.
    3. Choose rpdata(test.u2026).
    4. Choose the Send button without entering any parameters.
    5. Enter the user name and password provided in the previous configuration steps.
    6. Choose Submit.
    Step 4
    Checking the Destination Service and the ICF Service
    Use
    Use the first of the following tests for checking the settings of the destination service. If you receive any error messages, continue with the further tests listed below.
    Prerequisites
    You have already checked the ABAP connection [Page 7].
    1. Checking the Destination Service using a test report in AS ABAP
    Using this test you can check if the complete configuration of the destination service and the ICF service is correct. There are two test reports available:
    ● FP_CHECK_DESTINATION_SERVICE This report checks the configuration of the destination service and the ICF service sap/bc/fp.
    ● FP_CHECK_HTTP_DATA_TRANSFER This report checks the configuration of the destination service and the ICF service sap/bc/fpads. You only need this service, if AS ABAP and AS Java (with ADS) are installed in different systems, and you want to bundle your forms to improve performance.
    The ICF service sap/bc/fpads and the corresponding settings in the destination service are not configured during the initial installation of SAP NetWeaver 7.0. For more information, see Creating the Service User ADS_AGENT in the ABAP Environment [Page 12] and Activating the ICF service [Page 13].
    1. Log on to your SAP NetWeaver AS ABAP system.
    2. Call transaction SA38.
    3. Enter the name of the test report.
    4. Execute the test without choosing the option With Destination Service.
    5. The system renders a test form in the background without using the destination service and displays the size of the created PDF.
    6. Execute the test again. Now select the option With Destination Service.
    7. If the settings of the destination service are correct, the system displays the same message as before (see step 5).
    2. Checking the ICF Service using the Web Browser
    1. In your Web browser enter the URL
    http://<server>:<port>/sap/bc/fp/form/layout/fp_test_00.xdp
    where <server> is the server that hosts the AS ABAP and <port> is the http port of the AS ABAP.
    2. In the dialog box enter ADS_AGENT as user and the password you have specified for it.
    Regards
    Manoj Kumar

  • How to check the validity of recipient when sending email

    hi Gurus,
    i wanna send email thru class, and i need to know if the email is sent successfully, i can check the email status thru SOST.
    but is there any way to get a return message immediately as soon as  I 'm sending the mail  out.
    Thanks in advance.
    Desmond Yang

    S you are right.
    If you want to validate email id, use table ADR6. Check below code,
    "Get Ship-to-party email address
    DATA: l_f_adrnr TYPE adrnr,
          l_f_mail TYPE ad_smtpadr.
          SELECT SINGLE adrnr FROM vbpa INTO l_f_adrnr        " Get Address number
            WHERE vbeln = vbdkr-vbeln AND
                  parvw = 'WE'.  " 'WE' Ship-to-party
          IF sy-subrc = 0.
            SELECT SINGLE smtp_addr FROM adr6 INTO l_f_mail  " Get Email id from Address number
              WHERE addrnumber = l_f_adrnr.
          ENDIF.
          IF l_f_mail IS INITIAL.
            MESSAGE i503(sbcoms) WITH l_f_mail. " Throw a message saying Recipient is unknown
          ELSE.
            " Code to send mail
         ENDIF.

Maybe you are looking for

  • HT204053 How do I get my apps off my iPhone to my ipad

    How do I get my apps off my iPhone to my iPad & the rest of the things on my iPhone !!

  • Field for URL

    Hi, can any one gimme the field and table name for URL. I need to print email id and comapny url, and i found email id at adr6 table but not able to find URL. Regards, Mr.A

  • How to have podcasts listed in music

    I have some podcasts that I down loaded directly and imported to itunes . They show up in the music list . Later I found them on itunes and those podcasts show up in the podcast category . I have podcasts from the same artist in both places ( podcast

  • Photoshop CS will not function correctly

    I recently upgraded to Leopard. I installed all my software ie (word, toast, photoshop cs...) Photoshop CS is able to install, but once I open it to use it a window pops up saying something like : Unable to open...because there are files not found in

  • How to edit trace info FN_TRACE_GETINFO('1')

    Hello all, Do someone know how to edit trace info from query below, for example, I want to edit value of property from 2 to 4 for security reason, thanks so much select *  FROM ::FN_TRACE_GETINFO('1') traceid property value 1    1    2 1    2    C:\P