This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a JSP page, where i have display a report. the Reports has more column and data. So when I tried of displaying, I got a exception stating that the code is too long to compile. So I spited the pages into two. However I am using JSP action include including the child page in the parent page.
I am using struts iterate tag to iterate. I really don't know how I can pass the Nth Object ever time to the child page. Here I am don�t know how take the n object from the current iterate in the parent page, then how can I sent that as an object to the action include JSP page (Child page).
The logic:iterate tag places the bean exposed by each iteration in page scope. Normally this is fine as you generally use the bean within the same page. In your case, though, you'd want to put the bean in a wider scope such as request so that you can use it in a different page. You can do this with the bean:define tag. Here's an example:
In this example, the "other.jsp" can retrieve "requestScopedBean" from request scope and use it to display values. [ June 26, 2007: Message edited by: Merrill Higginson ]