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 7444719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:34:27+00:00 2026-05-29T11:34:27+00:00

I wish to use $(member.email) , a variable which I’ve passed into a JSP

  • 0

I wish to use $(member.email), a variable which I’ve passed into a JSP page, inside of a <% block on that same page. Its value shows up outside of the block, but inside the block it can’t see it at all.

I have tried using request.getAttribute("member.email") but that merely spit back a null. Request.getAttribute("member.email") gives me a string, which does not have the aforementioned value outside of the block.

I am unsure how to describe this problem any better than I have.

  • 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. Editorial Team
    Editorial Team
    2026-05-29T11:34:29+00:00Added an answer on May 29, 2026 at 11:34 am

    This is how ${member.email} basically works “under the covers” (scope and null checks omitted):

    Member member = (Member) request.getAttribute("member");
    String email = member.getEmail();
    out.print(email);
    

    Please note that writing Java code in JSP files is considered a bad practice. If you intend to serve JSON, you can better write it from inside the servlet instead of a JSP file. JSP is more for HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to use xml and xsl to generate controls on an asp.net page.
I wish to use Wikipedia api to extract the result of this page: http://en.wikipedia.org/wiki/Special:PrefixIndex
I wish to use QtWebKit to load a url for display, but, that's the
I'm writing a windows C# application which I wish to use data grid views,
We wish to use the Binary Formatter. In debugging, thus far, it seems that
I wish to add items in a ListWidget, which is a private member of
I wish to use the Validating event on a label in VB.Net (Visual Studio
I wish to use the Tomcat install/deploy tasks from catalina-ant.jar to deploy a webapp
I wish to use the method with the following signature: exec(String command, String[] envp,
I wish to use Spring MVC to provide a REST web service. However, running

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.