Solved

setArribute, Struts, and JSP

Posted on 2007-11-23
3
269 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 50 total points
ID: 20338488
0
 
LVL 11

Expert Comment

by:Manish
ID: 20338492
0
 
LVL 11

Accepted Solution

by:
Manish earned 50 total points
ID: 20338493
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
null output 3 42
going to wrong jsp page 2 49
restrict decimal places for double datatype 10 32
Tomcat 9 + java 8 error while trying to deploy a war file 2 721
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

733 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