aspose file tools*
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
Author

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(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
at org.apache.jasper.compiler.Parser.parseAction(Parser.java:671)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


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"

Thanks,
Radhika
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: http://aspose.com/file-tools
 
subject: Assistance needed - JSTL/EL - tomcat 4.1.30