Rewrite URL in SMP and Relative Path

Hi,
some one have an example how to use Relative Path properties?
I have read this guide (Defining Back-End Connections - REST API Application Development - SAP Library) but is not very clear for me.
Thanks and kind Regards,
Elia.

When you precompile, can you say "Keepgenerated=TRUE". It might help you track
          down the difference with the URL. You should only get a 404 error when the
          resource is not found at runtime, which is independant of when you compile. The
          difference should be in how the URL is compiled.
          Chris
          ali wrote:
          > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
          > it forwards ok if I am using directly JSPs but if I am using pre-compiled
          > JSPs (and have proper servlet-mappings
          > in my web.xml), I get 404 error with the relative-path, if I change it to
          > absolute path with pre-compiled JSPs it forwards ok , then.
          > any ideas why this is so?
          > thanks,
          

Similar Messages

  • Problem with include and relative path in jsp

    Precompile jsp with wlappc in 9.2, I got the error "The include file was not found" when the jsp use <%@ include file="../includes/dataEntry/code_error.html" %>
              This code used to work with 8.1. I notice that someone has report the same problem with 9.0 and you have patch for it. Is it fix in 9.2 or do I require a patch as well?
              Thanks,
              Khuemy

    When you precompile, can you say "Keepgenerated=TRUE". It might help you track
              down the difference with the URL. You should only get a 404 error when the
              resource is not found at runtime, which is independant of when you compile. The
              difference should be in how the URL is compiled.
              Chris
              ali wrote:
              > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
              > it forwards ok if I am using directly JSPs but if I am using pre-compiled
              > JSPs (and have proper servlet-mappings
              > in my web.xml), I get 404 error with the relative-path, if I change it to
              > absolute path with pre-compiled JSPs it forwards ok , then.
              > any ideas why this is so?
              > thanks,
              

  • Problem with jsessionid and relative paths

    I'm having an issue with jsessionid in a J2EE application running on an all Oracle platform (Oracle DB, 9ias, etc.). Most of the time sessions are tracked with cookies, but occasionally the jsessionid appears on the URL (on first login with a new browser window I think?).
    Anyway, sometimes the session id is very large (100 chars +) and includes special characters, specifically a backslash. This is causing problems with relative paths in the page.
    Is this normal behavior or is there a problem with my app server/JVM setup? Has anyone else seen this? Thanks for any advice.

    Hi Stefan,
              The issue was logged as CR238704. You can either contact [email protected] or
              just pass me your email Id and I'll send the patch to you.
              -- Nagesh
              <Stefan Krause> wrote in message news:[email protected]..
              > The problem I have is that the application is very old and at the same
              > time very big (so we're doing the transition step by step) and there are
              > lots of variables (and even methods in JSP pages - no comment) shared
              > between the JSP pages!
              > So for us jsp:include isn't an option...
              >
              > Is there a way to report bugs when you've got only the free development
              > license?

  • XML data source and relative path

    Hi,
    I'm developing my reports in a Windows environment and deploying it on a Linux. My problem is, I cannot seem to specify a relative path for my XML datasource. Since, my deployement is in Linux, I cannot have the standard "C:\myreport\def.xml".
    Is there a way to use a relative path? I've tried creating a environment variable but it gives me the following error.
    ERR 63001: Invalid stream in the Data Definition URL file:///%reports/data.xml null
    -John

    I guess you must be missing some "/" in the values youre passing. Remember that it's also case sensitive. Here's what I did in my report
    The data definition has this value :
    file:///&<P_XML_CFG_PATH>ReconReports.xsd
    P_XML_CFG_PATH = //reports/dtd/
    For the Datasource
    file:///&<P_XML_PATH>&<P_XML_DATAFILE>
    And the value would be something like
    P_XML_PATH = /reports/data/xml/
    P_XML_DATAFILE = <actual filename>

  • SWFLoader loded swf and relative path issue

    Hi,
    Before explaining the problem, let me describe the usecase.
    I have dashboard flex application hosted on Host1.
    I have another flex application which acts as plugin to dashboard and is hosted on Host2.
    I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
    For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
    Everything is fine upto this point. plugin.swf get loads successfully without any issue.
    Now the problem -
    If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
    Can this issue be resolved without making any modification in source of plugin.swf.
    Thanks in advance,
    Prithveesingh Zankat.

    I don’t know if any way to fix this without changing the URL the plugin wants to load.  Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it.  But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF.  The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.

  • CFINCLUDE and relative path

    I have a website which has error catching in it and from time
    to time I have this error come through when using cfinclude.
    Could not find the included template
    project56/images1/page1.html. Note: If you wish to use an absolute
    template path (e.g. TEMPLATE="/mypath/index.cfm") with CFINCLUDE
    then you must create a mapping for the path using the ColdFusion
    Administrator. Using relative paths (e.g. TEMPLATE="index.cfm" or
    TEMPLATE="../index.cfm") does not require the creation of any
    special mappings. It is therefore recommended that you use relative
    paths with CFINCLUDE whenever possible.
    Why would this error occur for a few visiters and not for all
    when browsing my website?
    If I have to put some sort of mapping into CF Administrator
    what should I put as a mapping and why should this help?
    Thanks in advance for your help.
    Simon.

    The only thing I can think of is are you sure the page the
    'affected' users are clicking from are in a parent folder of the
    'project56' folder? The error occurs when the CFINCLUDE is looking
    in the wrong folder or when you try to include URL variables in the
    include statement.
    if you INCLUDE project56/images1/page1.html it will work, but
    if you INCLUDE project56/images1/page1.html?user=123 then you get
    an error because the INCLUDE looks for the actual text of what's
    between the quotation marks...it will not pass variables.
    I'd check the folder structure on where they are clicking
    from. In your error page, just have the referring page
    output.

  • Native package for Mac and relative path

    Hi,
    I done a small application with Javafx that start an Embedded Jetty. All works fine in Windows also with native package. Instead in Mac it works only before native packaging. Seems that the problem is how relative path are considered.
    The tree of the content is this:
    myfile.jar
    webapp (folder)
    libs (folder)
    Look at this code:
                    String webAppDir = "webapp";
                    File f = new File(webAppDir);
                    log.debug("Path webapp folder: " + f.getAbsolutePath());
                    if (!f.exists())
                        throw new Exception("The folder " + f.getAbsolutePath() + " doesn't exist");
                    if (!f.canRead())
                WebAppContext context = new WebAppContext();
                context.setContextPath("/myapp");
                context.setResourceBase("webapp");
                context.setDescriptor("WEB-INF" + File.separator + "web.xml");
                context.setSessionHandler(new SessionHandler(sessionManager));
                        throw new Exception("La cartella " + f.getAbsolutePath() + " non è leggibile");
    The problem is that before the packaging in Mac the relative path is that where the main .jar is located an so the code works because the webapp folder is found. Instead after the bundle the path became /Users/MyUser/webapp and of course the folder is not found because it is bundled inside the file.app near the libs folder.
    Someone can explain me if this behaviour is due to JavaFx packager and how I can solve the problem in a elegant way?
    Thanks very much

    Some good soul has any idea?
    Thanks

  • Migration and relative path

    Hi people,
    I would like to migrate a Performance Manager environment from DEV to PROD but I'm facing problems with linked objects.
    For example, I have an "Interactive Metric" from which I can open a Webi report, using the commad :
    Detail Analysis||http:///businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=WI-MonthlyAnalysisby+Product&sDocType=wid&sRefresh=Y&lsMProduct=$SLICE_NAME$&lsSBegin_Date= $CURRENT_DATE(d/m/y)$
    ... of course, the name is not changed during the migration. I have tried many ways to make the path be relative but I didn't success
    Thanks for your help
    Alex

    Hello  Alex,
    I recommend to post this query to the [Enterprise Information Management|Data Services and Data Quality; forum.
    This forum is dedicated to topics related to Data Integration (Data Integrator, Data Federator, Text Analysis for Data Integrator, Rapid Marts, and Integration for PeopleSoft Enterprise), Data Quality (Data Quality and Data Insight), and Metadata Management.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • Jar file and relative path ?

    Hi
    1)When a jar file is run how can I access a file that is in the same directory that the jar is in ?
    (I need access to another file that is not in the jar.)
    2) If you read an ini file from the jar with getResource etc can you write back to that ini with new values ?
    Thanks for your help.
    Tim

    1) Use getResource to locate the jar url that contains the class. You will now have to extract the local filesystem path from the jar url.
    2) No

  • Relative Paths In DSN-less JDBC URL

    Whenever I've seen DSN-less URL strings for M$ Access, they've always used an absolute path to the database file:
    String url="jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\full\\path\\src\\data\\FirstLotParts.mdb";Has anyone tried to give a relative path?
    String url="jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=src\\data\\FirstLotParts.mdb";I'd like to be able to check out my application to a clean directory and have Ant run JUnit tests without having to change the absolute path. Is it possible? Thanks - MOD

    Just answered my own question: Yes, it does work with a relative path:
    String url="jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=.\\src\\data\\FirstLotParts.mdb";MOD

  • How to use relative paths in Captivate 8 / Cómo usar URL's relativas en Captivate 8

    Hello, I have developed a bunch of courses which will be migrated to a new site and I am having trouble changing the absolute paths into relative URL's to resources such as PDF files inserted into the scorm packages. I cannot find information on how to use relative paths in Captivate. Please help. Thank you.

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • Relative paths of servlets and JSPs

              I am trying to deploy my application in Weblogic 6.0 sp2.
              I have put my JSPs and servlets in a WAR file.
              I have mapped one of the servlets to "GuiController" in the web.xml file.
              I assume that this means if any part of my URL has "GuiController" this servlet
              would be invoked.
              In the JSP (which is in the same WAR file) I would like to specify this servlet
              as the form action.
              as follows :
              <form name="test" method="get" action="GuiController">
              I would like to give the relative path so that I don't have to hard code the web
              app name. But this does not work.
              It works if I specify :
              <form name="test" method="get" action="/edcs/GuiController">
              where edcs is my web app name
              Any suggestions on how I can achieve this without hardcoding the web app name
              Thanks
              Pratima
              

    You have to deploy the web application as the default web application for
              the server. The console is broken in this regard so you have to edit the
              config.xml by hand.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "Pratima Nambiar" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am trying to deploy my application in Weblogic 6.0 sp2.
              > I have put my JSPs and servlets in a WAR file.
              > I have mapped one of the servlets to "GuiController" in the web.xml file.
              > I assume that this means if any part of my URL has "GuiController" this
              servlet
              > would be invoked.
              > In the JSP (which is in the same WAR file) I would like to specify this
              servlet
              > as the form action.
              > as follows :
              > <form name="test" method="get" action="GuiController">
              >
              > I would like to give the relative path so that I don't have to hard code
              the web
              > app name. But this does not work.
              > It works if I specify :
              >
              > <form name="test" method="get" action="/edcs/GuiController">
              > where edcs is my web app name
              >
              > Any suggestions on how I can achieve this without hardcoding the web app
              name
              > ?
              >
              > Thanks
              > Pratima
              >
              >
              >
              

  • Relative path for Download directory folder.I created a firefox profile and i wanted to use this profile in multiple machines.I wanted to use a relative path for download directory with respect to the profile folder.I need this on Linux machines

    I have a use case where I need to use different download directories with different firefox profiles.I need to use this profiles in multiple linux machines.
    I need to have a relative path to my download directory with respect to the profile folder.
    Ex: I have a selenium test which opens a website and downloads it to my machine.I want this downloaded file to go into some specific folder relative to this profile folder.How do I do this??

    That is not a practically empty xinitrc - that file only needs one line: exec WM.  Other things are entirely optional, and some of them very useful, but I'd encourage you to stick with the simplest xinitrc that will do what you require.
    Is slim involved?  Probably.  That is the source of many problems.  But to start narrowing this down, I have 3 suggestions:
    1) temporarily (at least) change your inittab to default to runlevel 3 ... actually, is it currently set to 5 or 3? if it is currently 3 that would explain why slim doesn't start.
    2) at a tty in runlevel 3 use "xinit" instead of "startx".  Startx is fine most of the time, but it is essentially just a complex wrapper for xinit.  That complexity can often iadd useful functionality, but it *always* makes troubleshooting more difficult.  So for now just use a vanilla 'xinit'.
    3) remove dbus-launch from your exec line in xinitrc.  This is done by console-kit so it is redundant and potentially problematic.  Further BOTH of these are taken care of by slim, so I'd even suggest getting both a jump start on being ready for slim and simplifying troubleshooting by removing both of them.  Just make that line "exec openbox-session"
    Edit: adding one more:
    4) temporarily switch out openbox-session for openbox.  I suspect the reason feh's setting of the background is getting overridden is due to a script or setting in openbox's autostart settings - many of these are only invoked when "openbox-session" is called, while "openbox" starts *just* the window manager itself.
    Last edited by Trilby (2012-10-03 17:30:36)

  • How to remove bullets and spacing for url links in the Related Links iview?

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor".
    All I need is to remove the bullets and increase some vertical spacing between the links.
    Currently, it looks like this:
    URL iView A
    URL Iview B
    I go through the whole section of Related Links properties, none of them seems to do what I want.
    Here are the list of properties in Related Link section (of Navigation Panel):
    Link Color
    Text Decoration of Link
    Hover Color
    Text Decoration of Hovered Link
    Initially, I thought "Text Decoration of Link" should be the right property I should look at. But there are a drop-down with 5 options: None, Underline, Blinking, Overline and Line-Through, which really can't achieve what I want.
    Thanks for advice.
    Kent
    Post with Diagram Illustration:
    <a href="http://sapnetweaverforum.blogspot.com/2006/11/how-to-remove-bullets-and-spacing-for.html">How to remove bullets and spacing for url links in the Related Links iview?</a>
    Message was edited by: Kent C.

    Hi, Kai.
    I checked the Related iView properties (URL Template), I don't see what layoutset it is really using. I am not sure, is that a layout set apply to the Related Link Iview?
    For the regular KM iView, I will see what Layout Set I want to apply, then I can go and change the properties (of layout coontroller, collection renderer & resource renderer)you mentioned. But for this Related Link iView, I really don't know. I guess it may be in the code itself.
    If there is a layout set for Related Link iView (or the place to apply layout set to it), can you point to me which one is that? (I did a search through the layout set names, I only find the AppQuicklinkExplorer (I used this for Dynamic Nav. Link iView before), if I can aply this layout set to Related Link iView, my problem will be solved.)
    Thanks for help.
    Kent

  • Actual and relative file paths - CS4(mac)

    Is there a way to save your file so that it ALWAYS looks for the relative paths of all its content?
    My issue is that when i xfer the prproj file to another computer it asks me to reconnect everything. The other computer has exactly the same folder structure as the one i'm copying from minus a different harddrive name. (I just copied and pasted the whole project from computer to computer).
    Its really getting to become a huge hassle....any work around and whatnot would be great....thanks!

    I deal with this often (yesterday in fact). Things get ugly when you try to re-link a project that has media placed in multiple folders within the main project folder. Even worse when there are a hundred cryptically named P2 mxf files.
    Try this:
    Open the *.prproj file in Notepad and do an "Edit" "Find" for the word: filepath
    Keep searching down till you get a drive letter.
    This will show the original drive letter the project was last saved with.
    To save time, and avoid relinking everything, do one of the following two... your choice:
    1.) Do a find and replace in Notepad of a short "phrase" of code containing the original drive letter, in the document. Replace it with the identical phrase containing the currently assigned drive letter.
    For Example:
    Find: <FilePath>E:\
    Replace With: <FilePath>G:\
    OR:
    2.) After noting the original drive letter in the *.prproj file by doing the "filepath" search in Notepad, simply assign the original drive letter back to the drive in "Computer Management"/"Storage"/Disk Management.
    *WARNING: Premiere is unforgiving of even the slightest error in a *.prproj file.
    ALWAYS EDIT A COPY OF YOUR PROJECT IN NOTEPAD

Maybe you are looking for

  • Yoga 2 Pro can't authenticate when mapping drive to NAS share

    I have a Qnap TS-219 NAS(Linux/Samba) which I have all my computers connected to as part of a Windows Workgroup. I have set up a share on the NAS with an ID/password.  My new y2p will not allow authentication to the share.  I can see the share in exp

  • Reformatte​d Clean install. NEED HELP

    Hi everyone my old HDD Crashed and i bought a new one, I Did a fresh install of windows 7 and now my FN + F Keys wont work, For example when i press FN + F5 i dont get anything before i used to get a screen to turn on bluetooth and stuff. Im frustrat

  • Migration of FI-CA system

    I wander how to perform migration of FI-CA (ECC6.0) system from an HP-UX to Linux Redhat on VMware. It is an system with   Oracle database The amount of data is 1,5 TB. What would be the (aprox) time for export. Where could I find guide for heterogen

  • Access Connections does not accept Windows Wireless Config

    Hi All, We are rolling out RADIUS/802.1x wireless lan in our enterprise. The wireless settings are deplyed via AD grouo policy - no problems there. I have an issue when i configure my access connections (ver 5.21) on my T61 machine. I configure AC to

  • HR Abap - Using select query

    Hello expert, I've tried provide statement and macro both work fine. Now i want to do a select statement using bedga and endda entered on screen. "getting all employee personal number & normal hours employee only    SELECT pernr      FROM pa0007