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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:44:47+00:00 2026-05-28T05:44:47+00:00

i was searching for the same problem as mine, but i didn’t find anything.

  • 0

i was searching for the same problem as mine, but i didn’t find anything. This is my problem:

I have ArrayList which includes beans. My beans is class ‘Row’. There are setters and getters.

This is method from Database class:

public ArrayList<Row> getDatalist() {
    datalist = new ArrayList<Row>();
    try {
        String query = "SELECT * FROM ...";
        ResultSet r = s.executeQuery(query);
        while(r.next()) {
            Row row = new Row();
            row.setLocation(r.getString(4));
            row.setVolume(r.getInt(3));
            row.setTime(r.getTime(5));
            row.setDate(r.getDate(5));
            datalist.add(row);
        }
    } catch (SQLException e) {
        e.printStackTrace();
    }
    return datalist;
}

My servlet:

    ArrayList<Row> rows = db.getDatalist();
    request.setAttribute("rows", rows);
    request.getRequestDispatcher("/main.jsp").forward(request,response);

And at least ‘main.jsp’:

<c:forEach var="row" items="${rows}">
      <c:out value="${row.location}"></c:out>
</c:forEach>

The problem is that ${row.location} is empty. My page source:

<c:forEach var="row" items="[webservice.model.Row@1e41769, webservice.model.Row@1bd0815, webservice.model.Row@15dd716, webservice.model.Row@1d40d08]">

      <c:out value=""></c:out>

</c:forEach>

Any idea? Thanks a lot.

  • 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-28T05:44:48+00:00Added an answer on May 28, 2026 at 5:44 am

    Well, your page source indicates the problem clearly: the c tags aren’t interpreted by the container. This means that you forgot to declare the c taglib at the top of the JSP:

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching and this problem seems simple but cannot find answer. I
I've been searching on this for a while now, but I can't find anything
Been searching all around but still cannot find a solution for this problem. My
I have almost the same problem as this unanswered question . The only difference
Searching here I found that this question was already asked , but I think
I've been searching around for this, I've managed to find out out to change
I've been searching all day and found several similar issues, but none have resolved
I'm searching for a better alternative to deal with this problem. In a CoreData
I'm searching for a solution for a weird problem. I have a controller, that
been searching everywhere, but couldn't the correct answer. the problem is pretty simple: i

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.