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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:48:18+00:00 2026-05-27T19:48:18+00:00

The task is to retrieve parameters from session via JSTL. The session parameter name

  • 0

The task is to retrieve parameters from session via JSTL. The session parameter name is “programId” .

I tried:

 <c:if test="${sessionScope.programId != null}" > 
  please execute
  </c:if>

Then I tried:

 <c:if test="${sessionScope:programId != null}" > please execute </c:if>

Here I get: The function applicationScope:programId is undefined

On top I have:

 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

Oracle has in examples:

http://docs.oracle.com/javaee/1.4/tutorial/doc/JSTL5.html

 <c:if test="${applicationScope:booklist == null}" > 
   <c:import url="${initParam.booksURL}" var="xml" />
   <x:parse doc="${xml}" var="booklist" scope="application" />
</c:if>  

where applicationScope can be swapped by sessionScope.

again “trivialism” complexity drives me nuts. Why corp. examples never work?

Thank You Guys,

  • 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-27T19:48:19+00:00Added an answer on May 27, 2026 at 7:48 pm

    You’re reading the wrong tutorial page. The <c:xxx> tags does not belong to the JSTL XML taglib which supports XPath syntax. Instead, it belongs to the JSTL Core taglib for which the proper tutorial page is here.

    You need to use the normal ${bean.property} notation instead.

    <c:if test="${applicationScope.booklist == null}"> 
       <c:import url="${initParam.booksURL}" var="xml" />
       <x:parse doc="${xml}" var="booklist" scope="application" />
    </c:if>
    

    In normal EL (not XPath!) syntax, the : identifies the start of an EL function. See also the JSTL Functions taglib for several EL function examples for which the tutorial page is here.

    See also:

    • Our JSTL tag wiki page
    • Our EL tag wiki page
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my task is to retrieve a set of messages from GMail via POP3 (no
My task is to retrieve an xml from https://test24.highrisehq.com/tasks/upcoming.xml that is a secure connection
My task is to retrieve html strings from urls using Java. I know how
I have the following beans Task, ServerDetails and ApplicationDetails. I wish to retrieve all
Simple task like make AJAX request , pass one parameter and return result, can
How can I get the task_id value for a task from within the task?
Is there any way to retrieve the priority of a task using EWS Managed
I have a script task in an SSIS package that is supposed to retrieve
Goal: Retrieve data aaa from the first td in tr by pressing the link
.what i want to do is to retrieve records from my database and display

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.