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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:15:45+00:00 2026-06-08T10:15:45+00:00

I have a jsp file with the following <c:forEach var=node items=${tree.children}> <c:set var=currentNode value=${node}

  • 0

I have a jsp file with the following

<c:forEach var="node" items="${tree.children}">
  <c:set var="currentNode" value="${node}" scope="request"/>
  <c:out value="${currentNode.displayName}" />
  <jsp:include page="currentNode.jsp"/>
  <br/>
</c:forEach>

with currentNode.jsp containing, at the moment, only

X<c:out value="${currentNode.displayName}" />Y

The variable currentNode should be available in the included jsp file. For example, see this question.

But even this simple example is not working. I am getting the following output

Node 1 XY
Node 2 XY
Node 3 XY

Where I was expecting

Node 1 XNode 1Y
Node 2 XNode 1Y
Node 3 XNode 1Y

What am I missing to make this work?

  • 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-08T10:15:47+00:00Added an answer on June 8, 2026 at 10:15 am

    My bet is that you forgot to declare the core taglib in your included JSP. The <c:out> tags will thus be sent as is to the output, and the browser will ignore them. Check the generated HTML code.

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

Sidebar

Related Questions

I have a jsp file: validate.jsp- var rollNo=document.forms[result_form][studentRollno].value; var name=document.forms[result_form][studentName].value; $(#student_result).load(result.jsp?rollNo=+rollNo+&name=+name); As you can
I have the following HTML in a JSP file: <div class=custList> <table class=dataGrid> <c:forEach
I have the following in jsp: <form action=/ucReady2/uploadservlet method=post enctype=multipart/form-data> <label for=filename_1>File: </label> <input
In a web project using jsp, I have following requirement Upload a file (say
I have a .jsp file that receives a request and checks the request's parameters.
i have the following problem: I've got a JSP file with the following Code:
I have following piece of code in my jsp file which getSession information: <jsp:useBean
For simplicity, i have the following file named test.jsp: <script language=javascript> alert(a$b.replace(/\$/g,k)); </script> I
I have the following JSP File and Servlet file <html> <head> <meta http-equiv=Content-Type content=text/html;
I have the following jsp file <%@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1%> <%@ page

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.