Thread: JSTL

Forum : Java Server Pages (Jsp)   14 Apr, 2017 04:00
User Image
Vivek3783

Newbie

Joined: 20 Apr, 2017

Points: 100

Threads: 12

Posts: 12

JSTL

| Quote Date : 14 Apr, 2017    Views:860    

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 : 20 Jun, 2017

Points : 140

Threads: 5

Posts: 46

Re: JSTL

Reply Date : 26 Jun, 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 : 20 Apr, 2017

Points : 110

Threads: 12

Posts: 49

Re: JSTL

Reply Date : 15 Apr, 2017

Use jars Standard.jar And Jstl.jar.

User Image
Vivek3783

Newbie

Joined : 20 Apr, 2017

Points : 100

Threads: 12

Posts: 12

Re: JSTL

Reply Date : 16 Apr, 2017

I already placed Standard.jar And Jstl.jar.

User Image
Ankit3804

Newbie

Joined : 20 Apr, 2017

Points : 110

Threads: 12

Posts: 49

Re: JSTL

Reply Date : 16 Apr, 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