Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 133679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:28:34+00:00 2026-05-11T06:28:34+00:00

I have an instance of the following object in the jsp page context: Class

  • 0

I have an instance of the following object in the jsp page context:

Class User{   private boolean isAdmin;   public boolean isAdmin(){return isAdmin} } 

How can I query the isAdmin property from the EL? This doesn’t seem to work:

${user.admin} 

nor does this:

${user.isAdmin} 

thanks!

-Morgan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:28:35+00:00Added an answer on May 11, 2026 at 6:28 am

    Ok. I’m stupid. Vote this question down, ridicule me, etc. The problem was in the method that isAdmin() was delegating to. There was a null pointer exception in that method. In my defense, however, I’ll say that the stack trace I got was a bit unclear, and made it look like it was an EL issue rather than a simple null pointer in my code.

    Vinegar, your assurances that isAdmin() works even without a property did help me figure this out. Thanks for that.

    javax.el.ELException: java.lang.NullPointerException         at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)         at com.sun.el.parser.AstValue.getValue(AstValue.java:138)         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)         at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)         at org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp._jspx_meth_c_forEach_1(org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp:452)         at org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp._jspx_meth_c_forEach_0(org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp:399)         at org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp._jspx_meth_form_form_0(org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp:348)         at org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.managepermissions_jsp:197)         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)         at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334)         at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)         at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:240)         at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:252)         at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1173)         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following object: public class MyClass { public int Id { get;
I have a following object: public class TestObject { public String Something { get;
I have an IEnumerable of the following object: public class Recipient { public int
I have the following object: public class ItemChange<T> where T : MyBase { public
Assume that I have the following object public class MyClass { public ReadOnlyDictionary<T, V>
I have the following model and instance: class Bashable(models.Model): name = models.CharField(max_length=100) >>> foo
I have written the following Utility class to get an instance of any class
I have the following code in config: <?php return array( 'di' => array( 'instance'
I have the following class objects in Google App Engine's dadastore, I can see
I have the following code in one of my Modules : public class MyModule

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.