URL Mapping Help

I am running some servlet, and in the process i need to show information from a .html, how do i map the .html to the url

Well, i seems to have problem following, i get on page
found when i put the .html into the root of my
directory. (Tomcat
4.1\webapps\midp\WEB-INF\classes\help.html) Move the page heml.html to "Tomcat 4.1\webapps\midp" directory. That is the application root of your web application. And Try accessing it as http://someserver/midp/help.html.
This is the general structure of a webapp:If i call my webapp as testapp.
+ tomcat<version>/webapps/testapp/ : All html, images, and any JSPs.
  +WEB-INF/
     - web.xml
     +lib - any library files
     + classes
        + all servlets and beans in respective package structure.

Similar Messages

  • Please help me on URL mapping issue

    Hi,
    I am new to Oracle apps. So please help me to solve this issue. I have created new OC4J instance and changed my URL mapping to /MYApp but when i access application trough browser http://myapp.com/MYApp/../../help I am getting 404 error. If I change the URL http://myapp.com/forms/../../help it works fine. What am i doing wrong?
    Please help me to get raid of this issue.
    Thanks in advance
    Karthik

    Have you attempted to backup and then clear the AIF_EBS_GL_CCID_STG table and then re-ran your data load rule with the "Full Refresh" option?
    If not, you will want to do this and then check the account type in the table after the data load rule run.
    Refer to the following KM Document for information on clearing the table:
    ERPI Code Combinations are Out of Sync With EBS (Doc ID 1473119.1)

  • How could i run two file of same url mapping

    hi,
    i am very new to servlet technolgy using weblogic 8.1 server. i want to know that can i provide same url mapping to two diffrent servlet files.if yes then how could i run files seperatly - i want to know that what should i pass in the address bar.
    my directory structure is
    C:\ ----------> helloWeb
    |
    |----------->WEB-INF
    |------------>classes
    and suppose i have two files in helloWeb directry
    1) ajitAutomobile.java
    2) ajitAutomobileUpdate.java
    i m using "http://localhost:7001/helloWeb/man" in my address bar but it executes only the first servlet added.
    plz help me
    im confused...
    thanx for any answer

    You can not map two servlets to the same url because the servlet container will just send the request to the first url mapping it can match. What you can do is map one servlet that will check the request for a parameter that flags the request and if it finds it will forward the request to the next servlet.

  • XSLT mapping Help Required.

    XSLT mapping Help Required.
    Hi Experts,
    I am New to XSLT Mapping. I am practising the below Example:
    InputXML File:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    XSL StyleSheet File:
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/Gen"
    Xmlns:ns1=”http://XYZ.com/Test”>
    <xsl:template match="/">
    <ns1:MT_XSLT_Target>
    <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title>
    <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/>
    </Name>
    <Street> <xsl:value-of select="concat(concat(ns0:Mt_XSLT_Source/Person/Address/Houseno,' '),
    ns0:Mt_XSLT_Source/Person/Address/Street)"/> </Street>
    <City> <xsl:value-of select="ns0:Mt_XSLT_Source/Person/Address/City"/> </City>
    </ns1:MT_XSLT_Target>
    </xsl:template>
    </xsl:stylesheet>
    The Desired Output shuold be:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_XSLT_Target xmlns:ns1="http://XYZ.com/Test">
    <Title>Male</Title>
    <Name>Anshul Chowdhary</Name>
    <Street>83/b 2nd Main</Street>
    <City>Mysore</City>
    </ns1:MT_XSLT_Target>
    I have refered the xsl in xml and i am getting the below Oupt in a Single line like this:
    Anshul Chowdhary Male 2nd Main 83/b Mysore
    I am Unable to display in Target XML Fomrat as shown above. Please check and do the needful.
    Regards,
    GIRIDHAR

    Hi,
    I have used below for testing.
    Input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    xsl code:
    <?xml version='1.0' encoding="UTF-8"?> 
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/gen" 
        xmlns:ns1="http://XYZ.com/Test"> 
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> 
        <xsl:template match="/"> 
            <ns1:MT_XSLT_Target> 
                <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title> 
                <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/> 
                </Name> 
                <Street> <xsl:value-of select="concat(concat(/ns0:MT_XSLT_Source/Person/Address/Houseno,' '), 
                    /ns0:MT_XSLT_Source/Person/Address/Street)"/> </Street> 
                <City> <xsl:value-of select="/ns0:MT_XSLT_Source/Person/Address/City"/> </City> 
            </ns1:MT_XSLT_Target> 
        </xsl:template> 
    </xsl:stylesheet>
    For testing in PI ,change the extension from .txt to .xsl and zip it and upload into PI as an imported archive .
    Regards
    Venkat

  • The Web application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application

    Hi,
    I have created on windows service to fetch sharepoint list ad update the list items.
    when i run this service in sharepoint server(where the sharepoint site is hosted),it is working fine. If i run the same service in another machine(sharepoint installed in this machine also). it is giving the below error
    The Web application at [URL] could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
    Code snippet
    SPSite sharepointSite = null;
                SPWeb rootWeb = null;
                try
                    //SPList current = null, previous = null;
                    string colmId = ConfigurationManager.AppSettings[ID_COLM];
                    List<TaskEntity> list = new List<TaskEntity>();
                    sharepointSite = new SPSite(URL);
                    rootWeb = sharepointSite.OpenWeb();
                    SPList current = rootWeb.Lists[ConfigurationManager.AppSettings[OMEGA_REGISTRATION_LIST]];
                    WriteEventLog("current" + current.Items.Count.ToString());
                catch (Exception ex)
                    ExceptionMethod(ex);
                finally
                    sharepointSite = null;
                    rootWeb = null;
    I have pointed .net framework to 3.5 version and target palform as Any CPU. Please suggest me

    Hi mallela1,
    I also had similar issue couple of months back when I was trying to access a remote URL from a Windows service when the site does not exists in the server where service resides.
    You cannot access a remote url (even though it is SharePoint server and also in same network ) from server object model.
    SPSite can look in the current server only. here what is happening is SPSite will look for this in the current server DB and it is not finding this errror.
    So please dont use ServerObject model for accessing remote sites. You can use Client Object model for the code /requirement you have stated above.
    I wasted lot of time in finding a work around to make to work. It did not. So look for other options.
    Regards,
    Nandini

  • ORDS (2.0.7) - URL Mapping - Names need to be lower case

    Using the latest ORDS (2.0.7) - when using settings to setup multiple databases, I have noticed that the the "URL Mapping" rule will not be picked up if the "Name" of the connection is not all lower case.
    The "Routing Rule" can be mixed case, but the "Name" of the rule can not.
    I found this to be an odd behavior.
    Has anyone else come across this?
    -- Tim St.

    Using the latest ORDS (2.0.7) - when using settings to setup multiple databases, I have noticed that the the "URL Mapping" rule will not be picked up if the "Name" of the connection is not all lower case.
    The "Routing Rule" can be mixed case, but the "Name" of the rule can not.
    I found this to be an odd behavior.
    Has anyone else come across this?
    -- Tim St.

  • URL Mapping not working inside MOSS

    hi,
    I want to achieve broken URL redirection in old web application developed in MOSS.
    For this purpose, i have to use URL mapping inside web.config -
    For Example -
    <urlMappings enabled="true" >
        <add url="~/brokenpath" mappedUrl="/subsite/Pages/Home.aspx" />
    </urlMappings>
    I have checked that '/subsite/Pages/Home.aspx' url is not broken but still getting 404 exception.
    Similar tag is working under dev/local environment but not working in the production,
    Can anybody please let me know the problem or any configuration missing.
    Thanks in advance.

    Hi Saurabh, can you provide the actual broken path, both in your web.config as well as the absolute URL?
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Mapping Help for replacing source value

    Mapping Help for replacing source value
    Posted: Mar 14, 2006 1:06 AM    Reply 
    Hi all,
    I am unable to do transform the source value to required target value,
    From Source ADDRESS_TYPE = 'HOME' should be replaced with 03 to target field ANSSA, and 'MAIL' to be replaced with 05, I am trying to do it but i am unable to handle it, please give u r valuable suggestions,
    The source structure is like this,
    - <Event ID="239" TRANS_TYPE="ADR">
    <PersAddr GEO_LOC_CD="US" EMPLID="29" ADDRESS_TYPE="HOME" EFFDT="02/15/2006" ADDRESS1="92nd Floor" ADDRESS2="812backstreet" ADDRESS3="" ADDRESS4="" CITY="London" COUNTY="" STATE="AN" POSTAL="EC2N 4AG1" COUNTRY="GBR" KEY1="29" KEY2="HOME" KEY3="02/10/2006" />
    <PersAddr GEO_LOC_CD="US" EMPLID="29" ADDRESS_TYPE="MAIL" EFFDT="02/15/2006" ADDRESS1="92nd Floor" ADDRESS2="812backstreet" ADDRESS3="" ADDRESS4="" CITY="London" COUNTY="" STATE="AN" POSTAL="EC2N 4AG1" COUNTRY="GBR" KEY1="29" KEY2="MAIL" KEY3="02/10/2006" />
    </Event>
    REGARDS,
    sridhar

    Hi,
    This can be done using user-defined function as well.
    Code the function as...
    if(Addr_Type.equals("HOME"))
       return "03";
    else if(Addr_Type.equals("MAIL"))
       return "05";
    else
       return "Invalid Address Type";
    Here, Addr_Type is Input String Argument for this function.
    Map this function between ADDRESS_TYPE and ANSSA.
    Regards,
    Uma

  • Mapping help UDF

    hello experts.
    the standard functions are not working for the number of occurrences.
    below is the structure.
    Root 0....unbounded                                                        Root 0 ...unbounded.
       events 0...unbounded
           countries 1...1
           total 0....unbounded.
              amount 1
              totals
    Now the condition is.....if countries tag is not available and  amount is zero and under total tag we have totals.....if the tag not there.......target side root should not come.
    i have done mapping.
    countries ----exists-------------------------------------
    amount-------
                      equals-----not------                                        and--------createif----removecontext-----root.
    constant-------                               and ---------------
       (0)
       totals --------exist------------
    regards,
    chinna

    Hi,
    check this mapping help...
    it looks both the threads are same.
    Regards,
    Muni.

  • URL Mapping for packaged JSP's in web.xml file

              Hi,
              I am using weblogic6.0sp2 enterprise edition.I have my JSP's in package structure.
              Suppose my login.jsp is in package com.advice.document. So for URL mapping in
              web.xml what should be given so that by giving that my JSP runs. I have tried
              many options but not got success.
              Here is my web.xml file..
              <web-app>
              <servlet>
              <servlet-name> Login </servlet-name>
              <jsp-file> com\advice\document\login.jsp</jsp-file>
              </servlet>
              <servlet-mapping>
              <servlet-name> Login </servlet-name>
              <url-pattern> /Login</url-pattern>
              </servlet-mapping>
              </web-app>
              If any body knows or have worked on the same then let me know.
              Thanks in advance.
              --- Vipul
              

    Did you try specifying the jsp-file with forward slashes (e.g.,
              com/advice/document/login.jsp)?
              Vipul Garg wrote:
              > Hi,
              > I am using weblogic6.0sp2 enterprise edition.I have my JSP's in package structure.
              > Suppose my login.jsp is in package com.advice.document. So for URL mapping in
              > web.xml what should be given so that by giving that my JSP runs. I have tried
              > many options but not got success.
              > Here is my web.xml file..
              > <web-app>
              > <servlet>
              > <servlet-name> Login </servlet-name>
              > <jsp-file> com\advice\document\login.jsp</jsp-file>
              > </servlet>
              > <servlet-mapping>
              > <servlet-name> Login </servlet-name>
              > <url-pattern> /Login</url-pattern>
              > </servlet-mapping>
              > </web-app>
              >
              > If any body knows or have worked on the same then let me know.
              > Thanks in advance.
              > --- Vipul
              

  • Need Mapping Help: Generate index if value comes

    Hi Experts,
    I need mapping help to generate index if value comes form source. we have 4 fields in item level of source and target side we have to pass the these filed values and sequence number.
    below given the structures:
    Source:              Target:
    Item                    Item
       A1                      Text
        A2                      Seq_No
        A3
        A4
    my requirement is if A1 filed values comes from source we should pass to text and pass seq_no to constant-1, same as A2,A3 and A4 filed values also we should pass to text and seq_no for A2 is 2 and A3 is 3 and A4 is 4. suppose if A1 value is not coming from source we should pass seq_no for A2 is 1. if A1 and A3 filed values are not coming from source then we should pass seq_no for A2 and A3 are 1 and 2.
    can you please help me how to achieve this. appreciate for your support.
    Regards,
    Sanjay.

    Hi Sanjay,
                      you can  try this mapping
    1. Generate the target 4  ITEM's  by duplicating the subtree as shown below 3 times.
    Now create the each target item starting from first by mapping them to A1,A2,A3 and A4 respectively. I have shown the first ITEM mapping above. similarly you can map A2 to ITEM[1],
    A3 to ITEM[2] and A4 to ITEM[3].
    2. Now you can map the A* fields to Text one to one as shown below
    Please repeat the same for A2,A3 and A4 to respective Text fields.
    3. 
    First seq_no field as shown
    and similarly others as shown
    Regards
    Anupam

  • Url mapping

              I have a webapp and the welcome file is:
              http://localhost:7001/LAM/login.jsp.
              All of the posts and gets are sent to a single servlet
              that controls the flow to and from jsp pages.
              My co-workers and I would like to be able so something like:
              http://localhost:7001/LAM/anyjsp.jsp?arg=arg&arg2=arg etc.
              or http://localhost:7001/LAM/jsp/anyjsp.jsp?arg=arg&arg2=arg etc.
              so we can pass args in and out of the pages from the browsers
              address input rather than going through the app to get to a certain jsp page and
              submitting the arguments. The jsp files are in the weblogic/webapp/jsp directory
              and the servlet is in the
              weblogic/web-inf/classes directory. The servlet is defined and mapped in the web.xml
              file. We can't get the url in the address window to go to a given jsp page. What
              do I need to do to get around this or what do I need to configure to set this
              up?
              Thanks,
              Bill
              

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    Regards
    Anilkumar kari

  • "URL to Help Topic"  Popup Size option

    Hi
    I already set the 'show help option' & ' URL to Help Topic'
    So, When i click the help on Page title bar,  Popup the URL Window.
    However, I can't find popup window size option.
    How can I modify popup window size . we almost use standard  web dynpro abap iviews.
    Plz, Help.

    check system administration-portal display-themes-select the appropriate theme and look for the option where you change the size of the window.
    if it doesnot work then you have to modify the masthead par file and in that HeaderIview.jsp
    Modifying Logoff funtionality in Masthead
    Modify com.sap.portal.navigation.masthead
    Modifying the Masthead iView
    Modifying the masthead par
    reward points if helpful

  • Using URL maps to search for a particular sub-domain in a URL

    Hi Guys,
    Seem to be having some trouble with URL maps, and trying to search for a particular sub-domain in a URL.  Let me explain:
    We will have a number of applications frontended by our CSM VIP such as:
    sftp.poc.monash.edu.au
    callista.poc.monash.edu.au
    I'm trying to get the CSM via policies and URL maps, to search for say "callista" and direct this traffic to a particular farm as below...however when i use the match statement the connections are dropped.
    map CALLISTA url
      match protocol http url *callista*
    map CALLISTA-SFTP url
      match protocol http url *sftp*
    policy CALLISTA
      url-map CALLISTA
      sticky-group 197
      serverfarm CALLISTA
    policy CALLISTA-SFTP
      url-map CALLISTA-SFTP
      sticky-group 198
      serverfarm CALLISTA-SFTP
    vserver CAL-POC-DECVIP
      description decrypt VIP for SERVERFARM CAL-POC
      virtual 172.16.11.116 tcp www
      persistent rebalance
      parse-length 4000
      slb-policy CALLISTA
      slb-policy CALLISTA-SFTP
      inservice
    So i'm wondering if there is a better regular expression statement i can use to ensure that all the traffic that has "callista" in the URL is directed to a particular farm?
    thanks
    Sheldon

    Having a read through the CSM config guide I think i may have found the answer.  I noticed that the URL maps only work on searching a "path' after the domain e.g. the presence of either "index" or "cep":
    callista.poc.monash.edu.au/index.html
    or
    callista.poc.monash.edu.au/cep/
    I've tested the above logic and this holds true....therefore there doesn't seem to be a way of searching for a "subdomain" in the URL as opposed to various bits of a "path".  That is i'd like to search for "callista" or "admissions" instead of the path
    callista.poc.monash.edu.au
    or
    admission.poc.monash.edu.au
    Can someone confirm this one way or another?  And if the sub-domain search is not possible, are there alternatives to getting it to work?!
    thanks
    Sheldon

  • Url mapping table for webdispatcher

    I want to use a URL mapping table for the webdispatcher. I found that the paramater wdisp/url_map_location can be used to point at a file://<path>.
    But I donot find any information about the layout of this file.

    Hi Geert,
    As far as i read,
    URL mapping table
    Mapping of the path part that is specified in the browser to the information about the server (groups).
    You can determine, for example, that all requests that contain the path prefix /sap/bc are only processed by the servers that process logon group GROUP_1.
    text quoted from SAP Library.
    As far as i know you can achieve the mapping you mentioned above using DNS
    Regards
    Juan
    Please reward with points if helpful

Maybe you are looking for

  • Can you have two psswords for an Itunes account?

    My kids have i pods. They tell me they need the password I set up for normal use of the i pods. I have had problems with them buying apps they thought where free etc. Is it possible to have one password for purchases and one for normal use and free a

  • Urgent help needed, please help me

    Hi, I am developing a web site using Java Servlets. The site requires to send XML as POST to an HTTPS server and get the response. Development environment: Laptop running Windows XP with jdk1.3.1, j2sdkee1.3 and Tomcat 4.1. Since I need to use https

  • Portal Collection List Renderer - problem with alignment

    Dear All, I'm having an issue with alignment of columns when changing a Layoutset. This modification is all done with SAP standard components, so I decided to try my luck here first at SDN before writing an OSS message. Here's what is happening: I wa

  • Forms 6 to Forms 6i Migration

    A project I just got on is a migration project from Forms 6.0 to Forms 6i. The biggest problem is that in addition to this migration they are also deploying throught the web. The application was obviously designed client/server and they are running i

  • Classes in WAD

    Hi I been working with WAD 3.x/7.x for a while.I came across CLASSES that were used in WAD.what are they and what is the use of them? Can anybody post links or documents about them?I couldnot find good documents on internet. Thanks.