File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes c:foreach--attribute problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "c:foreach--attribute problem" Watch "c:foreach--attribute problem" New topic
Author

c:foreach--attribute problem

Joseph Clark
Ranch Hand

Joined: Sep 10, 2005
Posts: 48


Does anyone know why this code ...


produces this result ...

[Ljava.lang.String;@1629e71

Thank you.
[ January 07, 2006: Message edited by: Michael Clark ]
Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

Hi Michael.

I have tried this code as is and i got an error saying that the <c:forEach> tag's items attribute does not suport expressions. Which JSTL version are you using? 1.1? If so, try specifying the following uri: "http://java.sun.com/jsp/jstl/core"

Kind regards,
Marzo.
[ January 08, 2006: Message edited by: Marzo Khaan ]

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA

Live life to an interface, not an implementation!
Joseph Clark
Ranch Hand

Joined: Sep 10, 2005
Posts: 48
I was getting that error.
I think I have solved my problem.
I used c-rt.tld in standard.jar,and it worked.
That must be why they say to use c-rt.tld instead of c.tld.
[ January 08, 2006: Message edited by: Michael Clark ]
shanthisri mocherla
Ranch Hand

Joined: Sep 05, 2005
Posts: 119
Hello friends
I was getting this error.org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

can you please explian why am I getting this error??
Thank you very much in advance

Shanthi
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I think that you should have jstl.jar and standard.jar in your lib directory.


[My Blog]
All roads lead to JavaRanch
shanthisri mocherla
Ranch Hand

Joined: Sep 05, 2005
Posts: 119
Thanks Satou

I've copied both the jar files ,but did not place them in WEB-INF/lib.
That was the problem.

Thanks once again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: c:foreach--attribute problem