Need help in url mapping ...

hello,
(excuse me for my poor English)
I want to map a short url to large one. for example:
mapping : 1)www.example.com/test to
2)www.example.com/sport.jsp?x=1&y=2
meaning every one hit the first url redirect to the second.
(and case insensitive: TEST or TeSt is legal)
what is the best way to do that in j2ee?
I tried to open new folder named test but this is case sensitive.
I tried to create servlet mapping for "test" but it is also case sensitive.
I use websphere server
give me any advice to do that....
thank in advance

any one ?

Similar Messages

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

  • I need help with my mapping - CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV

    hi, guys, i need help with my mapping, i dont know this error (i not speak english)
    <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
    <Trace level="2" type="T">......attachment XI_Context not found </Trace>
    <Trace level="3" type="T">Mapping already defined in interface determination </Trace>
    <Trace level="3" type="T">Object ID of Interface Mapping 4B903E2DDC853C1493E1DED5C5ED70A3 </Trace>
    <Trace level="3" type="T">Version ID of Interface Mapping 88D96A70BAAE11DFAE5EE925C0A800C2 </Trace>
    <Trace level="1" type="T">Mapping-Object-Id:4B903E2DDC853C1493E1DED5C5ED70A3 </Trace>
    <Trace level="1" type="T">Mapping-SWCV:88D96A70BAAE11DFAE5EE925C0A800C2 </Trace>
    <Trace level="1" type="T">Mapping-Step:1 </Trace>
    <Trace level="1" type="T">Mapping-Type:JAVA_JDK </Trace>
    <Trace level="1" type="T">Mapping-Program:com/sap/xi/tf/_mm_sgipi_fi001_vta_clientes_ </Trace>
    <Trace level="3" type="T">MTOM Attachments Are Written to the Payload </Trace>
    <Trace level="3" type="T">Dynamic Configuration Is Empty </Trace>
    <Trace level="3" type="T">Executing multi-mapping </Trace>
    <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
    help me please

    you can use the sharedobject to record a user/computer has taken your quiz, the session data and record their results.  at the start of your quiz, check for the sharedobject and, if it exists, check the other data and take appropriate action.

  • URGENT: Need help reading URL of current page

    Hello kind people!
    I need help, and its very simple:
    How do i read the URL of a web page?
    For example, the URL of this page is:
    http://forums.sun.com/thread.jspa?threadID=5327796
    So how can i be able to read in this URL in my java program?
    thanks SO MUCH
    P.S. I HAVE searched the java docs and everything, the closest thing i found was request.getRequestURL().? but i have no idea how to use it. you have NO IDEA how appreciative i would be if you could simply show me exactly how to read in the URL of a given page.
    thanks SO MUCH
    Edited by: homegrownpeas on Aug 31, 2008 5:19 PM

    Going by what I understand here is a simple version of how you can read data from over HTTP.
    This expects the "page" to be text (hence an InputStreamReader instead of an InputStream.)
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.HashMap;
    * GPLv2.
    * @author karlm816
    public class HomeGrownPeas {
          * @param args
         public static void main(String[] args) {
              HashMap<String, String> params = new HashMap<String, String>();
              params.put("threadID", "5327796");
              System.out.println(loadHttpPage("http://forums.sun.com/thread.jspa", params));     
         public static String loadHttpPage(String sUrl, HashMap<String, String> params) {
              // Build the HTTP request string
              StringBuilder sb = new StringBuilder();
              if (params != null) {
                   for (String key : params.keySet()) {
                        if (sb.length() > 0) {
                             sb.append("&");
                        sb.append(key);
                        sb.append("=");
                        sb.append(params.get(key));
              System.out.println("params: " + sb.toString());
              try {
                   URL url = new URL(sUrl);
                   URLConnection connection = url.openConnection();
                   connection.setDoOutput(true);
                   connection.setRequestProperty("Content-Length", "" + sb.length());
                   connection.setUseCaches(false);
                   if (connection instanceof HttpURLConnection) {
                        HttpURLConnection conn = (HttpURLConnection) connection;
                        conn.setRequestMethod("POST");
                   OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream());
                   osw.write(sb.toString());
                   osw.close();
                   // Now use sb to hold the resutls from the request
                   sb = new StringBuilder();
                   BufferedReader in = new BufferedReader(
                         new InputStreamReader(
                         connection.getInputStream()));
                   String s;
                   while ((s = in.readLine()) != null) {
                        sb.append(s);
                        // To make it more "human readable"
                        sb.append("\n");
                   in.close();
             } catch (IOException e) {
                  e.printStackTrace();
                  return null;
            return sb.toString();
    }

  • Need help with instruments mapping

    I have Korg PA80 and i hooked up midi out from it to midi in to Logic8, I have some nice realtime accompaniment tunes i can play on that keyboard, what i want to do is to play on my PA80 accompaniment tracks but replace all sounds with my custom sounds from my Logic plug ins, right now when I hit play all i hear is some garbage playing because no instruments properly mapped on Logic, I even created all 16 instrument tracks and set them all on all 16 channels, drums on 10 and so on, but when i start play on PA80 in Logic I still hear like bass trying to play all parts and not bass part only, same for drums when i press Am or Dm drums will play properly with some another drums sounds that trying to play all other instruments parts, need to separate them so the bass will play only bass part, drums will play drum part and so on, need help on how can i do that, lets say for drums i will choose logic drums sounds, for base Logic bases and so on, so Logic will become something like sound module for my PA80 instead of internal sounds I would like to use my virtual instruments sounds, thanks a lot

    Thanks for your reply Dave.
    I have no answer to your question but I found a way to create my SQL code with OWB mapping operators. Unfortunately it is very very slow compared to the execution of the SQL code and therefore not useful at all. I connected the following steps all in one mapping:
    1. Table operator(T006_SITE) -> Filter(T006A01PK_SITEID where T006A11FK_COUNTRYID IS NULL)
    2. Table operator(T002_COUNTRY) -> AGG (MAX T002A01PK_COUNTRYID)
    3. JOIN the output from 1. and 2.(T006A01PK_SITEID and T002A01PK_COUNTRYID))
    4. UPDATE T006_SITE with the output from 3. (T006A01PK_SITEID as matching column and T006A11FK_COUNTRYID as column to be updated)
    The execution mode of the mapping should be set-based fail over to row-based, but it used row-based mode even without getting an error. Are UPDATE mappings only executable in row-based mode or is there a way to change that?
    Does anyone have an idea how I can speed up that mapping or integrate my SQL code in the OWB?
    Thanks in advance,
    Dirk

  • New to Illustrator, need help creating a map?

    Need to create a map of a neighborhood.  New to program any help would be great!

    rdelaroca,
    There are vector maps available for many areas.
    Or you may work on a locked image from Google Maps or something including the important parts/themes/whatever, using the Pen Tool as the primary tool for shapes in general.

  • Plz , need help on IDOC mapping

    Hi friends
    I need help on mapping IDOC (invoic02) to a customer fields to be sent to a printhouse .
    The idoc contains several Item lines , from 1  and up after for instance
    The fields  E1EDP01-MENGE and E1EDP26-BETRG  could be repeated many times , the customer wants  eah line item (quantity , price and subtotal )  in separate  lines.
    What is the best approach to do the mapping , and how can I loop in the idoc segments in order to get each line separetly.
    Many thanks in advance.

    Hi
    Thanks again , plz bear with me as i am new to this kind of assignment.
    This is a part of my requirement, so i suppose that I have to create a Data type as node for the customer fields corresponding to the node in IDOC and just map the source node to the target node , and it will repeat it self as many times as there is line items in the sales order.
    Customer fields              Idoc fields.
                        segment E1EDP01
    DETAIL_ANTAL     E1EDP01-MENGE  -  LOOP
                         segment E1EDP26
    DETAIL_STK_PRIS     E1EDP26-BETRG - QUALIFIER = 001- LOOP
    DETAIL_SUBTOTAL     E1EDP26-BETRG - QUALIFIER = 003 LOOP
    If I change the context of the source, will it not affect the source node at all.
    best regrads.

  • ComboBox (dropdown) Need Help Adding URL links!!!

    I am somewhat of a newbie....Anybody know how to use URL
    links in a ComboBox dropdown menu? NEED HELP!!!!!!! I'm trying to
    make it so that after selecting an option, the user is directed to
    another URL within the same browser window. Using flash 8!
    Thanks,

    Im a bit a newbie myslef but i think you make flash
    commuincate to javascript wich will make the browser goto the URL.
    do a search on getURL and javascript together and i am sure
    you will find something.
    And when slecting to redirct i think its on?(onPress)
    something so maybe look throught the help section in flash 8 and
    look at componets. I think there is some actionscript help there.
    Sorry i could not be more helpful.

  • Need help creating URL for getImage

    In the following code example, I get an error when javac compiling. I need help, because I cannot determine what is wrong. "....." denotes extraneous code removed for readability.
    import java.awt.*;
    import java.io.*;
    import java.applet.*;
    import java.net.*;
    public class testapp extends java.applet.Applet implements java.lang.Runnable
    public static void main(String[] argv)
    ����.
    public void init()
    Toolkit toolkit = Toolkit.getDefaultToolkit();
    Image image1 = toolkit.getImage("imageFile.gif");
    Image image2 = toolkit.getImage( new URL("http://java.sun.com/graphics/people.gif"));
    ��
    javac reports:
    unreported exception java.net.MalformedURLException; must be caught or declared to be thrown
    Image image2 = toolkit.getImage( new URL ("http://java.sun.com/graphics/people.gif"));
    ................................................^

    With this recommended code:
    ===================
    try {  Image image2 = toolkit.getImage( new URL  ("http://java.sun.com/graphics/people.gif"));}catch(MalformURLExceptione){System.out.println("Error"); }
    ======================
    it now compiles ok, but when I access the page through the browser, I get "applet not initialized" and the page times out.
    With the lines commented out, the page loads.
    What does this tell us:
    - all we have done is mask a problem that the compiler previously highlighted.
    But what is the problem?
    As far as I can tell, the code is exact copies from the examples posted online.
    Where should System.out.println("Error"); be displayed? I can't find it. There might be a clue in the error message.

  • Please I need help with mokia maps!

    Hello! I have bought my phone Nokia N76 and I found nokia maps v 1.2 in it, I tried to install nokia maps v 2 but it says "update error"!
    when I tried to remove nokia maps 1.2 from the menu, it says unable to delete I tried this from the menu as it is not listed in the application manger list ! what shalI do?! . I don't wan't to update the software (it's the lastest). please if anybody knows help me please?
    Message Edited by Twilight28 on 23-Nov-2009 06:53 PM
    Message Edited by Twilight28 on 23-Nov-2009 06:54 PM

    Reading above posts I seem to remember that for early versions of Nokia Maps the map data is stored in E:\Private\20001f63\diskcache\ NOT E:\CITIES as for later versions, so try deleting these + .qf file. You would need to enable "show hidden & system" files on your PC to see these however.
    Provided that you carry out *#7370# or three finger reset (erases ALL data) after deleting these folder/files, you should really be able to install Nokia_Maps_2.0_4503_3.1.sis from here: http://nds1.nokia.com/files/support/global/phones/software/Nokia_Maps_2.0_4503_3.1.sis
    You would need to run Nokia Maps application to create folder structure on memory card required to download mapping.
    Happy to have helped forum with a Support Ratio = 42.5

  • Hi I need help on URL Connection Class

    Hi
    I have read the documentation but cant get it . I have to Use the getContent(); method so can any one make a program for me in which all of the methods of this class have been used?
    I Also Need help on Content Handler Class Please give me one example on it but separate from the above one
    Thanx alot

    Hi
    Man Some Times We need help and as of google, Google is My Best Friend. and as of forums search i know that but some time we have less time and much to work. The Time Doesnt wait us. we have to save our time. thanx for ur help and ur comments i like it.

  • Need help with URL Redirect in Sun Web Server 7 u5

    All I am trying to do is redirect to a static URL and for the life of me I can not get it to behave the way I would expect. I am new to Sun Web Server so I am just trying to use the Admin Console to set this up.
    Here is what I'm trying to do:
    Redirect from - http://www.oldsite.com/store/store.html?store_id=2154
    To - http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    Here's what I tried in the console.
    Added a new URL Redirect
    Set the Source to be Condition and set it to: '^/store_id=2154$' (quotes included)
    Then set the Target to: http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    Then for the URL Type I checked Fixed URL
    When I tested with: http://www.oldsite.com/store/store.html?store_id=2154 it did redirect as desired
    BUT
    When I tested with: "http://www.oldsite.com/store/store.html?store_id=5555" it too got redirected to the Target and I can't figure out how this second URL can satisfy the condition to get redirected.
    Any help is most appreciated.

    thanks for choosing sun web server 7
    it is simpler if you just edit the configuration files manually
    cd <ws7-install-root>/https-<hostname>/config/
    edit obj.conf or <hostname>-obj.conf (if there is one for you depending on your configuration so that it look something like)
    <Object name="default">
    AuthTrans..
    #add the folllowing line here
    <If defined $query>
    <If $urlhost =~ "/oldsite.com" and
    $uri =~ "/store/store.html" and
    $query =~ "store_id=2154" >
    NameTrans fn="redirect" from="/" http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    </If>
    </If>
    ..rest of the existing obj.conf. continues
    NameTrans...
    now, you can either do <ws7-install-root>/https-<hostname>/bin/reconfig -> to reload your configuration without any server downtime or <ws7-install-root>/https-<hostname>/bin/restart -> to restart the server
    if it did work out for your, you will need to run the following so that admin server is aware of what you just did
    <ws7-install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname.domainname>
    hope this helps

  • Need help in Message Mapping

    Hi Folks,
    I have below Query. Can you please suggest how do i solve below case.
    My source system has 4 fileds A , B, C, D and the target system has 1 Filed TOTAL.
    I have to concatenate all the 4 source fields by using slash(/) and placed in TOTAL target field.
    i need output has A/B/C/D.
    but here is my Query?  if any one of the field is not present in source field i.e. if source B filed is empty then I have to print Output has  A/C/D.
    NOTE:  there is no empty slashes for B.
    Please help me on this issue.
    Thanks,
    Enivass

    Hi Supriya,
    Actually I didnot get ur mapping shot
    Can u tell me some more briefly plzzz
    I tried blow
    A
             concat  -
    >    trim -
    > then what i have to use.       
    Thanks,
    Enivass
    Edited by: enivas on Oct 20, 2010 9:47 AM

  • Need help in header mapping!!

    Hi, because we have an third party system i think i have to use header mapping in receiver agreement!
    For outgoing IDocs everything works fine, incoming aren't be transfered to target system.
    I have:
    ThirdParty: EDI
    BusinessService: EDI_Test
    Business System: Q01CLNT010
    Incoming receiver agreement looks like this:
    Sender
    Party: EDI
    Service: EDI_Test
    Receiver
    Service: Q01CLNT010
    Interface: DELINS.DELFOR02
    Namespace: urn:sap-com:document:sap:idoc:messages
    Header Mapping (like i thought)
    Sender-Party: EDI
    Sender-Servcie: EDI_Test
    Reciever Party:
    Reciever Service: Q01CLNT010
    The incoming IDoc has follwoing parameters in header Segment:
    - <EDI_DC40 SEGMENT="1">
      <TABNAM>EDI_DC40</TABNAM>
      <MANDT>100</MANDT>
      <DIRECT>1</DIRECT>
      <IDOCTYP>DELFOR02</IDOCTYP>
      <MESTYP>DELINS</MESTYP>
      <STD>V</STD>
      <STDVRS>096001</STDVRS>
      <STDMES>DELINS</STDMES>
      <SNDPOR>EDI</SNDPOR>  [like port in we21]
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>EDI</SNDPRN>
      <RCVPRT>LS</RCVPRT>
      <RCVPFC>LF</RCVPFC>
      <RCVPRN>30396</RCVPRN>
      <CREDAT>20071204</CREDAT>
      <CRETIM>130428</CRETIM>
      <REFMES>DELFOR02</REFMES>
      </EDI_DC40>
    can somebody give me a hand on this?!
    br

    Hi guys,
    because of help approach i wrote what i have done yet. But first i explain what is working.
    We have an EDIServer in our Landscape which sends EDI-Calls. This Calls are triggered from R/3 via XI to EDIServer. This outgoing communication runs. (plz don't ask why we still use EDIServer because of EDI-Adapter for XI)
    I configured this scenario with party!
    But now i want to get calls from EDIServer. So i have to work with send IDocs from EDIServer which this previously tronsforemed from EDI-Format in IDoc-Format.
    So i simply thought i configure scenario the other way round by using the party again. But this does not work out. However, i explain my IB Rep Objects:
    Receiver Determination:
    Sender
    Party: EDI
    Service: EDI_Test
    Interface: DELINS.DELFOR02
    Receiver
    Party: *
    Service: *
    Interface Determination:
    Sender
    Party: EDI
    Service: EDI_Test
    Interface: DELINS.DELFOR02
    Namespace: urn:sap-com:document:sap:idoc:messages
    Receiver
    Party: *
    Service: *
    Sender Agreement:
    Sender
    Party: EDI
    Service: EDI_Test
    Interface: DELINS.DELFOR02
    Namespace: urn:sap-com:document:sap:idoc:messages
    Receiver
    Party:
    Service:
    Receiver Agreement
    Sender
    Party: EDI
    Service: EDI_Test
    Receiver
    Party:
    Service: Q01
    Interface:DELINS.DELFOR02
    Namespace:urn:sap-com:document:sap:idoc:messages
    --> do i need header mapping here?!
    What do i need to do to make this scenario run?!
    br - i highly appreciate ur previous help!!!!

  • Need Help in Context Mapping

    Hi,
    I am having two components.
    Comp A  is main componenet  and Comp B is Used component and using in Comp A.
    Intially I am getting the data from the Comp A ( main Comp) to Comp B(used Comp) by context mapping.
    it is working fine.
    The same way I need in Reverse. From Comp B (Used Comp) to Comp A (Main Comp) i have to get the data .
    how to do context mapping for this.
    pl help.
    Thanks in Advance.
    Kar

    Hi,
    To achieve reverse (external) context mapping, the attribute 'Input Element' in interface node of component B has to be marked. When you declare a component usage of component B in your component A, you will see the interface node under Component Usages->Interface Controllers (in your navigation tree). You can define the mapping here, between the 'Input element' node of component B and the component controller Node in comp A by right click->Define external context mapping.
    Have a look at the [documentation |http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/frameset.htm] in detail.
    You can have a look at the ALV component SALV_WD_TABLE, which uses external context mapping to render the ALV in any component using this component. This will give you a good idea.
    Regards,
    Nithya

Maybe you are looking for