I have not parametr from request.getParameterNames.

Hello.
I use Form-Based Authentication.
I need write bad login in db.
I have loginError.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1251"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix ="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<title>Ошибка</title>
</head>
<body>
<c:set var="LoginErrorCount"
scope="session"
value="${sessionScope.LoginErrorCount == null ? 1 :sessionScope.LoginErrorCount + 1}"/>
<f:view>
<h:outputLabel id="ou1" value="#{backing_infrastructure_loginError.er}"/>
<c:redirect url="/faces/infrastructure/loginAdf.jspx"/>
</f:view>
</body>
</html>
and
public class LoginError {
private String _er = "1";
public void setEr(String er) {
this._er = er;
public String getEr() throws IOException {
ExternalContext eCtx = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest request = (HttpServletRequest)eCtx.getRequest();
for (Enumeration e = request.getParameterNames(); e.hasMoreElements() ; ) {
System.out.println(e.nextElement());
} //I have not parametrs. Why?
//"j_username"
Object o1 = request.getParameter("j_username");
System.out.println(o1);//null.. why?
return _er;
when I listen in debug request then I see values in body httpRequest.
How do I use this data?
thx, Dema.
Edited by: Demka on Mar 1, 2011 4:13 AM
Edited by: Demka on Mar 1, 2011 4:14 AM

Hi,
the best thing is, trhough el expression, copy the request parameters in a pageFlowScope variable.
You get null because at the moment your code gets executed, the parameters aren't there.

Similar Messages

  • HT4898 So, the emails I have not deleted from my mac will not be available after I move to iCloud?

    So, the emails I have not deleted from my macbook will not be available after I switch to iCloud?
    Also, I have an iPhone4 and an original iPad.  Will these, along with my macbook, still be compatible?  IE synched?

    Margaret1947 wrote:
    So, the emails I have not deleted from my macbook will not be available after I switch to iCloud?
    That is incorrect, archive them now and restore them later, if they are Mobile Me emails they will move to iCloud without you doing anything, but you should still archive them first.

  • HT204088 iTunes is telling me that I have not purchased from my iPhone before although I have multiple times, and I don't remember my security questions and there is no option to change them. Any suggestions other than making a new account?

    iTunes is telling me that I have not purchased from my iPhone before although I have multiple times, and I don't remember my security questions and there is no option to change them. Any suggestions other than making a new account?

    If you create a new Apple ID you won't have access to the media purchased with the Apple ID you are currently using.
    Try here > Rescue email address and how to reset Apple ID security questions

  • HT6006 I got a bill for $33.59 on 4/28 which I think is wrong? and I was supposed to get an answer. This was 2 days ago and I have not heard from you

    I got a bill for $33.59 on 4/28 which I think is wrong. I have not heard from you and sent this in 2 days ago. I need an answer

    This is a user to user support forum. Apple is not here. Apple does not answer questions here.

  • I can't update my apps, I think that the problem is that I've change my password from my ID Apple but  they have not change from the telephone configuration. Any idea?

    I can't update my apps, I think that the problem is that I've change my password from my ID Apple but  they have not change from the telephone configuration. Any idea? Thanks

    Hi skippy2012trev,
    Welcome to the Apple Support Communities!
    I understand that you updated your Apple Id and password but now you are being prompted for the old information in iCloud. You are on the right track by changing the Apple ID back to the previous email address temporarily so that you can sign out. You should not need to verify the email address. After you edit the Apple ID back to the old email address and then sign out of iCloud on your iPhone, edit the Apple ID back to the address you would currently like to use. There is no need to change the password again, only the email address, unless you prefer to update the password again.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
    Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    Cheers,
    Joe

  • HT1541 I have balance on $32.86 on my account which I have not used (from Itunes card). I would like to redeem it today, but it is asking for a code. I don't have the card anymore, what should I do to buy song and use by balance?

    I have a balance of $32.86 on my account (from loading a Itune gift card) which I have not used. How can I redeem this if I buy a song. I ask the code which I don't have anymore.

    If the card has been redeemed onto your account then you shouldn't need to re-enter it - I've never had to re-enter any of mine, and once a card has been redeemed it effectively becomes zero, it's value should be added to your balance. What is happening when you try to buy the song ?

  • Polish characters are not retrived from request object

    Hi
    I have a problem in passing POLISH character through request object.
    I am calling a servlet from a jsp with a hyper link. when the link in jsp is clicked the following code will be executed
    response.sendRedirect(response.encodeURL("http://hostname:8080/appName/abc.do?method=getReport&FirstName=Ko�tun&LastName=Pro�ciak"));
    this code is passing two POLISH strings First Name & Last Name to the servlet.
    In the servlet i am trying to retrieve the values of the parameters "FirstName" & "LastName".
    Sring FN=request.getParameter("FirstName");
    String LN=request.getParameter("LastName");
    The variable FN & LN doesn't show the POLISH character in servlet.
    I tried with the below option in JSP
    <meta content="text/html; charset=ISO-8859-2" > (or)
    <meta content="text/html; charset=UTF-8" >
    (or)
    <%@ page contentType="text/html;charset=ISO8859_2" %>
    (or)
    <%@ page contentType="text/html;charset=UTF-8" %>
    In Servlet i tried using
    request.setCharacterEncoding("ISO-8859-2");
    (or)
    request.setCharacterEncoding("UTF-8");
    Pl help me.
    Thanks in advance

    Don't do it then. Those characters are not allowed inside a URL and have to be encoded. You know, that %... stuff.

  • TS3212 I just got a warning that the Itunes 10.6 that I just downloaded could impare or disable my XP system, could someone please tell me why? I have not upgraded from XP due to several reasons and now I don't know what to do. I had Itunes before on my c

    I just got a warning that the Itunes that I just downloaded (10.6) could impare or destablize my system- I have had Itunes on my computer before but when I plugged in my Ipod it told me I needed to uninstall Itunes and reinstall itunes all together. Now I don't know what to do. I have a Sony computer that runs on Windows XP and then I have an Ipad, Iphone, and Ipod that I sync everything with What do I do? Do I continue installing? And, if I don't install how will I ever get all my "gadgets" to work properly without being able to download Itunes 10.6? Need Help!!!! I'm not very tech savey...just a grandmother who loves her gadgets:)

    What's the precise text of the message, please? (There's a couple of different ones I can think of that you might be getting.)

  • I have a New IPone 5 and I cannot buy anything thru Itunes since I have not purchased from this device before. Itunes is trying to verify my ID by asking some security questions that I have never put the answers in for. Tried Support.

    Apple Support says they have to have the answers to the security questions before they can rest my questions...????/

    The Three Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • My computer blanks out when I press F3 - any reason? I have sent the report to Apple but have not heard from them

    My MacBook Pro shuts down when I press F3. HAs anyone experienced this before? any solutions?

    Hi ..
    Those reports are for the Apple developers perusal only. You will not receive a reply.
    Restart your Mac then try the F3 button.

  • Notes do not sync from iCloud to iPhone 4s AND Notes disappear from iPhone

    My notes are not syncing from iCloud to my iPhone 4s.
    I turned Notes 'off' on my iPhone (Settings>iCloud>Notes), then back on.
    Now all of my notes on my iPhone have DISAPPEARED.
    Restarted my 4s - no change.
    I created a test Note on iCloud.com and it does not appear on my iPhone.
    ALL of my Notes were only in the iCloud account on my iPhone.
    Help please!

    Notes will not sync with your iPhone 4S, nor your iPhone 3G, or your iPad unless you have Notes selected from the Info tab in iTunes.
    Help here >  iOS: Syncing with iTunes

  • HP LaserJet M1132 MFP does not print from a remote desktop

    Hi,
    I have a HP LaserJet M1132 MFP (product number CE847A) connected to a PC (MS Windows XP Home Edition + SP3) via USB. There is no problem with the printer. However, when the connection using Remote Desktop (it's set to use local facilities and resources, or in my case, printers, and serial ports) to the server (MS Windows Server 2008 R2), I can not even print a test page from a remote desktop.
    Error message: "Print a test page failed. Do you want to display a tool to solve problems with printing to get help?"
    But it does not lead to nowhere, as expected is access to the internet, and I have not it from a MS Windows Server 2008 R2.
    The same error is for the HP LaserJet M1120n MFP.
    I have installed on my PC other printer - old OKI ML321 (needle) connected to a PC using LPT cable and network printer Konica Minolta 1690MF (in another room). In both of these printers can easily print a test page from a remote desktop.
    Please help me.
    This question was solved.
    View Solution.

    Thank you for your interest.
    The situation is a bit different than the picture. Windows Server 2008 R2 is available through the WAN. LAN is plugged into the PC-1, PC-2 and Konica Minolta printer. HP LaserJet M1120n MFP is connected via USB to the PC-1. OKI ML 3320 printer is connected via LPT also to the PC-1. PC-1 has access to Konica Minolta printer via the LAN. PC-2 also has access to Konica Minolta printer via the LAN. PC-2 is also available for PC-1 HP and OKI.
    It seems to me that I found the explanation for the printing problems - some of "my" printers are simply not compatible with Windows Server 2008 R2. I found on the net the following information:
    http://www.windowsservercatalog.com/item.aspx?idItem=cdde267a-800d-2d9f-1f0c-225cabd6838e&bCatID=128...
    http://www.windowsservercatalog.com/item.aspx?idItem=31df9819-ca52-4684-dc3b-8e31b70c77d7&bCatID=128...
    http://www.windowsservercatalog.com/item.aspx?idItem=6475235d-8dbb-9e95-11dc-3575d569acc2&bCatID=128...
    http://www.windowsservercatalog.com/item.aspx?idItem=59731747-9976-8d51-dcbb-7664cbc17a89&bCatID=128...
    I think I can close the topic.
    (translated from Polish into English using Google translator)

  • I paid, but I have no minutes from April 5.

    Can you help me - I payed but I have not minutes from April 5th. I send you a notice which I got from Skype:
    Transaction date: Apr 2, 2014
    Order number: [removed for privacy]
    Order status: Delivered
    Please note: This is a recurring payment.
    We have stored your payment method and you will be charged each time your subscription automatically renews until you cancel. You can cancel any time in My account under Subscriptions. For more information read Skype’s refund policy. 
    What is the problem?
    Post transferred from blog article;
    Subject/title edited accordingly.

    Hi 
    Has the pack now been applied?
    Thanks. 

  • What happened to my User folder? Now there is a default.migrated folder instead. I did not upgrade from W7. Always had W8.

    Is my User folder gone? I have no idea what happened to it. Is it possible that a virus has redirected the folder or has placed it somewhere else for access? I have not upgraded from W7.  W8 is the factory installed OS on my system. Any thoughts on
    what happened?

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is a standard response I’ve written up in advance to help many people (thousands, really.)
    who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support <br/> Read the Subscriptions <a href="http://blogs.msdn.com/msdnsubscriptions">Blog! </a>

  • Have not received my free tablet after taking broadband and tv package in april

    I have not heard from EE in regard to the free tablet i was to receive after taking the tv and broadband package.I registared for the reward and at the time it did say you were have difficulty due to the demand. However it is now August when will i receive the tablet?

    You need to keep chasing EE.

Maybe you are looking for