What is the webapp root url?

I have some problems resolving urls in my webapp jsp. The webapp is packaged in
a war file inside a ear file. in the ear file's application.xml, I specified
that the context root for the webapp to be /foo. However, if I wrote in my jsp
a uri like /bar, it takes me to http://localhost:7001/bar, instead of http://localhost:7001/foo/bar.
how can i use the webapp root context in my jsp?
-hoki

I guess you will have to use the servlet-mapping in the web.xml to do the mapping.
          Ho-Ki Au wrote:
          > I have some problems resolving urls in my webapp jsp. The webapp is packaged in
          > a war file inside a ear file. in the ear file's application.xml, I specified
          > that the context root for the webapp to be /foo. However, if I wrote in my jsp
          > a uri like /bar, it takes me to http://localhost:7001/bar, instead of http://localhost:7001/foo/bar.
          > how can i use the webapp root context in my jsp?
          > -hoki
          Rajesh Mirchandani
          Developer Relations Engineer
          BEA Support
          

Similar Messages

  • What is the diffrence between URL and URI

    Hi all
    Can any one tell me the difference between URI and URL . I have got a doubt that since somany days what exactly the URI and URL. Can anyone tell with example .
    Thq

    Please go through this url
    http://www.onjava.com/pub/a/onjava/excerpt/jvntwkprg_3e/

  • What is the REST endpoint URL to get list of site collections in Sharepoint ?

    Hi,
    If I go to Sharepoint 2013 site, click on Admin -> Sharepoint, you will see a list of site collections (the link is https://somename-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx)
    What is the REST endpoint URL to retrieve this list of site collections ?
    I was trying _api/search/query?querytext='contentclass:sts_site' or _api/search/query?querytext='contentclass:sts_web', but it doesn't give the whole list...

    As far as i know, There is no REST endpoint at FARM level
    it would be good to see a possible way to do this.
    If my contribution helps you, please click Mark As Answer on that post and
    Vote as Helpful
    Thanks, ShankarSingh(MCP)

  • What are the new / correct URLs for the Servlet / Persistence XSD ?

    Hi,
    the URLs: http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd
    http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd
    Do not work anymore and you constantly get annoying validation errors in all XSD validating IDE's.
    What are the new URLs now? I could not find any related document or article in the internet.
    Thanks!
    Sebastian

    you should never rely on remote resources for xml validation. you should always have them locally.

  • What is the last root task of an ora install

    Hello
    I installed the db 11r2 on a redhat box and the ssh/xming failed just as the installer was about to run the final root task.
    I'd rather not trash the install and run the task manually. Any way to find out what script that last root task would be? There are loads of .sh files and no clue in the installer log.
    Thanks
    Kevin

    At the end of the installation root.sh is executed and that can be found under $ORACLE_HOME. You can re-run it and that should give a clue which steps fails.

  • What is the resource download URL in the exported books.xml file?

    What is the purpose of the resource download URL in the exported books.xml file? The following is an excerpt of a books.xml file.
      <resourceItemInfo>
        <resource>urn:uuid:309dffc8-7993-4837-b8e9-00easde241cfa</resource>
        <resourceItem>1</resourceItem>
        <metadata>
          <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Paradise Lost</dc:title>
          <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Milton</dc:creator>
          <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/epub+zip</dc:format>
          <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Project Gutenberg</dc:publisher>
          <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
          <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/">http://www.gutenberg.org/ebooks/26</dc:identifier>
        </metadata>
        <src>http://xxxxx.com/books/309dffc8-7993-4837-b8e9-00e97e1cfa.epub</src>
        <downloadType>simple</downloadType>
        <licenseToken>
          <resource>urn:uuid:309dffc8-7993-4837-b8e9-00e97e241cfa</resource>
          <permissions>
            <display/>
            <excerpt/>
            <print/>
          </permissions>
        </licenseToken>
      </resourceItemInfo>

    No real purpose.

  • Help!? Hilfe!? What is the topic: "basis-url"? What does it mean?

    I want to use the iCal-Server, never before done!
    I used the standard-terms, wich was shown in the context!
    Now I want to publish my own calendar on the server!
    There is the question about the basis-url!!!
    What does it mean?
    What is the term an the correct syntax, to fill in?
    the same in german
    Ich versuche gerade krampfhaft, den iCal-Server bei uns zu etablieren!
    Ich habe vorsichtshalber alle Standardeinstellung gelassen!
    Nur, was muß ich jetzt bei mir als Client eintragen, vor allem bei dem basis-url?
    Ach, es wäre so schön, mal eine wirklich gute deutsche, vollständige und zusammenhängende Beschreibung von Apple zu bekommen!!!!
    Viele Grüße
    und schon mal Danke
    Robert

    Hello,
    FYI -- "here", as in these forums (which are targeted at BB/RIM services rather than carrier services), would not be the best place to find out something specific for one carrier. With so many thousands of carriers with dozens of different plans each, it's pretty much impossible to keep track of the specifics. The generic information is this:
    http://www.blackberryfaq.com/index.php/What_do_I_need_a_Data_Plan_for%3F
    But, there certainly can be variations on that given the different packages carriers put together. I do suggest you do as JSanders recommended -- contact your carrier and find out what you've signed up for.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • In AS Java, what is the list of URL entries?

    In AS ABAP we have transaction SICF that lists each and every URL combination that the AS ABAP processes.  Is there anything comparable on the java side?  Pouring through documentation for the few entry URLs for each application doesn't seem sufficient...
    Ken Chamberlain
    University of Toronto

    Hi,
    SICF tcode lists web services which can be called for a specifc use. These services can be used through JAVA and the details can be configured in DESTINATION Service of AS JAVA.
    Rest if you intend to find the services running, goto Deploy service on Visual Adminitsrator and Click the Application tab to check the list of all services deployed/running on the JAVA engine.
    Thanks Nirmal

  • What is the default root of the servlet engine in IPlanet v6?

    I am trying to get java based code to work on IPlanet's webserver/servlet engine version 6. The servlets are being inited, but they can't find their .properties files (xml variable files). I have been able to install this code on many servlet engines including JRun, Tomcat, and Jserv by placing the .property files into the default root of the servlet engine. In JRun, for example, it would be Allaire/Jrun/servers/default. I have tried placing them in several directories and adding them individually to the classpath, but still no luck. Any help would be greatly appreciated.

    Hi,
    Please place your claspath in jvm12.conf file.
    Which will be under /server-root/https-instance/config/jvm12.conf.
    For more info about how to set classpath for running servlet. Please look out the below link.
    http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/serv.htm#17272
    http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/xjvm.htm#21181
    http://docs.iplanet.com/docs/manuals/enterprise/50/pg/2-config.htm#1069613
    I hope this helps.
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • What makes the "Enable Root User" option available?

    I've read the articles on enabling and disabling the root user.  They all get to the Open Directory Utility where you need to "Choose Edit > Enable Root User" .  I can successfully do this on MacBook Air with Lion, but not my Mini with Mavericks because Enable root User is not enables (grey).  WhatdoI need to do to enable it, or another way, what would cause it to be disabled?

    cdefromtacoma wrote:
    Never mind.  I have decades experience with Unix/Linux etc. (just not so much with OS X), and in this instance I know I need root.  Besides, if not this time, then sometime soon.  Thanks for your efforts though.
    All the more reason for my question. You can always get root via sudo. If you didn't have that experience with UNIX then it might be a more difficult question of explaining how to use the Terminal. The only reason to enable the root user is to perform an Aqua login as root. All of the system-level operations are far more easily done in the Terminal than in the UI. Plus, nobody, including Apple, ever enables root so there is no telling what performing UI actions as root will do. I'm not being pedantic here. I am just repeating what I hear from Apple. I filed a bug report on the buggy "enable root" operation and Apple's response was literally "why not just use sudo?".

  • What is the default root password for iMac?

    Did I miss something in the install?
    I don't have the password for the root account.
    Is there a standard default?
    Regards,
    Ellen

    The root account is not enable by default. You will have to enable it if you what it.
    But let me ask you why you want to enable it? Most users have no trouble maintaining their machines by using either an admin account or sudo whne the need for root privileges arise.

  • What is the Reports gateway URL?

    The A92102-01 Reports Services documentation mentions a reports gateway URL. What is this? Where is it set? The doc mentions Chapter 3, but I do not see anything there that seems relevant. I want to get Reports integrated into Portal and I require this information...
    Regards,
    John

    I believe you were trying to access the old iSetup configurator website. iSetup is no longer a hosted product and the configurator module has been decommissioned. iSetup is available as a product within the E-Business suite instance. You can see the iSetup menu when you assign 'Oracle iSetup' responsibility to a given user.
    Thanks,
    Lokesh Mathur

  • I have v1.2 on my nexus 4, and the update function doesn't seem to be working. What is the app.update.url I should point my phone to?

    I select 'check for updates' and it will not display anything other than 'checking for updates...' below the button. I do not see any internet traffic in the status bar as it does this. Also, I have left it to 'check for updates' all night, to no avail. Any definitive answers would be great. 'https://update.boot2gecko.org/beta/update.xml' doesn't work and neither does 'https://aus3.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml'
    I have searched extensively to find where the update channels are located and those, and variants like them, proffer no changes in my situation.
    I am starting to wonder if it is the program responsible for checking for updates, or if it is the build for nexus-4 that is having the issue.
    Another question that would help in my search to resolve this issue is, does anyone know what program is responsible for checking for these updates?
    All help is appreciated, and thank you in advance.

    I have since changed my build to master, but this time without using mozilla-central as my gecko path. I have had no issues so far with the stability of the master branch, as I did in the past with mozilla-central as the gecko path.
    After having done this, and restoring my /data/local and /data/b2g directories, I am now recieving updates. At least, it updated my marketplace after booting for the first time. Also, I am no longer getting the check now stuck at 'checking for updates...'.
    So, I am going to call this solved with changing to master, without using my .userconfig. Further, using Michelle's input, I will periodically git pull, repo update, and reconfigure, build, and flash the master branch.
    Thank you all for the help.

  • What is the Behavior.Navigation URL for creating navigation bar links for search scopes for security group and distribution groups?

    ...the search scope is used to subset the SGs and DGs. The search scope itself shows expected results. The search scope filter used is: /Group[Type='Security' or Type='MailEnabledSecurity'][(Domain = 'DomainX') or (Domain = 'DomainY')]
    Tried the following, with the GUID being the resource ID from the search scope for security groups:
    ~/identitymanagement/aspx/customized/CustomizedObjects.aspx?type=Group&searchtype=e8ed98b6-e299-4b8d-bfe5-e4b2adf1cd60
    ~/IdentityManagement/aspx/groups/Groups.aspx?type=Group&searchtype=e8ed98b6-e299-4b8d-bfe5-e4b2adf1cd60
    Thanks

    are you talking about redirect URL in search scope ? FIM will automatically add the searchtype querystring
    for custom groups search scope you can use :
    ~/IdentityManagement/aspx/groups/AllGroups.aspx
    and configure you search scope to use the same UsageKeywords as for the security groups
    and restart your IIS server using the command "IISRESET"
    in your case if you want to create navigation bar link to your group-type search scope use may use this format:
    http://{your fim server}/IdentityManagement/aspx/groups/AllGroups.aspx?searchtype={your searchscope guid}&content=%2a
    ex : http://fimserver/IdentityManagement/aspx/groups/AllGroups.aspx?searchtype=47e0a973-0ab4-46f5-815f-f5028c1af58e&content=%2a

  • What is the portal root directory for uploading files

    Hi
    I need to upload js files to my portal server (to the home page)
    Can anyone let me know where is the the folder in the server that I need to put the files and the portal will see it.
    Thanks!!

    Hi,
    Oracle Portal doesn't have a "root" directory - Oracle Portal is a combination of many other products & services.
    You need to put your .js files in a Directory & tell Apache to "look" in tthat directory for the .js files. You need to use a directive offered by Apache - Alias - to achieve this. You need to tweak main the Apache Configuration File - http.conf - & specify the folder where your .js files reside. You need to modify the Configuration File using the Entrerprise Manager only.
    Here's an example :-
    Alias /js C:/OraMidTier/javascript
    <Directory C:/OraMidTier/javascript>
              Order allow,deny
               Allow from all
    </Directory>You can then dump all your javascript files in this folder & access it in your HTL Pages with the Virtual Path - /js - e.g.:-
    <script type="text/javascript" src="/js/mySrc.js">You can get more information from the Oracle HTTP Administrator's Guide ( or, the Apache Documentation ) about the Alias DIrective.
    Regards,
    Sandeep

Maybe you are looking for

  • Message in status "scheduled for outbound processing"

    Hi, I was tring to perfom volume test. The scenario is XMLFILE --> XI --> IDOC(R/3). I reduced the polloing interval to 2secs and it went well for 15 min. Later I left it like that for an hour and found that all the messages are queued up scheduled f

  • WatchESPN app stutters / speeds up

    Hi -- I'm running Apple TV connected to Time Warner provided wireless. My router clocks in a 30 mbps down ad 5 mbps up, verified through speed tests. When I watch ESPN through the Apple TV app, it is pretty finicky. I experience some of the following

  • Dialog intance on windows

    Hello SAP Gurus, I'd really need to seek for your help. Do you know how to add another dialog instance on windows/mssql but the CI is in unix/db2? what are the steps that I need to do? thanks in advance.

  • Creating Classification view for material through Standard Function

    hi, I have created the material code through BAPI_MATERIAL_SAVEDATA. For quality inspection i have used BAPI_MATINSPCTRL_SAVEREPLICA. i have to create classification view for that material code. Can anyone suggest me which standard function helps me

  • COLLECT into table of VARCHAR2 giving ORA-22814 error

    Hello, I am trying to collect a VARCHAR2(5 CHAR) column into a table type of VARCHAR2(5 CHAR) but it gives me the ORA-22814: attribute or element value is larger than specified in type. Even if I cast my string to this data type. SQL> CREATE OR REPLA