Relationship of codebase and code (relative path)..

in tomcat installed directory, under ROOT directory, i have jsp folder and web-inf folder. all my jsp in /jsp/*.jsp and all my classes in /web-inf/classes/myservlets/*.class.
I am trying to include applets for java plug-in and
code like this
<jsp:plugin type="applet'
codebase="jsp"
code="..\web-inf\classes\myservlets\MyTestApplets.class"
width="475"
height="350">
this didn't work.
Any idea about relative path about codebase and code? By the way, I am working on 2000
Thanks.

you can try to use absolute path begins with "http" in the codebase

Similar Messages

  • How can I multi-find and replace relative paths to external topics?

    I am using RH7 and publishing to a company server share. External topics are saved on the same server share and linked on my local drive to create a relative link. How can I do a multi-find and replace on the relative links to change the path to the external docs? The paths do not show up in the Topics List because they are relative, not absolute. Although changing all of the many paths manually would be job security, I would like an easier fix. Thanks for any help.

    Hello again
    Likely your best bet at this point is to use a good Multi-File Find and Replace utility.
    While RoboHelp has one included, it often fails. So we typically recommend something like FAR (Find And Replace) or BKReplace.
    Click here to visit the FAR site
    Click here to visit the page for BKReplace
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Relative Path and FileWriter

    I have the following code and it works fine when running standalone. I have to add that entries.xml and my Java file are in the same package.
    String filename = this.getClass().getResource(".").getPath() + "entries.xml";
    FileWriter writer = new FileWriter(filename, false);But when I run this inside Tomcat, getResource(".) is returning me my tomcat path instead of where my Java class is located. How can I fix this to work in both places and use relative paths?
    Thanks in advance.

    Moving to another forum. I think this is an incorrec forum for this question.

  • Using Relative Path instead of Full Path OMBPlus

    Can we use relative paths in OMBPlus scripts instead of full paths. For example all my OMBplus (tcl) scripts are in folder;
    C:\tfsroot2\Interfaces and Extracts\branches\Interfaces and Extracts1.1\000 - OWB Prototype\deploy\ora.stg
    and the MDX file I would like to deploy is in
    C:\tfsroot2\Interfaces and Extracts\branches\Interfaces and Extracts1.1\000 - OWB Prototype\deploy\ora.stg\scripts\dwextract\tables
    but when I try to use
    OMBIMPORT MDL_FILE '../scripts/dwextract/tables/$tblName.mdx'
    instead of
    OMBIMPORT MDL_FILE 'C:/tfsroot2/Interfaces and Extracts/branches/Interfaces and Extracts1.1/000 - OWB Prototype/deploy/ora.stg/scripts/dwextract/tables/$tblName.mdx'
    It does not work.
    I use
    call "C:\OraHome_1\owb\bin\win32\OMBPlus.bat" "C:\tfsroot2\Interfaces and Extracts\branches\Interfaces and Extracts1.1\000 - OWB Prototype\deploy\ora.stg\OMB_DEPLOY_TBL.tcl" XTRCT_WRK_INPUT_FILE
    in order to execute.
    I think it is because It set the OMBPlus.bat location is a base folder. Any way to overcome this issue and use relative paths instead of the full path?

    OK, a couple of things. First, you need to remember that TCL treats back-slashes as an escape character. Always use forward slashes in your paths, or double up the back slashes .
    So, this should work:
    CD "C:\tfsroot2\Interfaces and Extracts\branches\Interfaces and Extracts1.1\000 - OWB Prototype\deploy\ora.stg"
    call OMBPlus.bat "C:\\tfsroot2\\Interfaces and Extracts\\branches\\Interfaces and Extracts1.1\\000 - OWB Prototype\\deploy\\ora.stg\\OMB_DEPLOY_TBL.tcl" XTRCT_WRK_INPUT_FILEor this:
    CD "C\tfsroot2\Interfaces and Extracts\branches\Interfaces and Extracts1.1\000 - OWB Prototype\deploy\ora.stg"
    call OMBPlus.bat "C:/tfsroot2/Interfaces and Extracts/branches/Interfaces and Extracts1.1/000 - OWB Prototype/deploy/ora.stg/OMB_DEPLOY_TBL.tcl" XTRCT_WRK_INPUT_FILEAs an FYI for OMB, if you are prone to doing a lot of scripts and so building libraries of common functions, you can also easilly use the "file" command in order to determine the current directory at runtime so you can plunk your script anywhere with it's required libraries and it will be able to source them at runtime.
    For example, all our scripts have this basic bit of code at the beginning so we can pass them between developers and it doesn't matter where anyone put their script directory - the scripts will find the libraries as long as they are co-located:
    #  Get Current Directory and time
    set dtstmp     [ clock format [clock seconds] -format {%Y%m%d_%H%M}]
    set scrpt      [ file split [file root [info script]]]
    set scriptDir  [ file dirname [info script]]
    set scriptName [ lindex $scrpt [expr [llength $scrpt]-1]]
    set cnfg_lib "$scriptDir/ombplus_config.tcl"
    set owb_lib  "$scriptDir/omb_library.tcl"
    set sql_lib  "$scriptDir/omb_sql_library.tcl"
    #  Import Lbraries
    #      Assumes that owb_config, omb_library, and omb_sql_library are in the same directory as this
    #      script.
    #get config file
    if [catch { set retstr [ source $cnfg_lib ] } errmsg] {
       puts "**********************************************************************"
       puts "* Libraries are missing from the current directory. Exiting.... *"
       puts "**********************************************************************"
       return -code 2
    #get standard library
    source $owb_lib
    source $sql_lib
    #  Set Logfile
    #    This will overwrite anything set in the config file.
    set LOG_PATH "$scriptDir/logs"
    file mkdir $LOG_PATH
    set    SPOOLFILE  ""
    append SPOOLFILE $LOG_PATH "/log_"  $scriptName "_" $tabName "_" $dtstmp ".txt"
    # Now the main script body goes from here.Cheers,
    Mike
    Edited by: zeppo on Aug 4, 2009 7:02 AM
    Edited by: zeppo on Aug 4, 2009 7:03 AM

  • Can you customize the Portal Page_Path item to use relative paths?

    Why does the built-in Portal page_path item generate absolute paths instead of relative paths? It would seem to me to make sense that a breadcrumb (page_path) link would always be on the current site and that relative paths would make sense.
    Is there a setting that can be changed for it to generate relative paths?
    Thanks,
    Jeff

    I don't think that the portlets lend themselves to a viewing (compact) vs. using (maximized) distinction, beyond what the "Show/Hide Folders" button provides.
    In other words, with the folders hidden, things are as small as we felt we could make them for both viewing and editing. The layout is quite liquid and can be stretched and shrunk to fit, given the realities of the items in each portlet (large quantities, long titles, etc.). The visitor tools allow you to arrange the portlets however you'd like.
    Admittedly, the WYSIWYG editor is quite large and we'd like to provide options for the user to size it for their screen or to show/hide it in a future release.
    One thing that would help would be user-selectable columns in tables I suppose. That way you could hide more columns to save space.
    At one point we put the portlet in maximized mode when the user edited something, but that required a full post of the browser, negating the benefits of the AJAX portlet refreshing only itself.
    Do you have any specific examples of what you'd like to see more compact?
    Your feedback is much appreciated.

  • 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,
              

  • PO creation-ME21n-Why SAP does not check company code and Plant relation

    Hi All,
    Does someone know, why SAP does not check Plant and company code relation at the time of PO creation or how can we put validation between plant and company code at the time of PO creation.
    <b>Example:</b> Suppose i have a company 0001 which is assinged to Plant 0001. when i am creating a PO with another company code 0002(Entering at header level-Org, data) and using Plant 0001 at line item level. SAP does not do this validation.
    How can we put this check in place?
    Thanks in advance.
    Deepak

    Hello Deepak,
    There are three types of purchasing
    - Company code specific :You need to assign company code to Pur organization
    - Plant specific : You must assign plant to pur organization
    - Cross company purchasing: No assignment between company code and pur organization.
    In the case 3, the system will not check company code and plant relationship, but it will check plant and pur organization specific.
    The following is the copy of sap help text:
    You can assign a purchasing organization to one company code. This is company-specific purchasing.
    You can assign a purchasing organization to no company code. This purchasing organization can then procure for all plants assigned to it, irrespective of the company code to which the plant belongs.
    Since each plant must be assigned to a company code, the company code can be determined via the plant in each procurement transaction, even if the procuring purchasing organization is not assigned to a company code.
    A purchasing organization must be assigned to one or more plants. This is plant-specific purchasing.
    Now, check your company-code and purchase organization assignment.
    Hope this helps.
    Regards
    Arif Mansuri

  • 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

  • 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)

  • 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.

  • 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,
              

Maybe you are looking for

  • Visual voicemail does not work anymore

    For 3 days I cannot access visual voice mail anymore, I touch a message and just nothing happens. I can dial 1 and access mailbox the classic way though. Interesting, when I get a new voice mail I can listen exactly once but then no more. I have been

  • Contacts and calendar using pc and mac

    I have a Mac at home and PC at work. I want to be able to copy/update my contacts and calendar from work on my ipod. How can I do this (easiest possible way). thanks

  • IPod Touch is not recognized by iTunes on Window Vista

    I have a laptop with Windows Vista Home Premium and I just can't get my ipod touch recognized by iTunes on this laptop, nevertheless it does recognize my iPod Nano 3rd gen. iTunes version is 7.7.0.43 If I connect the iPod Touch on another laptop with

  • Newbie in Fullscreen Mode need help

    hello i am new to writing game in java. i used to put component to panel, set Layout, that kind of things, to deal with user response. now writing game, a full-screen one, i think of having only a frame and a canvas that draw the whole output. i thin

  • Reading out filenames of a folder?

    Hello out there, does anyone know how I can read out the filenames of a special folder on my operating system with ABAP? I don't want to read the content of the files. I only need the names of all the files in that folder. The operating system is Sol