java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config [duplicate]

The error is telling you it cannot find the class because it is not available in your application. If you are using Maven, make sure you have the dependency for jstl artifact: <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> If you are not using it, just make sure you include the JAR in your classpath. See this … Read more

I can pass a variable from a JSP scriptlet to JSTL but not from JSTL to a JSP scriptlet without an error

Scripts are raw java embedded in the page code, and if you declare variables in your scripts, then they become local variables embedded in the page. In contrast, JSTL works entirely with scoped attributes, either at page, request or session scope. You need to rework your scriptlet to fish test out as an attribute: <c:set … Read more

Use with HashMap [duplicate]

Yes, this is perfectly acceptable. When you use <c:forEach> to iterate over a Map, each item in the iteration is an instance of Map.Entry. So given your example: <c:forEach var=”type” items=”${types}”> Key is ${type.key} Value is ${type.value} </c:forEach>

Iterate over elements of List and Map using JSTL tag

Suppose ${list} points to a List<Object>, then the following <c:forEach items=”${list}” var=”item”> ${item}<br> </c:forEach> does basically the same as as following in “normal Java”: for (Object item : list) { System.out.println(item); } If your ${list} is a List<Person> where Person is a Javabean having name and email properties represented by getName() and getEmail() getter methods, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)