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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:18:26+00:00 2026-06-03T19:18:26+00:00

I working with spring 3.1 and method should return a view that represented by

  • 0

I working with spring 3.1 and method should return a view that represented by jspx page. While in debug i see variable in model named noteList, i can’t print or iterate this variable on the page.

The output is ${noteList}.

Here is some code:

@RequestMapping( value = "/", method = RequestMethod.GET)
public ModelAndView rootPage(){
    List<Note> result = sessionFactory.openSession().createCriteria(Note.class).list();

    ModelAndView mv = new ModelAndView("index");
    mv.addObject(result);
    return mv;
}

<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:spring="http://www.springframework.org/tags" version="2.0">
    <jsp:directive.page language="java"
        contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />

    <![CDATA[<!DOCTYPE html>]]>
    <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Index page</title>
</head>
<body>
    <c:out value="${noteList}"/> 
</body>
    </html>
</jsp:root>

<beans:bean id="viewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <beans:property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
        <beans:property name="prefix" value="/WEB-INF/views/" />
        <beans:property name="suffix" value=".jspx" />
    </beans:bean>
  • 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-03T19:18:28+00:00Added an answer on June 3, 2026 at 7:18 pm

    thanks all! i have got an answer.

    The problem was in the jspx page

    working page contains next code at the beginning:

     <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
        xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:spring="http://www.springframework.org/tags"
        xmlns:form="http://www.springframework.org/tags/form" version="2.0">
    
        <jsp:output doctype-root-element="html" omit-xml-declaration="true"
            doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
            doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
        <jsp:directive.page language="java"
            contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
    
        <html>
    <head>
    .....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Spring Web Project that we are using Subversion, Eclipse
I am working on a project that has Spring based Web Services and Spring
I'm working on a demo that makes use of Spring.NET IoC capability in ASP.NET
I'm working on page that allows users to edit profile info. I want them
I'm working on some image transformations using ASP.NET/C#/GDI+. I have a method that looks
I'm working with spring 3.0.6. My app has lot of places where logging added
I am new to working with Spring on regular basis so I had a
I've try to implement integration tests for a working application (spring, hibernate, soap, cxf).
I'm working on a Spring 2.0 project, without annotations. We're using several PropertyPlaceholderConfigurer beans
A project I am working on uses Spring 2.5 & JPA with Hibernate as

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.