You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vimal Kansal <vi...@yahoo.com> on 2001/07/20 01:45:41 UTC
Problem with iterate tag
Hi,
I am getting JSP parse exception, in the following
code snippet :
====================================================
<table width=100% border>
<%-- This table will be
generated, if at all any users were found --%>
<logic:present name="USERS"
scope="request" >
<bean:define id="users"
name="USERS" type="java.util.Vector" scope="request"
toScope="request" />
<tr>
<th class=fieldheading>
</th>
<th class=fieldheading>
Login Name
</th>
<th class=fieldheading>
Full Name
</th>
<th class=fieldheading>
Company
</th>
<th class=fieldheading>
Department</th>
<th class=fieldheading>
Groups
</th>
</tr>
<logic:iterate id="usr"
name="users"
type="com.netfish.xdi.struts.beans.UserSummaryData"
collection="<% users% >">
<tr>
<td class=fieldentry>
1
</td>
<td class=fieldentry>
<html:link
page="/logon.do">
<bean:write
name="usr" property="userID" />
</html:link>
</td>
<td class=fieldentry>
<bean:write
name="usr" property="fullName" />
</td>
<td class=fieldentry>
<bean:write
name="usr" property="company" />
</td>
<td class=fieldentry>
<bean:write
name="usr" property="department" />
</td>
</tr>
</logic:iterate>
</logic:present>
===================================================
The error is happening on the line <logic:iterate
.....
Can somebody help me?
Vimal
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Re: Problem with iterate tag
Posted by Frank Ling <st...@hotmail.com>.
<logic:iterate id="usr"
name="users"
type="com.netfish.xdi.struts.beans.UserSummaryData"
collection="<% users% >">
should be
<logic:iterate id="usr"
name="users"
type="com.netfish.xdi.struts.beans.UserSummaryData"
collection="<%= users% >">
----- Original Message -----
From: "Vimal Kansal" <vi...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Thursday, July 19, 2001 4:45 PM
Subject: Problem with iterate tag
> Hi,
>
> I am getting JSP parse exception, in the following
> code snippet :
>
> ====================================================
>
> <table width=100% border>
> <%-- This table will be
> generated, if at all any users were found --%>
> <logic:present name="USERS"
> scope="request" >
> <bean:define id="users"
> name="USERS" type="java.util.Vector" scope="request"
> toScope="request" />
> <tr>
> <th class=fieldheading>
>
> </th>
> <th class=fieldheading>
> Login Name
> </th>
> <th class=fieldheading>
> Full Name
> </th>
> <th class=fieldheading>
> Company
> </th>
> <th class=fieldheading>
> Department</th>
> <th class=fieldheading>
> Groups
> </th>
> </tr>
> <logic:iterate id="usr"
> name="users"
> type="com.netfish.xdi.struts.beans.UserSummaryData"
> collection="<% users% >">
> <tr>
> <td class=fieldentry>
> 1
> </td>
> <td class=fieldentry>
> <html:link
> page="/logon.do">
> <bean:write
> name="usr" property="userID" />
> </html:link>
> </td>
> <td class=fieldentry>
> <bean:write
> name="usr" property="fullName" />
> </td>
> <td class=fieldentry>
> <bean:write
> name="usr" property="company" />
> </td>
> <td class=fieldentry>
> <bean:write
> name="usr" property="department" />
> </td>
> </tr>
> </logic:iterate>
> </logic:present>
>
> ===================================================
>
> The error is happening on the line <logic:iterate
> .....
>
> Can somebody help me?
>
> Vimal
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
Re: Problem with iterate tag
Posted by Vimal Kansal <vi...@yahoo.com>.
Actually I solved it!
Vimal
--- Calvin Yu <ca...@mindspring.com> wrote:
> A stack trace would be helpful.
>
> Calvin
>
>
> On 19 Jul 2001 16:45:41 -0700, Vimal Kansal wrote:
> > Hi,
> >
> > I am getting JSP parse exception, in the following
> > code snippet :
> >
> >
> ====================================================
> >
> > <table width=100% border>
> > <%-- This table will be
> > generated, if at all any users were found --%>
> > <logic:present name="USERS"
> > scope="request" >
> > <bean:define id="users"
> > name="USERS" type="java.util.Vector"
> scope="request"
> > toScope="request" />
> > <tr>
> > <th class=fieldheading>
> >
> > </th>
> > <th class=fieldheading>
> > Login Name
> > </th>
> > <th class=fieldheading>
> > Full Name
> > </th>
> > <th class=fieldheading>
> > Company
> > </th>
> > <th class=fieldheading>
> > Department</th>
> > <th class=fieldheading>
> > Groups
> > </th>
> > </tr>
> > <logic:iterate id="usr"
> > name="users"
> >
> type="com.netfish.xdi.struts.beans.UserSummaryData"
> > collection="<% users% >">
> > <tr>
> > <td
> class=fieldentry>
> > 1
> > </td>
> > <td
> class=fieldentry>
> > <html:link
> > page="/logon.do">
> > <bean:write
> > name="usr" property="userID" />
> > </html:link>
> > </td>
> > <td
> class=fieldentry>
> > <bean:write
> > name="usr" property="fullName" />
> > </td>
> > <td
> class=fieldentry>
> > <bean:write
> > name="usr" property="company" />
> > </td>
> > <td
> class=fieldentry>
> > <bean:write
> > name="usr" property="department" />
> > </td>
> > </tr>
> > </logic:iterate>
> > </logic:present>
> >
> >
> ===================================================
> >
> > The error is happening on the line <logic:iterate
> > .....
> >
> > Can somebody help me?
> >
> > Vimal
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
>
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Re: Problem with iterate tag
Posted by Calvin Yu <ca...@mindspring.com>.
A stack trace would be helpful.
Calvin
On 19 Jul 2001 16:45:41 -0700, Vimal Kansal wrote:
> Hi,
>
> I am getting JSP parse exception, in the following
> code snippet :
>
> ====================================================
>
> <table width=100% border>
> <%-- This table will be
> generated, if at all any users were found --%>
> <logic:present name="USERS"
> scope="request" >
> <bean:define id="users"
> name="USERS" type="java.util.Vector" scope="request"
> toScope="request" />
> <tr>
> <th class=fieldheading>
>
> </th>
> <th class=fieldheading>
> Login Name
> </th>
> <th class=fieldheading>
> Full Name
> </th>
> <th class=fieldheading>
> Company
> </th>
> <th class=fieldheading>
> Department</th>
> <th class=fieldheading>
> Groups
> </th>
> </tr>
> <logic:iterate id="usr"
> name="users"
> type="com.netfish.xdi.struts.beans.UserSummaryData"
> collection="<% users% >">
> <tr>
> <td class=fieldentry>
> 1
> </td>
> <td class=fieldentry>
> <html:link
> page="/logon.do">
> <bean:write
> name="usr" property="userID" />
> </html:link>
> </td>
> <td class=fieldentry>
> <bean:write
> name="usr" property="fullName" />
> </td>
> <td class=fieldentry>
> <bean:write
> name="usr" property="company" />
> </td>
> <td class=fieldentry>
> <bean:write
> name="usr" property="department" />
> </td>
> </tr>
> </logic:iterate>
> </logic:present>
>
> ===================================================
>
> The error is happening on the line <logic:iterate
> .....
>
> Can somebody help me?
>
> Vimal
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/