Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

setArribute, Struts, and JSP

Posted on 2007-11-23
3
Medium Priority
?
279 Views
Last Modified: 2013-11-24
Here is a code snippet from one struts action:

try{
             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?

Thanks,
0
Comment
Question by:tiger0516
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 11

Assisted Solution

by:Manish
Manish earned 150 total points
ID: 20338488
0
 
LVL 11

Accepted Solution

by:
Manish earned 150 total points
ID: 20338493
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
A solution for Fortify Path Manipulation.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

636 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