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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:18:54+00:00 2026-05-18T12:18:54+00:00

there is 1 jsp page say view.jsp, so via spring it is rendered as

  • 0

there is 1 jsp page say view.jsp, so via spring it is rendered as view.htm, ok that is fine, but now i want to pass a list to it, and according to the given id from the list, the view.htm is change to view.htm/{id} but if i have 100 data, then do i need 100 jsp pages ?? how can i resolve this via spring

  • 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-18T12:18:55+00:00Added an answer on May 18, 2026 at 12:18 pm

    You can add the list in the request and iterate through it in your view.jsp.

    Like So (exaggerated example),

    List<String> datas = new ArrayList<String>();
    //Add 100 datas...
    request.setAttribute("datas", datas);
    

    Now, you can use JSTL to iterate over it…in view.jsp.

    <c:if test="${requestScope.datas != null}">
    
    </c:if>
    

    Or, didn’t I understand you correctly?


    Edit based on your question, you can still iterate through the data on the list and create an anchor tag that appends the data id to the view.htm.

    something, like (in pseudo code)

    ${someData.description}

    Where someData is the replaced datas as put on first post. The anchor tag will be situated inside the <c:if> tag, hence if you have 100 items in an array, you’ll have 100 anchor tags.

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

Sidebar

Related Questions

I've build a simple SpringMVC login system that works fine, but I want to
There is a JSP page in which i have an ArrayList variable. I need
In a JSP page, there is such code: <jsp:useBean id=checklog class=com.google.admin.guard.CheckLogBean scope=session /> and
I have a JSP page where there is a row of buttons in their
Is there a way in JSP to know the current page name (not the
Are there any better ways to use constants in a JSP than: <%@ page
I've a jsp page which saves a request parameter inside a javascript variable. Say
In a jsp file, is there a way to find a component on that
I have a dynamic page (say myFlashContainer.jsp) which renders different Flash content based on
I would like to include a JSP page into another JSP page. Let's say

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.