You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Howard Miller <me...@howardmiller.co.uk> on 2002/09/16 23:20:47 UTC
iterate - trouble with TYPE attribute
Hi,
More trouble with iterate....
my iterate tag looks like
<logic:iterate id="valid" name="user" property="validstuff" type="Stuff" >
now Stuff.java defines a bean, exists and works everywhere else. (NB: I am just
using the default package). Stuff.class is in WEB-INF/classses.
The JSP does not compile, I get error messages to say that Stuff cannot be resolved!
What is going on here??
Having lots of bother with iterate - any help appreciated.
Howard Miller
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: iterate - trouble with TYPE attribute
Posted by Howard Miller <me...@howardmiller.co.uk>.
Thanks,
*but* I have (probably) cheated and not used packages. My class is in the default
package (note that I have just used type="Stuff" - I *meant* that :-) ).
So, nothing to import. Not defining a package worked everywhere else - has this 'sin'
caught up with me now??
Any more thoughts??
Howard
On 16 Sep 2002 at 15:24, Bryan Hilterbrand wrote:
> You need an import at the top of your JSP like:
>
> <%@ page import="company.package.Stuff" %>
>
> HTH,
> Bryan
>
> ----- Original Message -----
> From: "Howard Miller" <me...@howardmiller.co.uk>
> To: <st...@jakarta.apache.org>
> Sent: Monday, September 16, 2002 3:20 PM
> Subject: iterate - trouble with TYPE attribute
>
>
> Hi,
>
> More trouble with iterate....
>
> my iterate tag looks like
>
> <logic:iterate id="valid" name="user" property="validstuff" type="Stuff" >
>
> now Stuff.java defines a bean, exists and works everywhere else. (NB: I am
> just
> using the default package). Stuff.class is in WEB-INF/classses.
>
> The JSP does not compile, I get error messages to say that Stuff cannot be
> resolved!
>
> What is going on here??
>
> Having lots of bother with iterate - any help appreciated.
>
> Howard Miller
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: iterate - trouble with TYPE attribute
Posted by Bryan Hilterbrand <Br...@bullwinkle.net>.
You need an import at the top of your JSP like:
<%@ page import="company.package.Stuff" %>
HTH,
Bryan
----- Original Message -----
From: "Howard Miller" <me...@howardmiller.co.uk>
To: <st...@jakarta.apache.org>
Sent: Monday, September 16, 2002 3:20 PM
Subject: iterate - trouble with TYPE attribute
Hi,
More trouble with iterate....
my iterate tag looks like
<logic:iterate id="valid" name="user" property="validstuff" type="Stuff" >
now Stuff.java defines a bean, exists and works everywhere else. (NB: I am
just
using the default package). Stuff.class is in WEB-INF/classses.
The JSP does not compile, I get error messages to say that Stuff cannot be
resolved!
What is going on here??
Having lots of bother with iterate - any help appreciated.
Howard Miller
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>