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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:24:14+00:00 2026-06-17T11:24:14+00:00

My JSTL variable is not being interpreted between the <a> </a> tags. As a

  • 0

My JSTL variable is not being interpreted between the <a> </a> tags. As a result, no link are being displayed on my page.
${page} is also not being interpreted in the <c:param> tag. Any idea? in that case, the link that results is /listing.htm?page= instead of something like /list.htm?page=2 for example.

<li>
  <a href="<c:url value="/list.htm" >
    <c:param name="page" value="${page}"/></c:url>">
  ${page}
  </a>
</li>

I have also tried this way but it does not make any difference:

<li>
  <a href="<c:url value="/listing.htm" >
    <c:param name="page" value="${page}"/></c:url>">
  <c:out value="${page}"/>
  </a>
</li>
  • 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-17T11:24:16+00:00Added an answer on June 17, 2026 at 11:24 am

    My bad, the problem was not coming from this code. Inside the foreach, I gave a different variable name to my variable so of course it was inaccessible.

    I was having the following code:

    <div class="pagination pagination-centered">
        <ul>        
            <c:forEach begin="${startpage}" end="${endpage}" var="p">
                <li><a href="<c:url value="/list.htm" >
                                   <c:param name="page" value="${page}"/>
                                 </c:url>"><c:out value="${page}"></c:out>
                    </a>
                </li>                       
            </c:forEach>
        </ul>
    <div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is having tags inside a jstl tag considered bad form? So for example I
I just wanted to demonstrate why we should not be using JSTL tags to
JSTL variable values are not shown in EL. For example this code: <%@ taglib
is it possible to return ResultSet variable to JSTL foreach tag? I am getting
I am using JSTL tags. i have below code. <c:set var=refreshSent value=false/> Now variable
Is there any way to specify a variable as a parameter name in JSTL,
Why would the pageContext variable not be findable in this custom tag installed in
Trying to use JSTL but have the following problem: Index.xhtml page: <?xml version=1.0 encoding=UTF-8?>
I am using jstl for small testing. And it is not working how it
Are there any libraries that support JSTL style coding in an ASP MVC view?

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.