Relative path for HTML file

Hi ,
This is my requirement. In the ESS Personal information overview page, I can add a HTML file to the additional information section.
I have created a HTML file by creating a web module and enterprise application and deployed the same through NWDI.
I declare a resource wher ei mention the path. Here i specifed the complete path of the html file ... like
http://hostname:portname/addinfo/addinfo.html.  Which i know is a wrong thing to do since when i move the html filel to the production system it will still be accessing the html file in the dev system.
How do i give the relative path here so that the html file accessed is from the production system when we  go-live.
Please suggest.
regards
sam

Hi,
One simpler solution is to use an AppIntegrator iView, as explained in the weblog <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2786">Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator</a>. It worked well for us.
You can remove the user authentication part in the portalapp.xml if you don't need it.
Regards,
Martin

Similar Messages

  • Using relative path for in file/ftp adapter

    Hi All,
    How to have a relative path for file/ ftp adapter's inbound/outbound operation?
    Example: Consider $ORA_HOME = /home/oracle --> This environment variable can be different on different machines
    i want to drop a file in to $ORA_HOME/folder1/folder2 (Or poll for a file).
    <partnerLinkBinding name="FTP">
    <property name="wsdlLocation">FTP.wsdl</property>
    <property name="out_dir" type="LogicalDirectory">What do i write here???</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    if i cant configure this in partner link section or in activation agent sction, how else do i achieve this?
    i am using 10.1.3.* version.
    Thanks in advance.
    Roshan.

    You can achive it using the deployment scripts if the directory is changing on the basis of the environment
    If you want to change at run time than you can use the jca properties to set using the variables at runtime.
    Regards,
    Ajay

  • Relative Path for JSP Files

    I use Liferay Portal. It has a defined directory structure for all portlets and expects files to be in their proper locations. One of these is that it expects all .jsp files to be in the /webroot/html directory.
    The problem is that all references in the struts-config.xml to .jsp files are assumed to be relative to the /html directory. So if, for instance, I set the path as /test/test.jsp then Liferay looks for the file in /html/test/test.jsp. But NitroX requires the full path, including the /html.
    I've gotten this to work on another competing product - in that product I set the Web Root to be the /html directory and it works great. That product allows you to set the path of the struts-config.xml separately. Is there any way to do something similar with NitroX? I tried changing the webroot in the .m7project file manually but it doesn't like it. It seems to insist that the struts-config.xml file is in the webroot.
    Thanks.

    NitroX currently supports only a war directory structure. When a project is created, the Web Application Root directory is computed as the directory containing the WEB-INF folder (which should contain the web.xml file).
    All web app resources (JSP files, image, css files, etc) are expected to be under the Web Application Root directory (at any nested directory level).
    We will enhance this behavior in the future to support arbitrary directory structures.

  • How can I configure iPlanet WS6.0 to recognize relative paths for DTD file using crimson XML parser running within a java servlet2.2?

    Actually, I can get it working using an http://.... reference while with relative reference ( i.e. just the dtd filename) it doesn't work; here is the stack trace:
    org.xml.sax.SAXParseException: L'URI relativo "MLP_SLIA_200.DTD"; non puo essere risolto senza una base URI.
         at
    org.apache.crimson.parser.Parser2.fatal(Parser2.java:3185)
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
         at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2758)
         at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2730)
         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1129)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
         at tilab.nimble.interfaceLIF.ParserDomXML.parseDocument(ParserDomXML.java:55)
         at tilab.nimble.interfaceLIF.ReqLIFTrackingServlet.doPost(ReqLIFTrackingServlet.java:777)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
         at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065)
         at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

    Actually, I can get it working using an http://.... reference while with relative reference ( i.e. just the dtd filename) it doesn't work; here is the stack trace:
    org.xml.sax.SAXParseException: L'URI relativo "MLP_SLIA_200.DTD"; non puo essere risolto senza una base URI.
         at
    org.apache.crimson.parser.Parser2.fatal(Parser2.java:3185)
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
         at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2758)
         at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2730)
         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1129)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
         at tilab.nimble.interfaceLIF.ParserDomXML.parseDocument(ParserDomXML.java:55)
         at tilab.nimble.interfaceLIF.ReqLIFTrackingServlet.doPost(ReqLIFTrackingServlet.java:777)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
         at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065)
         at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959)

  • The specified file or folder name is too long,the url path for all files and folders

    The specified file or folder name is too long,the url path for all files and folders must be 260 character or less
    can we increase this limit?
    MCTS,ITIL

    Hi,
    As I understand, you want to increase the length of URL path in SharePoint 2010.
    Per my knowledge, this limit cannot be increased. SharePoint limits URL length because all relative URL links are stored in the clear forms on the SharePoint content DB and often this links are used as primary keys to link one table with another. Fields
    which are used to store these links (for instance tp_DirName from the AllUserData table) allow storing only 256 characters.
    There are several ways that you can resolve or mitigate URL length problems in the SharePoint Server 2010 environment. The following list provides suggestions:
    1. Upgrade all the end-user browsers to Internet Explorer 8, which has a longer URL length limit.
    2. Use shorter names for sites, folders, and documents and control the depth of the site and folder structures to reduce the lengths of URLs.
    3. If possible or allowed, use ASCII names for sites, folders, and documents. This will avoid situations where the URL will be lengthened by being encoded.
    4. To reduce the risk that the SharePoint Server 2010 end-users will encounter problems because of URL length limitations, we recommend that you apply the following effective limits in the deployment:
    256 Unicode (UTF-16) Code units - the effective file path length limitation, including a domain/server name
    128 Unicode (UTF-16) Code units - the path component length limitation
    More reference:
    http://technet.microsoft.com/en-us/library/ff919564(v=office.14).aspx
    http://sharepointknowledgebase.blogspot.in/2013/04/url-path-length-restrictions-in.html#.VKJN53BJA
    Best regards,
    Sara Fan

  • Css/js relative path for embedded server

    We have recently begun using relative paths for css and js files in our deployed applications:
    <link href="../../resources/css/global3.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../../resources/script/globalScript.js" type="text/JavaScript"></script>
    I cannot figure out where to put the resources folder on my local machine so the pages will link correctly when running a project on my embedded server in JDev. Can anyone please help?

    Hi,
    the embedded OC4J has its configuration files at
    \jdeveloper_installdir\jdev\system\oracle.j2ee.<version>\embedded-oc4j
    However, if you use relative addressing then web applications try to find them relative to the public_html directory of the Viewlayer project
    Frank

  • Get the relative path for java class

    How to get Relative path for java class which is inside in web-inf directory in webapps

    ajay.manchu wrote:
    Hi gimbal2,
    My Requirement is i need to run a java class from batch file,when i created batch file in that i need to mention the complete path of the java class,so instead of mentioning that i want to provide only java class name,thats why i asked that one..
    can u help me regarding that....
    Thanks in advanceI wonder how that would work then. Let's take a fictive example. You have a class com.mycompany.myapp.Foo. This would mean that the class is stored in some directory like this:
    c:/webrootdir/myapp/WEB-INF/classes/com/mycompany/myapp/Foo.classTo be able to run such a class from the commandline using Java, you would have to invoke this command:
    java -cp c:/webrootdir/myapp/WEB-INF/classes com.mycompany.myapp.FooHow would knowing the exact path to this class help you?

  • Relative Path for Jquery into Content Editor Web Part

    Hi;
    I'd add a Content Editor Web Part (CEWP) to a web part zone. I'd edit that CEWP in HTML view and add my script which load Jquery and my question :  how to use a relative
    path for Jquery :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
      Localizable="false" />
    <script src="/sites/XXX/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    My code
    </script>
    Regards

    Hi;
    Firstly, I have used : 
    <script src="/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    But any result and any change and If I add /Sites/XXX/ : it works correctly ?
    My code is :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
        Localizable="false" />
    <script src="/sites/XXX/Style Library/Scripts/jquery.min.js" type="text/javascript"></script>    
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(displayTitle, "SP.js");
    var site;
      var context;
      function displayTitle() {
        //Get the current client context
        context = SP.ClientContext.get_current();
        //Add the site to query queue
        site = context.get_web();
        context.load(site);
        //Run the query on the server
        context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQueryFailed(sender, args) {
      alert('request failed ' + args.get_message() +
        '\n' + args.get_stackTrace());
    function onQuerySucceeded(sender, args) {
        $("#layoutsTable table th span").html("Bienvenue sur le site " + site.get_title() + " - Direction Technique");
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Biblioth')").parent().parent().hide();
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Listes')").parent().parent().hide();
    </script>

  • How to set default value for html:file in struts

    hi
                   i am working on an application using struts situation is i am using the
    <html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie                the user wish to upload that default file the default file get uploaded on page submition.     Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this.     thanks in advance

    www.google.com?q=STRUTS+DOCUMENTATION

  • Invalid Path for target file, check if connector is deployed correctly

    Hi all,
    I've got a tricky problem over here: we are using OMB scripts for generating simple extract mappings that just copy data from an oracle source table to a flat file on a directory. Up untill now ( with version 11.1 ) this did not pose any troubles, but now we are using 11.2 for the first time and we don't get the mappings to execute. Generating, validating and deploying all works fine, only executing fails with the error: "Invalid Path for target file, check if connector is deployed correctly". It ends to rapidly, so I'm assuming the problem lies in the repository and not on the database itself.
    I'm pretty sure all locations are defined as needed, flat file operator in the mapping has correct location, the flat file module has the same location,...
    I tried almost everything: recreate oracle module, recreate flat file module, unregister and recreate db location, unregister and recreate dir location, recreate mapping and flat file, export/import...
    The strange thing is, I was able to execute a mapping once. Although it ended with an error (due to a function in the mapping), it created the file correctly. After that I needed to update the directory path of the target location and from then on, I always got the error above, and I don't see a good reason.
    Any suggestions??
    Tnx,
    Michel

    That error is displayed when the generated code fails to execute with one of the following database errors;
    UTL_FILE.INVALID_PATH
    UTL_FILE.INVALID_OPERATION
    UTL_FILE.INVALID_FILEHANDLE
    So its worth checking the generated code for that map and searching for the code around UTL_FILE.FOPEN and seeing what the path and the file name in the code are. Maybe the file is created with permissions such that it can be created but not then re-written and its an OS permissions thing (such as UMASK settings).
    Cheers
    David

  • The icons for html files are blank . . . how do i get them to show the firefox image

    on the desktop and in directories, the icons for html files are blank . . .
    firefox is my default browser . . .
    how do i get the icons to show the firefox image ?? . . .

    You can check for issues with the Windows icon cache and try to rebuild the icon cache.
    # Open the Task Manager (Shift+Ctrl+ESC)
    # In the Process tab, right-click on the Explorer.exe process and select End Process.
    # Open the file picker via "File > New Task (Run)" and click the Browse button.
    # Type or Paste %USERPROFILE%\AppData\Local (%LocalAppData%) in the File name field (AppData is a hidden folder).
    # Select the IconCache.db file and use "Delete" in the right-click context menu to delete the file.
    # After the IconCache.db file has been deleted, start a new explorer.exe process via "File > New Task" to get the desktop and Taskbar back.
    The IconCache.db file is a hidden file, so make sure that you can see hidden files.
    * http://kb.mozillazine.org/Show_hidden_files_and_folders

  • How to create search path for the file on the desktop..

    hello experts..
          I have used gui_upload module to upload the data from flatfile to the internal table, in that how can i create search path for the file selection in the selection screen, also please help me the code to update the ztable.
    thanks

    HI
      If iam not wrong you want to select a file from a location that you don't know so if this is ur problem then use the function module
    F4_FILENAME
    this FM helps to locate and select the desired file from the system.
    Sample code that you can check is
    How to get windows filename
    PARAMETERS: lv_file LIKE rlgrap-filename.
    Method 1
        CALL FUNCTION u2019KD_GET_FILENAME_ON_F4u2019
        EXPORTING
        MASK = u2019,.txt,.*u2019
        STATIC = u2019Xu2019
        CHANGING
        FILE_NAME = LV_FILE.
    Method 2
    CALL FUNCTION u2019F4_FILENAMEu2019
    EXPORTING
             program_name = syst-cprog
             dynpro_number = syst-dynnr
             field_name  = u2019 u2019
         IMPORTING
             file_name   = LV_FILE.
    Regards
    Pavan

  • INVALID PATH FOR TARGET FILE - 11g

    I had several mappings that's need to run almost all of my mappings got this same error,
    OWB Owner: owb_rpo_ev04
    User Owner: owb_rpu_ev04
    h2. "INVALID PATH FOR TARGET FILE, CHECK IF CONNECTOR IS DEPLOYED CORRECTLY"
    -Flat File Location has been indicated
    -Locations has been deployed
    -Files Location has been deployed
    -Physical Location has been created
    Two mappings is working prefectly without any error, but to several mappings the one with Flat Files Location are the one with the error when executing. I already grant permission owb_rpu_ev04 to UTL_FILE. I even create a synonym for UTL_FILE the i can used "ECT_FILE"
    Files are in FTP,
    h2. partial script
    OUTPUT_FILE ECT_FILE.file_type;
    FILENAME VARCHAR2(50);
    FILEPATH VARCHAR2(50);
    email_subject VARCHAR2(200);
    email_body_hdr VARCHAR2(10000);
    crlf VARCHAR2(2) := chr(13)||chr(10);
    OWB_FAILURE_RUN EXCEPTION;
    PRAGMA EXCEPTION_INIT (OWB_FAILURE_RUN,-20000);
    PROCEDURE CHK_EXECUTION (EXEC_FLAG IN NUMBER) AS
    BEGIN
    IF EXEC_FLAG = 3 OR EXEC_FLAG = 4 THEN
    RAISE OWB_FAILURE_RUN;
    END IF;
    END;
    BEGIN
    FILEPATH := 'ECTDM_EV04_OUTFILE_DIR';
    -- ECTBusiness.csv
    ECT_RUN_BATCH_MAP1 ( 'PLSQL', 'ECTDM_IN_M_BUSINESS_L1', 'OWB_RPU_EV04_LOCATION', 'ERROR_DETAILS', 0, EXEC_FLAG, 'A','DM');
    CHK_EXECUTION (EXEC_FLAG);
    Edited by: ellenore on Apr 26, 2012 5:52 AM
    Edited by: ellenore on Apr 26, 2012 6:03 AM

    That error is displayed when the generated code fails to execute with one of the following database errors;
    UTL_FILE.INVALID_PATH
    UTL_FILE.INVALID_OPERATION
    UTL_FILE.INVALID_FILEHANDLE
    So its worth checking the generated code for that map and searching for the code around UTL_FILE.FOPEN and seeing what the path and the file name in the code are. Maybe the file is created with permissions such that it can be created but not then re-written and its an OS permissions thing (such as UMASK settings).
    Cheers
    David

  • How to create thumbnail view for html files

    hi,
    I want to create thumbnail view for html files, not for image files.. can we treat html files as images..
    Anybody help me..

    You can right click on your Desktop and select New Folder.  In Finder File > New Folder should work too, not in front of my Mac.
    Welcome to back by the way.  You might find these websites helpful.
    Switch 101
    Mac 101

  • :-)  How can we change the default file path for Bank file ( dmee ) ?

    Hi All,
    We encounter a problem.
    Electronic bank file ( created after a F110 run ) are created, in an automatic way to the DIR_TEMP directory. ( On the SAP server )
    How can we change the default file path for Bank files ( dmee ) ?
    We'd like to specify another path.
    Thx for your help.
    Erwan

    Hello,
    Make sure that you have created the directory in transaction code AL11 with the help of basis consultants.
    You can link your PC directory to the application server.
    You can maintain the path whether your file needs to get saved in OBPM4 against your DMEE structure example GB_BACS etc.
    If you do not maintain any path in OBPM4, then the file gets saved to temporary directory. If you give the directory path name in OBPM4, then the file gets saved to that directory with numbers 0001, 0002, 0003 etc till it reaches 9999 and reset from the beginning.
    If you give the path as well as file name as ABCD, then the file gets generated to that directory folder with ABCD0001, ABCD0002, ABCD0003 etc. till it reaches ABCD9999 and reset from the beginning.
    Hope this solves your problem.
    Regards,
    Ravi

Maybe you are looking for

  • Excise Invoice Error in STO from Manufacturing to Manufacturing Plant

    Hi, This is a scenario of Intracompany (within a company) STO from one manufacturing to another manufacturing Plant. Steps involved are ME21N: STO Creation with doc type UB VL10B: Outbound Delivery VL02N: PGI (Mvt Type 641) VF01: Billing J1IIN: Excis

  • Applescript to Print "Fill entire paper"

    Hello, I'm using applescript to take images that are added to a folder to automatically open in preview and print. The print options will not let me save settings. I'd like to always have the print set to "Fill Entire Paper" instead of "Print Entire

  • Payslip messages on IT0128

    Hi I'm currently using an ABAP report to generate leave forfeiture messages per employee. The generated messages must then be written to IT0128 to display on the employees payslip. I can't use the ST text through "SO10" cause each message is unique p

  • Problem in starting servers of a server inteliigence agent

    hello, I created two SIA's, one pointing to Mysql database and another one pointing to an oracle database. My problem is that I am not able to run all the servers of both the SIA's together. Server's of only one SIA gets completely run and the server

  • CREATE CONTROLFILE REUSE DATABASE ....(what's the meaning of the 'REUSE')?

    I know the Oracle documents about 'CREATE CONTROLFILE': [http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm] but i don't understand the following statements: REUSE Specify REUSE to indicate that existing control files identifie