Thread: JSTL

Forum : Java Server Pages (Jsp)   14-4-2017 04:00:00 AM
User Image
Vivek3783

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 12

Posts: 12

JSTL

| Quote Date : Apr 14, 2017    Views:789    

I am getting error in condition in following code .. Error : An error occurred at line: 16 column: 2) JBWEB004195: According to TLD or attribute directive in tag file, attribute test does not accept any expressions [code] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> Service Estimate Estimate No: ${estimate.recieptNo}
Actual Amount: ${estimate.actualAmount}
Insurance Amount: ${estimate.insuaranceAmount}
[|code]

tags: java

Comments

User Image
ravi94

Newbie

Joined : Jun 20, 2017

Points : 140

Threads: 5

Posts: 46

Re: JSTL

Reply Date : Jun 26, 2018

Hi Vivek..
I think.. this is too late to response.
This error may come because your JSP page will ignore the JSTL tags. It will not treat them as tags. So try putting this following code in second line of your JSP page:

<%@ page isELIgnored="false"%>?

User Image
Ankit3804

Newbie

Joined : Apr 20, 2017

Points : 110

Threads: 12

Posts: 49

Re: JSTL

Reply Date : Apr 15, 2017

Use jars Standard.jar And Jstl.jar.

User Image
Vivek3783

Newbie

Joined : Apr 20, 2017

Points : 100

Threads: 12

Posts: 12

Re: JSTL

Reply Date : Apr 16, 2017

I already placed Standard.jar And Jstl.jar.

User Image
Ankit3804

Newbie

Joined : Apr 20, 2017

Points : 110

Threads: 12

Posts: 49

Re: JSTL

Reply Date : Apr 16, 2017

Ohkk It's Depends On The Tomcat Server ,Which Version You are Using .Then Use <%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>,It's may be works Fine.

Load More

No More Comments