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

  • Home
  • SEARCH
  • 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 6588187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:01:00+00:00 2026-05-25T17:01:00+00:00

How to do this JSP code <%= session.getAttribute(attributeName) %> in Expression Language where stuff

  • 0

How to do this JSP code <%= session.getAttribute("attributeName") %> in Expression Language
where stuff goes like ${blabla}

Forgot to say that I actually tried the ${sessionScope.attributeName}, btw the attribute value is a String and was set by session.setAttribute("attributeName", "EditSession123"); and to check on that the value was sent right I created a jsp 1.0 file and used <%= session.getAttribute("attributeName") %> which was working but when I used JSP 2.0 nothing appears.

I’m beginning to question my header definitions ? it’s auto generated from Eclipse

<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
    <jsp:directive.page contentType="text/html; charset=UTF-8" 
        pageEncoding="UTF-8" session="false"/>
    <jsp:output doctype-root-element="html"
        doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
        omit-xml-declaration="true" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
</head>
<body>

hello ${sessionScope.attributeName}

${pageContext.servletContext.serverInfo}

</body>
</html>
</jsp:root> 
  • 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-25T17:01:01+00:00Added an answer on May 25, 2026 at 5:01 pm

    ops, :S session is set as false, I should have read the eclipse generated code carefully,

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

Sidebar

Related Questions

I have a jsp code like this <html:option value=${apealstaList.appealStatusMasterId} disabled=true>${apealstaList.appealStatusDescription}</html:option> This disable the options
What is the equivalent servlet code for this: <jsp:useBean id=user class=beans.UserBean scope=session/> <jsp:setProperty name=user
Currently my jsp 2.0 tags that need spring beans use this code: ac =
I have some old jsp code that uses the struts tags inside attributes, like
I have this JSP code snippet: <%@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c%> <c:choose> <c:when test=${var1.properties[\Item Type\]
I have this jsp client that consumes a webservice. The problem with the client
I have this simple Jsp page: <%@ page language=java import=java.awt.Color%> <% Color background =
I have a custom jsp tag like this: <a:customtag> The body of the custom
Basically what I mean is like this: List<String[]> routes = (List<String[]>)application.getAttribute(routes); For the above
I have this piece of code on a JSP file : // MainHomePage pageApp

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.