I posted a message about my problem, but I think I partially found the
solution. But, I still have a question. In my 2 getter method calls on my
bean, one returns a HashMap, and one returns an ArrayList. I'm not sure how
I can setup this up in my JSP so that I can iterate thru the data set.  Any
suggestions???  Thanks!
_______________________________________
I'm trying to send a reference to my bean to my JSP page from my servlet. In
my servlet I do this:

String url = "/docs/GoalsObjectivesByAll.jsp";
HttpSession session = request.getSession();
session.setAttribute("reportsBean", rptBean);
RequestDispatcher rd = request.getRequestDispatcher(url);
rd.forward(request, response);

______________________________________
In my JSP I have this piece for my Java code;

<jsp:usebean id="reportsBean" scope="session" class="born.util.ReportsBean"
/>
<%  ArrayList rowSet;
HashMap dataSet = <jsp:getProperty name="reportsBean" property="report" />;
ArrayList userNames = <jsp:getProperty name="reportsBean"
property="userNames" />;
%>

<HTML>
<TABLE>
<TR>
<TH>User Name</TH><TH>Goal
Value</TH><TH>Ability</TH><TH>Perception</TH><TH>Standard</TH>
</TR>
<TR>
<% for (int x = 0; x < dataSet.size(); x++ ) {
rowSet = (ArrayList)dataSet.get(userNames.get(x));
for (int y = 0; y < rowSet.size(); y++) {  %>
<TD><%= rowSet.get(y) %></TD>
<% } %>
<TR>
<% } %>
</TABLE>
</HTML>


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to