Why can't I use the word "faces" in my url-mapping?

I am trying to get a servlet to work for the url /faces/inloggen but I cannot get it to work. Anything without the word faces in it will work.
I simply want this tag to work:
    <servlet-mapping>
        <servlet-name>LoginServlet</servlet-name>
        <url-pattern>/faces/inloggen</url-pattern>
    </servlet-mapping> The servlet reads a username and password from a database and should eventually redirect to the correct page.
Does the order in which the mappings appear in the web.xml matter?

Hm, that also means I have no faces context in my servlet, which makes it kinda hard to look in the database for the password.
How should I go about this then? I tried using Lucas Jellema's login module but it has this weird bug which makes every username containing 'OR' impossible to use because of sqlinjection (yes, even if there's no spaces around it).
I figured I could write my own servlet and let it handle my logins but apparently that's not how it's done. Any help would be appreciated!
Edit:
In the howtos I find the following comment:
// SQL INJECTION DETECTION
// Detects and reports SQL injection attempts. The following code logs all attempts to enter
// SQL commands like create, drop, update, delete, insert, hexadecimal encoded characters etc.
// and immediately returns false
Pattern p = Pattern.compile("(?i)\\bselect|create|insert|delete|drop|update|or|%.\\d\\b");
Matcher m = p.matcher(username);
if (m.find())
    //someone tries to break into this application and should be tracked back
    log("SQL Injection attempt detected: username was altered to include SQL keyword: "+m.group(),LOG_AUTH);
    return false;
All database LoginModules that perform authentication based on user and role tables contain this code snippet. The regular expression can be extended to filter even more SQL key words if needed.That's great! How do I change that regexp so that I can use usernames containing 'OR'? This is a real problem for us....
Message was edited by:
Wendy Tromp

Similar Messages

  • Hi, why can't I use the iMessage on my iPhone? I've already had my apple id email on it but it keeps saying "waiting for activation" always like that. No progress. Could anybody help me on this? Cheers

    Hi, why can't I use the iMessage on my iPhone? I've already had my apple id email on it but it keeps saying "waiting for activation" always like that. No progress. Could anybody help me on this? Cheers

    I have an old iPod Touch with old software that can no longer be updated:
    iOS version 6.1.6
    I've been searching for a solution to my iMessage login problem for months and tried everything from those frustrating links and all the tips from other users.
    Here is what finally worked:
    1) Settings > Privacy > Location Services > On
    2) Settings > General > Date & Time > Set Automatically > On
    3) Reboot device until Apple logo appears
    4) Settings > Messages > Sign In

  • Why can't i use the radio on my nano 7g with bluetooth

    why can't i use the radio on my nano 7g with bluetooth. i wanted to use wireless feature at work but i only use the radio at work , so i bought bluetooth stereo headphones by plantronics, got the backbeat 903, at wal-mart  . got home got it all set up and works fine but not for radio , i'm so dissaponted and am thinking i might take them back and continue using the wire ware , but then again i like listening to my podcast while doing dishes and chores at home so the bluetooth would be better for that .

    i have sent a feedback form to apple about this problem . i hope that they work on a sulotion for it .

  • Why can't I use the update center in 9i Jdeveloper any more?

    why can't I use the update center of 9i jdeveloper with my otn username and password anymore?
    Is there any problem?

    Hi,
    We're aware of this issue and are looking into it.
    Thanks,
    Brian
    JDev Team

  • Why can't I use the function of menu item 'issue delivery output'?

    why can't I use the function of menu item 'issue delivery output' in main screen of delivery note?
    And at the same time I can't use the button of printing in main screen of delivery note.
    the main screen of delivery note I mean above is in screen of maintaining shipping data instand of the first screen of VL02N.
    TKS in advance.

    Hi,
    Because delivery will be having header level output and item level output. So if u try to print through main screen then system will not know whether it is header related or item related. That is the reason it is only print output at header level or item level but not in main screen.
    I think u may have doubt like how billin will be issued output through Main screen. Because for billing both header and item level data are same..
    Regards
    Sankar

  • Why can't I use the Basic brush tool?

    I'm learning the ropes of drawing in Illustrator and I've fallen at the first hurdle. Why can't I use the Basic brush tool? Whenever I select the brush tool and use the 'Basic' brush type, the cursor turns into a hashed circle indicating I can't draw. If I load other brushes, I can draw with other brush types, but I can't use the Basic one. If I select the Basic brush when I have other brushes loaded and try to draw with it, it always defaults to a different brush! I don't understand why.
    On a related matter, I'm also having trouble changing brush size. I know that using the [ and ] keys changes brush size, but I have no idea what the values are. If I try this in Photoshop, I can see the brush size in the Options bar, but in Illustrator it doesn't appear anywhere! Not in the Brushes palette, the Stroke palette or the Appearance palette. Where can I see the brush size?

    Glitcher,
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Why can't I use the landscape feature for iPhone 5? It only works in limited apps. I feel as though I wasted my money since I prefer to use my phone in landscape mode.

    Why can't I use the landscape feature in all of the apps? It seems like a waste of money since I prefer to use the landscape feature.

    It is up to the app developer to decide if the app should work in landscape mode or not. This is also true on Android phones, by the way.

  • I can't enter to youtube? Why can't i use the internet in my campus from college?

    i can't enter to youtube? Why can't i use the internet in my campus from college?

    It is entirely possible your college has decided to block certain websites. It's easy to do.

  • Why can't i use the old remote control to change slides in the latest version

    why can't i use the old remote control to change slides in the latest version of keynote

    It would help to know what remote control your talking about, there are hundreds out there.

  • Exporting to Facebook - why can't I use the old plug-in?

    It's nice that iPhoto '09 tried to help us with the Facebook exporter built-in. But why couldn't they make it useful? Why can't I tag people before I upload them? Why can't I upload photos to an existing album? I wouldn't mind so much, but they seemed to have disabled the existing (working) plug-in that was available. So now I have to export the pictures to my desktop and upload them through Facebook. Hmm...doesn't seem too user-friendly.

    Exporting to Facebook - why can't I use the old plug-in?
    Have you considered asking the author of the plug-in?
    It's nice that iPhoto '09 tried to help us with the Facebook exporter built-in. But why couldn't they make it useful?
    Millions upon millions of people do find it very useful
    Why can't I tag people before I upload them?
    You can - have you watched the iPhoto tutorials?
    Why can't I upload photos to an existing album?
    You can IF the album was created by iPhoto
    Do you have an iPhoto question that one of the iPhoto users who volunteer here might be able to help with?
    LN

  • It says in the corner of my itunes account that i still have money from my itunes gift card that i redeemed, but when i buy a song my billing info pops up. Why can't I use the money?

    It says in the corner of my itunes account that i still have money from my itunes card that i redeemed, but when i try to buy a song, the billing info. pops up. Why can't i use the money on my card?

    It is simply asking you to verify your account info. Select None for the CC.
    It will still pay with your gift card balance.

  • Why can't I edit the Word doc I converted from a PDF?

    Why can't I edit the Word doc I converted from a PDF?
    Help! That is why I bought this software!

    Hi linda007,
    If you can't edit the file once it's converted to Word, it could be that the PDF was created from a scanned page, and then image text wasn't converted to searchable text. ExportPDF should perform Optical Character Recognition by default, but it can be disabled in Reader. Do you know whether OCR was disabled when you converted the page? If it wasn't, make sure that the correct language was selected for OCR. This option appears at the bottom of the ExportPDF panel in Reader, and in the Document Language (for Text Recognition) pop-up menu that appears after you select your file to convert in the ExportPDF online service.
    If everything seems to have been set correctly, and you still can edit the text, please try triple-clicking to select the text in Word. Did that do the trick?
    Best,
    Sara

  • Why can't i use the rest of my money on my iTunes redeem money

    Why can't I use the rest of my money that I redeemed my I tunes card with.

    You do not state your issue and what happens when you try...
    So...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • Once I convert pdf to WORD, why can't I edit the WORD document?

    Once i convert PDF to WORD, why can't i edit the WORD document?

    Hi sophtex,
    Kindly refer this FAQ:Can't edit converted Word or Excel file
    Please let me know for further assistance.
    Regards,
    Florence

Maybe you are looking for

  • XSLT producing different results via debugger and xslt.Transform()

    I'm producing the body of an email via an xsl. I've been having a problem with the html nested inside a <table> tag not displaying correctly. With a bit of help from the good folks over at the asp.net forums, I've tracked the problem down to getting

  • Oracle or MS SQL Server, EJB Models and Web Dynpro Application

    Hi I've a table in MS SQL database. I've created in Visual Admin, the datasource(jdbc/MyAlias) for the above. SQL Server has Employee Table with EmpId, FirstName, LastName and Description as its Columns. I want to display, modify , insert and delete

  • Lost Wifi and Battery icons at top of screen

    Hi, Post mirroring a tv show on my Mac Air i have lost the icons at the top right of my screen. The spaces still function and both the percentage (not battery icon) and time both still appear. All the other icons appear as blank spaces. please help!!

  • JNDI, EARs and managed servers

    I have an EAR file containing a WAR and two EJB JAR files. When I deploy this EAR onto a server (admin server), assign a target to the 3 modules and run, evertying is fine. I now have a scenario where I have added a managed server (so there are two t

  • Reading colour table form a 24bit Bmp....

    Im trying to load and display a 24bit bmp using IMAQ, but it only show a gray scale picture and I cant get it to load the colour table. IMAQ load file is set to load the colour table, and I wierd the coulour table to IMAQ windraw. The colour tabel cl