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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:42:53+00:00 2026-06-04T08:42:53+00:00

I use websphere 8 and RAD 8 and this scriptlet output the correct value:

  • 0

I use websphere 8 and RAD 8 and this scriptlet output the correct value:

<%= ansokanInfo.getPSystem() %>

But using EL it outputs nothing:

${ansokanInfo.PSystem}

I can write anything between the ${ and } and it won’t render. What am I doing wrong? what should be done to enable EL expressions? This is not working either:

<c:out value="${ansokanInfo.PSystem}" />

But this is working:

<c:forEach var="i" begin="1" end="5" >     <c:out value="${i}" />    </c:forEach> 

My web.xml starts like this:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  • 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-06-04T08:42:55+00:00Added an answer on June 4, 2026 at 8:42 am

    Scriptlets and EL do not share the same variable scope. Scriptlet variables are declared in JSP body, while EL variables are supposed to be set as an attribute of the page, request, session or application scope.

    So, to make the ansokanInfo available in EL, you need to set it in one of those scopes. Assuming that it represents request scoped data, do so:

    request.setAttribute("ansokanInfo", ansokanInfo);
    

    You could do that in a scriptlet before the first EL evaluation of this variable ever. But more sensible would be to do that in a preprocessing servlet.

    To learn and understand the concepts properly, check our wiki pages on the mandatory subjects:

    • Our EL wiki page
    • Our JSP wiki page
    • Our Servlets wiki page
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use IBM RAD 8 and deploy to websphere and then I get this
Which version of JSP/servlet is in websphere 8? I use IBM RAD 8 with
I'm using IBM RAD 7.5 and WebSphere. What would be the appropriate tool to
I am using RAD 7.5.0 and the websphere server v6.1. When i start the
I'm currently using RAD 7.0.x.x but I would like to switch to Eclipse. As
I'm using Websphere Portal 7.0 and creating a portlet with RAD 8.0. My portlet
Using JMS & WebSphere MQ, if I use a message selector to selectively dequeue,
Now I use the websphere MQ client connect to remote MQ Server(7.0 version) using
Can I use Java 1.6 with WebSphere Application Server 6.1? IBM's website says no
use this code, in the Preferences activity, to know when the reset preference has

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.