File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Assistance needed - JSTL/EL - tomcat 4.1.30 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 "Assistance needed - JSTL/EL - tomcat 4.1.30" Watch "Assistance needed - JSTL/EL - tomcat 4.1.30" New topic

Assistance needed - JSTL/EL - tomcat 4.1.30

PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
Would be good if someone could help/guide.
This is my jsp

Have included c.tld, c-rt.tld in the web-inf\tld folder.
This is the exception i get ...

org.apache.jasper.JasperException: /test.jsp(5,7) jsp.error.badaction
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(
at org.apache.jasper.compiler.ErrorDispatcher.jspError(
at org.apache.jasper.compiler.Parser.parseAction(
at org.apache.jasper.compiler.Parser.parseElements(
at org.apache.jasper.compiler.Parser.parseBody(
at org.apache.jasper.compiler.Parser.parseCustomTag(
at org.apache.jasper.compiler.Parser.parseElements(
at org.apache.jasper.compiler.Parser.parse(
at org.apache.jasper.compiler.ParserController.parse(
at org.apache.jasper.compiler.ParserController.parse(
at org.apache.jasper.compiler.Compiler.generateJava(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.JspCompilationContext.compile(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(

Am i missing something ? This is the first time i'm into JSTL/EL.
Radmika Arunachalam
Ranch Hand

Joined: Mar 29, 2004
Posts: 45
I tried same using TOMCAT 5.0.28. got error saying end attribute should not accept expressions... so i changed to
<c:forEach var="counter" begin="1" end="3">

i am getting correct answer 1 2 3.

This is the error i got while tring your code

"According to TLD or attribute directive in tag file, attribute end does not accept any expressions"

PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
I removed the first line from my page(trial and error) and it worked !!

Anyway, thanks for the response.
I agree. Here's the link:
subject: Assistance needed - JSTL/EL - tomcat 4.1.30
It's not a secret anymore!