setArribute, Struts, and JSP

Posted on 2007-11-23
Last Modified: 2013-11-24
Here is a code snippet from one struts action:

             String isbn=request.getParameter("isbn");
             DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.FactoryImplementation.DB_DAO_FACTORY);
             BookDAO bao=factory.getBookDAO();
             Set<Section> sections=bao.getBook(new Isbn(isbn)).getSections();
             request.setAttribute("sections", sections);
             return mapping.findForward("success");

It forwards to a list.jsp page.

In list.jsp page, how shall I display "sections"?

Shall I use

<logic:present name="sections">

or something else?

Question by:tiger0516
  • 3
LVL 11

Assisted Solution

Manish earned 50 total points
ID: 20338488
LVL 11

Expert Comment

ID: 20338492
LVL 11

Accepted Solution

Manish earned 50 total points
ID: 20338493

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
get weblogic logged in user in java 2 58
compre toata in where clue oracle 4 56
eclipse argument 14 53
Java Loop 6 49
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now