Why cant I do the following...

I'm trying to set a variable with the value of the error message from the session object.
<c:set var="reason" value="<%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>"></c:set>
          <c:choose>
                <c:when test="${reason=='User is disabled'}">
                     Dont be Daft!!! Use YOUR username and password
                </c:when>
              <c:otherwise>
                   <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
                </c:otherwise>
         </c:choose>     However whenever I deploy I get the following error;
org.apache.jasper.JasperException: /acegilogin.jsp(29,8) According to TLD or attribute directive in tag file, attribute value does not accept any expressionsokay, fair enough. But then how do I set a variable to the value of this error message and then hence how do i run a check on it?
Message was edited by:
DontKnowJack

Have you tried this:
<c:set var="reason">
    <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
</c:set>
<c:choose>
    <c:when test="${reason=='User is disabled'}">
        Dont be Daft!!! Use YOUR username and password
    </c:when>
    <c:otherwise>
        <c:out value="${reason}"/>
    </c:otherwise>
</c:choose>If that doesn't work, it may be that you don't have EL activated (Expression Language). What server do you have? What version of JSTL?
Message was edited by:
stevejluke

Similar Messages

  • Why cant i make the blackberry storm 1 prepaid!!??

    Why cant i make the blackberry storm 1 prepaid!!??

    What do you mean by "browser wallpaper"?
    Themes, formerly known as personas, allow you to change the background of the top toolbars (navigation, bookmarks, etc.) and the bottom toolbar (the add-on bar).
    * https://addons.mozilla.org/firefox/themes/
    If you want to change the background of the New Tab page, you can use the following add-on.
    * https://addons.mozilla.org/firefox/addon/new-tab-tools/

  • Why do i get the following message when i attempt to open my backup file for lightroom cc?  "Lightroom cannot use the catalog named "Lightroom Catalog" because it is not writable and cannot be opened".  This message just started coming  up after downloadi

    why do i get the following message when i attempt to open my backup file for lightroom cc?  "Lightroom cannot use the catalog named "Lightroom Catalog" because it is not writable and cannot be opened".  This message just started coming  up after downloading lightroom cc (previously using lightroom 5)...am i backing up properly or not???

    Open Pictures folder and move the files named lrcat-journal and lrcat.lock to Desktop.
    Make sure that , they are not inside Pictures folder any more and try to open backup from Lighrtroom and check..
    Any LRcat file with .lock extension , move it to Desktop.

  • Hello, Why am I getting the following message after I start up my computer: "CAHeadless has encountered an error. [/Adobe/premiere/elements/Release/12/ALL_LANG_12.1/CAHeadless/Make/Mac/../../Src/CAHeadle ss.cpp-683]." Anyone, please solve this for me? Tha

    Hello, Why am I getting the following message after I start up my computer: "CAHeadless has encountered an error. [/Adobe/premiere/elements/Release/12/ALL_LANG_12.1/CAHeadless/Make/Mac/../../Src/CAHeadle ss.cpp-683]." Anyone, please solve this for me? Thank you very much!

    Hello, Why am I getting the following message after I start up my computer: "CAHeadless has encountered an error. [/Adobe/premiere/elements/Release/12/ALL_LANG_12.1/CAHeadless/Make/Mac/../../Src/CAHeadle ss.cpp-683]." Anyone, please solve this for me? Thank you very much!

  • Why use symbol {   } in the following script?

    Why use symbol *{   }* in the following script?
    <read-write-backing-map-scheme>
    <scheme-name>SampleDatabaseScheme</scheme-name>
    <internal-cache-scheme>
    <local-scheme>
    <scheme-ref>SampleMemoryScheme</scheme-ref>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.tangosol.examples.coherence.DBCacheStore</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    *<param-value>{cache-name}</param-value>*
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    Thank you very much
    Edited by: jetq on Jun 24, 2009 6:26 PM

    Hi Frank,
    In the example, the "{cache-name}" is supposed to be replaced by the database's table or view name that will be queried for the data to be cached. It's purpose is demonstrate how to pass parameters to the class constructor.
    Regards,
    Harv

  • Why use *31L in the following code?

    Why use *31L in the following code?
    * {@inheritDoc}
    public int hashCode()
    return (int) ((long) getAreaCode() * 31L + getLocalNumber());
    public class PhoneNumber
            implements PortableObject
        // ----- constructors ---------------------------------------------------
        * Default constructor (necessary for PortableObject implementation).
        public PhoneNumber()
        * Construct a Phone.
        * @param nAccessCode   the numbers used to access international or
        *                      non-local calls
        * @param nCountryCode  the numbers used to designate a country
        * @param nAreaCode     the numbers used to indicate a geographical region
        * @param lLocalNumber  the local numbers
        public PhoneNumber(short nAccessCode, short nCountryCode,
                short nAreaCode, long lLocalNumber)
            m_nAccessCode  = nAccessCode;
            m_nCountryCode = nCountryCode;
            m_nAreaCode    = nAreaCode;
            m_lLocalNumber = lLocalNumber;
        // ----- accessors ------------------------------------------------------
        * Return the access code.
        * @return the access code
        public short getAccessCode()
            return m_nAccessCode;
        * Set the numbers used to access international or non-local calls.
        * @param nAccessCode  the access code numbers
        public void setAccessCode(short nAccessCode)
            m_nAccessCode = nAccessCode;
        * Return the country code.
        * @return the country code
        public short getCountryCode()
            return m_nCountryCode;
        * Set the country code.
        * @param nCountryCode  the country code
        public void setCountryCode(short nCountryCode)
            m_nCountryCode = nCountryCode;
        * Return the area code.
        * @return the area code
        public short getAreaCode()
            return m_nAreaCode;
        * Set the numbers used indicate a geographic area within a country.
        * @param nAreaCode  the area code
        public void setAreaCode(short nAreaCode)
            m_nAreaCode = nAreaCode;
        * Return the local or subscriber number.
        * @return the local or subscriber number
        public long getLocalNumber()
            return m_lLocalNumber;
        * Set the local or subscriber number.
        * @param lLocalNumbeer  the local or subscriber number
        public void setLocalNumber(long lLocalNumbeer)
            m_lLocalNumber = lLocalNumbeer;
        // ----- PortableObject interface ---------------------------------------
        * {@inheritDoc}
        public void readExternal(PofReader reader)
                throws IOException
            m_nAccessCode  = reader.readShort(ACCESS_CODE);
            m_nCountryCode = reader.readShort(COUNTRY_CODE);
            m_nAreaCode    = reader.readShort(AREA_CODE);
            m_lLocalNumber = reader.readLong(LOCAL_NUMBER);
        * {@inheritDoc}
        public void writeExternal(PofWriter writer)
                throws IOException
            writer.writeShort(ACCESS_CODE, m_nAccessCode);
            writer.writeShort(COUNTRY_CODE, m_nCountryCode);
            writer.writeShort(AREA_CODE, m_nAreaCode);
            writer.writeLong(LOCAL_NUMBER, m_lLocalNumber);
        // ----- Object methods -------------------------------------------------
        * {@inheritDoc}
        public boolean equals(Object oThat)
            if (this == oThat)
                return true;
            if (oThat == null)
                return false;
            PhoneNumber that = (PhoneNumber) oThat;
            return getAccessCode()  == that.getAccessCode()  &&
                   getCountryCode() == that.getCountryCode() &&
                   getAreaCode()    == that.getAreaCode()    &&
                   getLocalNumber() == that.getLocalNumber();
        * {@inheritDoc}
        public int hashCode()
            return (int) ((long) getAreaCode() * 31L + getLocalNumber());
        * {@inheritDoc}
        public String toString()
            return "+" + getAccessCode() + " " + getCountryCode() + " "
                       + getAreaCode()   + " " + getLocalNumber();
    ...

    31 is a nice prime number that is used here to decrease hash collisions
    thanks,
    -Rob

  • Why use "\n" in the following script?

    Why use *"\n"* in the following script?
    Thank you
    public String toString()
    return getStreet1() + "\n" +
    getStreet2() + "\n" +
    getCity() + ", " + getState() + " " + getZip() + "\n" +
    getCountry();
    }

    qkc wrote:
    Why use *"\n"* in the following script?
    Thank you
    public String toString()
    return getStreet1() + "\n" +
    getStreet2() + "\n" +
    getCity() + ", " + getState() + " " + getZip() + "\n" +
    getCountry();
    Maybe because that's how US addresses are formatted?
    BR,
    Robert

  • Why cant I change the wireless carrier

    Why cant I change the wireless carrier on my IPAD. Verizon has very weak signal and cost more for where i use it

    Updates the Bold Text setting to also change dial pad text
    When you view the details before installing it is one of them.
    Adds iCloud Keychain to keep track of your account names, passwords, and credit card numbers across all your approved devices
    Adds Password Generator so Safari can suggest unique, hard-to-guess passwords for your online accounts
    Updates lock screen to delay display of "slide to unlock" when Touch ID is in use
    Adds back the ability to search the web and Wikipedia from Spotlight search
    Fixes an issue where iMessage failed to send for some users
    Fixes a bug that could prevent iMessage from activating
    Improves system stability when using iWork apps
    Fixes an accelerometer calibration issue
    Addresses an issue that could cause Siri and VoiceOver to use a lower quality voice
    Fixes a bug that could allow someone to bypass the Lock screen passcode
    Enhances the Reduce Motion setting to minimize both motion and animation
    Fixes an issue that could cause VoiceOver input to be too sensitive
    Updates the Bold Text setting to also change dial pad text
    Fixes an issue that could cause supervised devices to become un-supervised when updating software

  • Why cant i accept the new iOS7 i-tunes terms and conditions page?

    Why cant i accept the new iOS7 i-tunes terms and conditions page?

    How I solved this.
    Log into itunes on your compter
    Click on Apps under Library in left menu bar
    Click 'Check for Updates' botton right on iMac
    New 'Terms and Conditions' notification appears with accept button
    Click 'Accept' and your all set.
    BTW I had my iphone connect during this procedure.

  • Why cant i made the payment on clash of clans

    why cant i made the payment on clash of clans game??

    I apologize, I wasnt quite clear enough. I meant the center button on my touchpad like the center scroll button on a mouse, not the up down left right arrows on the keyboard. Sorry for the confusion.

  • Why cant i get the latest msnbc shows on itunes?

    Why cant i get the latest video podcats from msnbc on itunes?

    That is vague.
    Are they not offered, or they are offered and you are not allowed to get them.
    Please explain

  • Why cant I have the date format like this:  1/2/07, it converts to Jan 2

    Why cant I have the date format like this: 1/2/07, it converts to Jan 2, 2007
    I want to keep it like that because, I transported a huge spreadsheet from my PC, and it has like this: 1/1/07, and there is way to many, to go back and change. Please help. Thank you.

    Hello
    Welcome to the club.
    The response seems to be simple.
    Those who wrote the Help are not those who wrote the PDF User's Guide which are not those who coded the application.
    As on this forum you will met only users trying to help other users, no one would be able to tell you if what we got is a bug or a design flaw.
    Like many of us,
    *Go to "Provide Numbers Feedback" in the "Numbers" menu*, describe what you wish: a way to define the default format used as Automatic date/time.
    Then, cross your fingers, and wait for iWork'09
    Yvan KOENIG (from FRANCE mardi 15 janvier 2008 15:10:17)

  • Why am I getting the following error message? You can't open the application "Microsoft Word" because PowerPC applications are no longer supported.  This is new...

    Why am I getting the following error message? "You can’t open the application “Microsoft Word” because PowerPC applications are no longer supported."  I never used to have a proble!

    Only Office for Mac 2008 and 2011 will run on Mavericks. Microsoft support for the former package ended in April 2013. If you do not want to spend the money, you might download and try the donation-ware (free) LibreOffice Suite. No ribbon bar crap. Supports about any document created on Windows.

  • Why do I get the following message when I open an APP. Connect to ITUNES to use push notifications. What do I need to do to resolve this issue.

    Why do I get the following message when I open an APP. Connect to ITUNES to use push notifications. What do I need to do to resolve this issue.

    I have had the same problem since the iOS 7 update, but with regards to the Find Friends app. uninstalling and reinstalling the app has not fixed the problem

  • Why do I receive the following message when I try to sync my itouch, "this ipod cannot be used because apple mobile device is not started?

    why do I receive the following message when I try to sync my itouch, "this ipod cannot be used because apple mobile device is not started?

    See Here
    AMDS for Windows
    http://support.apple.com/kb/TS1567

Maybe you are looking for

  • Poor image quality when exporting Solidworks Drawings to PDF

    When "printing" to PDF in Solidworks the drawings become very low quality, within Solidworks they look great, printing to a printer...they look great as well. When printed from another computer to PDF the documents look fine. This door is contained w

  • Finding a Structure name in Programs

    Hi all, I have a structure - EBAN_ORD_CUST in one server-A and it is being updated by a program in another server - B (this structure is not existing in this server). I need to find out the program name which is updating in the server-B. I have searc

  • Having trouble understanding Abstract class. Help!!!!!!

    Having trouble understanding Abstract class. when is Abstract class used and for what.

  • WLC 5508 Finding the culprit

    Hi everyone, I have started receiving these log entries and can't find much about them. I am assuming I have an AP acting up somewhere. This is a WLC 5508 and we have 47 AP's. I thought the AP was one that had crashed but it came right back up after

  • Difference between ES2 and ES2.5

    Can anyone explain the difference between these two product versions?  Thanks.