A question about mapping

ok, my problem is this :
I use /faces/* mapping and i want to be able to put my links like
this :
<h:outputLink value="login.jsp">
<h:outputText value="Login" />
</hLoutputLink>
If do it like this then my apache doesnt find "the FacesContext" (i know it's a common problem).I know that I should change the link to "faces/login.jsp"
and it works if I do it , but when click on the link the address bar changes to
http://localhost/mysite/faces/faces/login.jsp
U see ? It ads one more /faces in the address. If I click many more times the address tends to look like that.
http://localhost/mysite/faces/faces/faces/faces/faces/faces/
faces/faces/faces/login.jsp
The login.jsp link is in a navigation bar which is in all my pages , if u're wondering how can click on the same link again and again.
So what should I do so that i'll see just one /faces in the adress bar ?(i would
like to keep my mapping as it is and not change to an extension mapping jus t to solve this).

I think I could change the links to commandlinks but i would like it to solve the problem using output link .One reason I used output link is cause it felt natural not to do otherwise.I mean I use command links and navigation rules , when there are many more possible outcomes. Here I want that everybody should be allowed to access this link .Btw, the link is not login.jsp cause u're right i should use a navigation rule for authentification , I just used login.jsp for example.The actual link is "viewsellads.jsp".
As for the "/faces/login.jsp" or "faces/login.jsp" , when u put no slash he goes to http://localhost/faces/login.jsp
But my web application is in a directory called "example" so I want tomcat to put the entire path .For short when I put no slash it goes where it should
http://localhost/example/faces/login.jsp
The reason this is so frustrating is probably cause I think I had the same problem some time ago too , when I was writing a site just with jsp and servlet. I didnt know there how to solve some relative path issue either, but
I changed to extension mapping ...and all was fine.But I dont know , it seems
that it should be another solution

Similar Messages

  • Questions about Mapping GL Accounts to Group Accounts

    Hi,
    I have some questions about mapping gl accounts to group accounts while configuring OBIEE APPS 7.9.6.3 with EBS R12 as a source:
    FIRST QUESTION.-
    For file file_group_acct_codes_ora.csv, I have the following accounts from my customer:
    101101 - Caja Administrativa
    101102 - Fondo Revolvente
    101103 - Caja de Cambios
    101104 - Efectivo en cajero
    This group of accounts is named CASH, now my customer said that this group begins in 101101 and ends in 101199 but in this moment only have this 4 accounts in GL, the rest of the accounts, I mean 101105-101199 are not used right now, they are gonna used in the future.
    So, my question is, in file_group_acct_codes_ora.csv how I need to put this group:
    In this way:
    CHART OF ACCOUNTS ID,FROM ACCT,TO ACCT,GROUP_ACCT_NUM
    50308,101101,101104,CASH
    Or in this way:
    CHART OF ACCOUNTS ID,FROM ACCT,TO ACCT,GROUP_ACCT_NUM
    50308,101101,101199,CASH
    I mean, is there any problem if I use the second way, or is necessary to do it in the first way, and why?
    SECOND QUESTION.-
    For file file_group_acct_names.csv, when I update with a new group of accounts, is there any rule or size boundary for GROUP_ACCOUNT_NAME?
    THIRD QUESTION.-
    For file_group_acct_names.csv, what is the value in column LANGUAGE? I mean, is EBS language?, DB language?, server language?
    I hope that someone can help me, because I need to clarify this and don't do the first full load and this load ends with error because of this.
    Regards,
    Arnulfo

    I'll take some broad swipes at this and let the smarter people come fill in the details.
    We have a true 1:1 setup in our office and have moved to PHDs as a means of protecting against downtime. The thinking is that we will have a spare machine lying around with our base installation ready to go. If a user's machine fails we'll replace it with the spare machine, let it sync the user directory from the server, and we're back in business. It's no substitute for a real backup system, but it potentially avoids having to run a restore from your backups. It also reduces network traffic compared to plain networked homes, and still lets your users work if the server goes down, but provides the benefits of centralized management. John DeTroye wrote a nice article about this.
    If you've already got data on your "client" Mac you will need to move it onto the server. PHDs will download data from the server to the client on the first sync, but will not upload a complete home directory from the client to an empty directory on the server. You'll find some posts in this forum discussing how people have gone about migrating data prior to that first sync.
    WGM allows you to establish exclusions for stuff you don't want to sync.
    One thing to watch out for in the scenario you describe is the so-called "rabbit effect." Assume Bob uses Mac1 as his primary machine. If one day he logs into Mac2 his home directory will be downloaded to Mac2. Once he returns to Mac1 he'll still be cluttering up Mac2 with his data. If he logs into Mac3 the next day and Tom and Sue are also periodically logging into different machines, you can see how you'll end up with a mess pretty quickly.
    Hope this helps.

  • Few questions about maps

    Hi guys,
    I got few question about maps.. Perhaps someone can help....
    BTY, this work is a voluntary work for Human Rights in Syria...
    {message:id=10193821}
    {message:id=10192983}
    {message:id=10192990}
    Best Regards,
    Fateh

    Hi guys,
    Please do not let me down ... it is a humanitarian work...
    Regards,
    Fateh

  • LDAPMAP: questions about mapping

    Hi All.
    We want to implement an interface between our SAP ECC6 and Microsoft Active-Directory.
    I have some questions about the mapping done in LDAPMAP t-code:
    1.
    What the meaning of the structure and fieldname (e.g. structure-USERNAME; field-BAPINAME)?
    They cannot be found anywhere in the DB or in SE36.
    2.
    How do I create new pairs (e.g. PA0008-TRFGR)?
    3.
    How do I communicate with these structure-fields, i.e. fill data to them?
    Any help will be appreciated.
    Ayal Telem.

    Hi Ayal,
    Do you got any clue on this.?  It will be great help if  you provide me some inputs on this. I'm facing similiar kind of requirement.
    Thanks a lot.

  • Question about mapping AD to OID

    I'm trying to determine the correct entries for the activechg.map file.
    I have 2 issues to resolve:
    1. Most of the user accounts are in the AD users folder but I also have user accounts in an AD OU named "Cust Ser Reps". So do I need the following entires in the map file?
    CN=Users,DC=norris,DC=intra:cn=Users,dc=norris,dc=intra
    OU=Cust Ser Reps,DC=norris,DC=intra:cn=Users,dc=norris,dc=intra
    2. I have a second AD domain (swtp.intra) that resides in a different forest from norris.intra. There is a 2-way external trust between them. How do I map this domain to OID? The OID is only setup for dc=norris,dc=intra.
    Thanks for your help.
    Tom

    Hi Thomas
    The answer to question one is "yes" that is exaclty how you do it. If you have users in different parts of the tree you can modify your Domain mapping rules by adding the second tree and both will be synced with OID.
    To answer your second question, if you have a forest of AD servers then you should only sync with the Global Catalog Server. This will ensure that all changes made to any of the AD servers in the forest are synced with OID. You can read more about this in Chapter 43 of the OID admin guide.
    If you have multiple independant AD servers then you need to create a new DIP profile for each one that you want to sync with using ODM to create the new profiles.
    Jay

  • Question about mapping logical sources to dimensions

    1) On my physical layer I have one fact table (FACTS_DETAILS) linked with CATEGORY dimension table. Other fact tables (aggregated data) don't linked with this CATEGORY dimension with physical joins.
    2) On my BMM layer I have mapped my dimension "Category" with my FACT_DETAILS.
    3) Other LSTs don't mapped on "Category" dimension, as they do not linked with Categories on physical layer.
    4) When I try to display detailed facts by CATEGORY - it's ok.
    5) When I add another dimension (For example, COUNTRY) i get error, because COUNTRY dimension isn't compatible with my FACTS_DETAILS.
    The question is: how to avoid displaying error message at Answers in such situation? Maybe it is possible just to not display data without error message?

    Sounds like you need to architect your physical/logical model a bit better and also you need to set the appropriate levels in the LTS for your facts and dimension logical table sources.

  • Question about mapping art to a 3d object

    I'm looking for help with mapping art to a 3d object using the extrude and bevel effect, and I keep running into the same issues.
    I've attached an image of what I'm trying to replicate (on the left) and where I am currently at (on the right). The left image is what we're looking to duplicate, in a 3d manner, but I'm not able to add the roll tail (which now needs to have a bit of a curve coming towards you), without there being numerous surfaces in the 'map art' box. What I am hoping is that there is a way to create one surface that wraps completely around the roll, and then down to the tail, and curling towards the viewer. Currently when I do this it creates numerous surfaces so I have to map the art to piece it together and it doesn't line up with the other mapped art. I would so appreciate any help you can offer!
    Also, I'm not able to get a great shadow inside the roll, is there something I'm missing with the lighting options?
    Thank you!
    (Using AI CS6 on a PC)

    I managed this quickly:
    for some reason it split the top surface of the reel into two though. the divide is at the top. I just mapped the symbol to both so it looks like it's going all round.

  • Question about Mapping& Typecasting

    Hi, I am trying to typecast this map into characters at the end. I started by inputting the file as a byte array and have the treemap map it out and count the characters. But since I used bytes it comes back out to me as integers but what I want to display is characters. I'm not sure where I should typecast it since I just write System.out.printlnt (m) in order to print out the list. Any ideas?
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.PrintStream;
    import java.util.Map;
    import java.util.TreeMap;
    public class charcount {
        public static void main(String[] args) throws IOException {
            try {
                 File inFile= new File("text.txt");
                 FileInputStream inStream= new FileInputStream(inFile);
                FileOutputStream out = new FileOutputStream("output.txt");
                PrintStream p = new PrintStream( out );
                 int fileSize=(int)inFile.length();
                 byte[] byteArray= new byte[fileSize];
                 int b =inStream.read(byteArray);
                Map<Integer, Integer> m = new TreeMap<Integer, Integer>();           
                for (int a: byteArray) {
                     Integer freq= m.get(a);
                     m.put(a, (freq == null) ? 1 : freq + 1);
            finally{
             

    First of all, your Map object must have the following type parameter:
    Map<Character, Integer> m = new TreeMap<Character, Integer>();Then, your foreach loop is more resonable if you extract from the byteArray byte values, rather than int values - As the array is an an array of byte elements...
    Finally, you may remember that char is, in deep, a numeric value, interpreted by java to a character. So, you can cast a byte value into a char:
    byte bVal = 97;
    System.out.println((char)bVal);This will print the 'a' character in your console
    Have fun!

  • Question about mapping.

    How would I "map events to the indices of an array?" For example, I have an array that looks like:
    {2, 2, 2, 6, 4, 10, 1, 1}
    Instead of explicitly storing each event, I'd like to have the index of the array represent the event and have the element hold the number of times the event occurred. For example, the above would be:
    Result of event: 1 2 3 4 5 6 7 8 9 10
    Number of times event occurred: 2 3 0 1 0 1 0 0 0 1
    Thanks.

    If the events you're tracking are densely packed integers--that is, most or all of the integers in a given range--then you create an array. Let's say you're tracking events identified as 1-10. You'd create an array of 10 ints. arr[0] is how many times you've seen event 1, arr[1] is the count for event 2, etc.
    Numerical array elements are initialized to zero upon creation, so every time you get an event, you increment the corresponding array element: int eventId = getEventIdSomehow();
    arr[eventId]++; On the other hand, if your events are the numbers 1 1,000 2,500,000, 10,000,000, and 2,000,000,000 then you don't want an array of 2,000,000,000 elements just to track five of them. In that case, or if the events can't be identified as densely packed intgers, then use a java.util.Map. The key will identify which event, and the value will be the number of occurences.

  • A question about maps

    hi, how can i have offline maps in my iphone?

    Buy an app like Tomtom or Navigon that provides this feature

  • Question about mapping a JAVA Interface with Flex

    I am using Granite Data Services (Java backend) with my Flex
    client.
    The Java server has an Interface called
    public interface IService {String getServiceName();}
    The flex client makes a remote service call on the server
    POJO which returns any implementation of the specified interface.
    On the flex side I have an interface
    [Bindable]
    [RemoteClass(alias="com.*****.proxy.pojo.IService")]
    public interface IService{function getServiceName():String;}
    As shown i am binding it to the server interface.
    From the client I make a call to the server and handle the
    result as shown below
    var serviceInstance:IService =
    (remoteO.testInterface.lastResult as IService);
    Alert.show("Service Name :
    "+serviceInstance.getServiceName());
    The call reaches the server and the remote method is being
    called however the Alert is not working.
    Please Help !!

    //Start other thread closeT
    System.exit(0)
    //code for thread closeT
    //wait 10 s
    Runtime.getRuntime().halt()
    Gil

  • Question about Logon ticket with user mapping at BI-JAVA environment

    We're implementing BI 7.0 including BI Java and SAP EP for end user
    access.
    I have two question about SSO method when we're using BI Java.
    I know we can simply configure SSO logon ticket with BI-Java(EP
    included) and BI-ABAP through BI template installer and we already
    succeeded in that case.
    But the problem is we want to change it to user mapping SSO method for
    some our internal reason.
    After we configure user mapping SSO, we've got SSO failed error when we
    call BI-Java stuff like BEx Web Application iView.
    After many testing implemented, we found SSO Logon ticket with user
    mapping (using SAP reference system). It seems working now.
    But our question is "Is it no problem when we use SSO logon ticket with
    user mapping?" Is there any restriction or issue?
    One more question is we can ONLY use user base mapping when reference
    system used. How can we assign BI-ABAP users to EP Group?

    Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
    Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
    Hope this helps!!

  • Question about using container class - Map

    hi all
    i have a question about the following :
    i have two sets of data, both use a common filed as key for the map:
    A = {a,b,d,f,g,h} and B = {a,d,e,g,i,k}, each key has a value associated with.
    i need to find out the commonality, and the difference - i.e fields are in map A but not in Map B, and some fields that are in B but not in A. is there any quick method that comes with the collection class that can calculate this? thanks

    yes, the keyset will be used to access values.
    so, SetA.retainAll(SetB) will modify the SetA so that it contains keys that are in both SetA and SetB - the intersection.
    and SetA.removeAll(SetB) will modify the SetA so that it only contains keys that are in SetA, but not in SetB?
    correct?

  • Questions about shared maps

    Hi,
    I have some questions about shared maps. Our Olite Applications has 96 tables. On these 96 tables, 54 tables are tables with DISABLED DML = UID. So, change on the client database are not uploaded to the server. Some of those tables have no where clause and some have a where clause which is the same where clause for all.
    Is it true to say I could put all those tables as shared maps?
    Are they automatically shared because DISABLED DML = UID?
    What would be the advantages of putting those publications items as shared maps?
    Thanks for your help.

    Thanks for your help.
    I looked into CMP$ tables and CLID$$CS is not 0 but egal to my usersnames. I use a java program to create my items and publications.
    I also found in the table C$ALL_TEMPLATE_ITEMS a COLUMN named SHARED and they are all with the value N. So I think they are not shared.
    I think I found where in the API I should make the table shared. It is in the addPublicationItem procedure of the Class ConsolidatorManager. I will try it.
    If we want all users to have all the table data, must we use the groups you talked about?
    If yes, how do i define those groups?
    Thanks

  • CBWFQ: Question about the output of "show policy-map interface" command

    Hi everyone,
    I have a question about the output of "show policy-map interface" command.
    The following is the output of this command and lower side of the output shows
    (total queued/total drops/no-buffer drops) 0/342/0
    If the packets drop occur due to the situation of no enough buffer,
    "no-buffer drops" counted up. But "no-buffer drops" has not been counted up.
    The "no-buffer drops" is 0 (zero) but "total drops" are counted as 342.
    I guess there are other factors except "no-buffer drops" to add "total drops".
    But I can not find any information about "other factors".
    So I would like to know the "other factors" added to "total drops".
    reserch-3725#sh policy-map interface fastethernet0/1
    FastEthernet0/1
    Service-policy output: shaping
    Class-map: kdpc (match-all)
    146956873 packets, 115209221595 bytes
    5 minute offered rate 156000 bps, drop rate 0 bps
    Match: access-group name YOKOHAMA_to_CHINO
    Traffic Shaping
    Target/Average Byte Sustain Excess Interval Increment
    Rate Limit bits/int bits/int (ms) (bytes)
    9360000/9360000 58500 234000 234000 25 29250
    Adapt Queue Packets Bytes Packets Bytes Shaping
    Active Depth Delayed Delayed Active
    - 0 146956724 3539850811 2960247 3851843541 no
    Class-map: class-default (match-any)
    552458414 packets, 249687580329 bytes
    5 minute offered rate 242000 bps, drop rate 0 bps
    Match: any
    Traffic Shaping
    Target/Average Byte Sustain Excess Interval Increment
    Rate Limit bits/int bits/int (ms) (bytes)
    3072000/3072000 19200 76800 76800 25 9600
    Adapt Queue Packets Bytes Packets Bytes Shaping
    Active Depth Delayed Delayed Active
    - 0 552453209 573909865 30358216 2926188156 no
    Service-policy : policy1
    Class-map: dlsw (match-all)
    979578 packets, 264843255 bytes
    5 minute offered rate 0 bps, drop rate 0 bps
    Match: access-group name acl-dlsw
    Queueing
    Output Queue: Conversation 137
    Bandwidth 128 (kbps) Max Threshold 64 (packets)
    (pkts matched/bytes matched) 20922/17371500
    (depth/total drops/no-buffer drops) 0/0/0
    Class-map: telnet (match-all)
    29938 packets, 1806058 bytes
    5 minute offered rate 0 bps, drop rate 0 bps
    Match: access-group name acl-telnet
    Queueing
    Output Queue: Conversation 138
    Bandwidth 64 (kbps) Max Threshold 64 (packets)
    (pkts matched/bytes matched) 639/38900
    (depth/total drops/no-buffer drops) 0/0/0
    Class-map: class-default (match-any)
    551448911 packets, 249420939729 bytes
    5 minute offered rate 242000 bps, drop rate 0 bps
    Match: any
    Queueing
    Flow Based Fair Queueing
    Maximum Number of Hashed Queues 128
    (total queued/total drops/no-buffer drops) 0/342/0
    Your information would be appreciated.

    Details infomatiuon regarding show policy-map interface
    http://www.cisco.com/en/US/tech/tk543/tk545/technologies_tech_note09186a008010dd6a.shtml
    http://www.cisco.com/en/US/tech/tk543/tk760/technologies_tech_note09186a0080108e2d.shtml
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/qos_r/qos_s2g.htm#wp1146884

Maybe you are looking for

  • Unresolved Webapp Library refereces

    I am getting following Error while deploying the application in weblogic portal 10, we are using weblogic portal 10 wps-toolSupport.war in our application. this error is coming from weblogic.xml of wps-toolSupport.war <Jun 10, 2010 11:40:07 AM EDT> <

  • What is the right behaviour when jms server is down

    Hi, several jms implementation behave differently while trying to connect to the jms server which is not available or when the jms server is suddenly down in the middle. For example: iBus Mobile - handles reconnections internally, doesn't throw excep

  • Error in MDDataSetBW.GetCellData.Please enter a valid value for character

    Hi All, We have a mandotory prompt on 0FISCPER for Web I Report . The promt is present in the universe. The query works fine in Dev , but in Quality it shows the following error A database error occured. The database error text is: Error in MDDataSet

  • Moving and early termination

    I had been unemployed for about a year and a half and only recently found part time work and my unemployment ended. Essentially I might have to move in with my parents again so that I can save a little money and get on my feet again. I would be movin

  • Reg:JDBC sender

    using JDBC sender adapter can we update the database of the receiver system ? If so pls provide me the blogs with suitable explanation anil