Hi,
the problem indeed was in the HQL query - fixing the
query resulted in a List with objects of type Gallery,
that can be processed correctly by the posted forEach
tag.
Much obliged,
Thomas
--- thomas delnoij <[EMAIL PROTECTED]> wrote:
> David,
>
> I am assuming that it is a bean, with a St
David,
I am assuming that it is a bean, with a String
property 'uniqueId'.
I did find out by now that the HQL query that creates
the List returns a collection of objects of Type
java.lang.Object and not of my desired custom Type
('Gallery'). Casting them to the Gallery type in the
JSP leads to a
At 08:03 AM 11/16/2004 -0800, thomas delnoij wrote:
Helios.
image is null, leading to NPE when I add this
scriplet.
As I conclude from this thread that the EL syntax is
correct, I think I have to delve deeper into my
controller and model logic to be able to fix this. As
I am using Spring's MVC fram
What I read from this error message is that the type of "image" is a
List or Array. That's what it's complaining about. What are you
assuming is the type of the objects in the "pageList" collection? If
you assume each object is a List or Array, then the syntax of
"${image.uniqueId}" will not wor
Helios.
image is null, leading to NPE when I add this
scriplet.
As I conclude from this thread that the EL syntax is
correct, I think I have to delve deeper into my
controller and model logic to be able to fix this. As
I am using Spring's MVC framework and PagedListHolder,
I don't think this list
Sorry!
<%
out.println(request.getAttribute("image"));
out.println(request.getAttribute("image").getClass().getName());
%>
At 13:46 16/11/2004 -0200, you wrote:
I think the same.
Can you insert a scriplet to debug it?
<%
System.out.println(request.getAttribute("image"));
System.out.println(request.g
I think the same.
Can you insert a scriplet to debug it?
<%
System.out.println(request.getAttribute("image"));
System.out.println(request.getAttribute("image").getClass().getName());
%>
At 07:26 16/11/2004 -0800, you wrote:
Helios,
this leads to the same exception being thrown:
javax.servlet.Servle
Helios,
this leads to the same exception being thrown:
javax.servlet.ServletException: An error occurred
while evaluating custom action attribute "value" with
value "${otherImage.uniqueId}": The "." operator was
supplied with an index value of type
"java.lang.String" to be applied to a List or ar
> this does not lead to a servletexception being
> thrown.
p.s. but the value of the uniqueId attribute is not
printed as well.
-- Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Sorry, I was not clear. I assumed you didn't want image to be a List. And
maybe image is containing other object that is implementing List.
Try changing "image" for "otherImage" (in c:forEach and c:out) for avoiding
this posibility.
At 06:55 16/11/2004 -0800, you wrote:
> I guess the "image"
Kris,
this does not lead to a servletexception being thrown.
Why is it not possible to access the attributes of the
object referenced by the var varibale using the "."
notation? Doesn't the out tag resolve those to java
bean style get*** calls?
Maybe I am missing out on something essential?
Rgr
> I guess the "image" contained in
> pagedImageList.getPageList() doesn't
> implement List.
Should it really? Isn't image merely the scoped
variable for the current item of the iteration, and
can't it be of any type? pagedImageList.getPageList()
returns a List, it's items are assignes one-by-one
Try
What you have is the equivalent of
Quoting thomas delnoij <[EMAIL PROTECTED]>:
> Hello,
>
> I am having problems using the forEach tag. I am using
> jstl 1.0 on Tomcat 5.0, Windows 2000.
>
> Code:
>
> var="image" >
>
>
>
> The pagedImageList Object is a session scope object of
>
I guess the "image" contained in pagedImageList.getPageList() doesn't
implement List. Maybe the image var is being used somewhere else for a List.
And you can try ${image.class} or ${image.class.name} to see if it's the
appropiate object.
(it converts to image.getClass() and image.getClass().g
14 matches
Mail list logo