• Register
Log In
0 votes

Problem :

I am trying to display Data from DB.But facing error as follows

the server encountered an unexpected condition that prevented it from fulfilling the request.
6.9k points

1 Answer

0 votes

Solution :

Please note that you can not iterate over prdt object which you are using forEach tag as prdt is not a List object, so to solve your issue just remove <c:forEach var="x" items="${prdt}"> 

Your your updated JSP looks as below

<img src="resources/Images/${x.id}.png"/>
<c:out value="${prdt.product_Name}"/></td>
<c:out value="${prdt.descripction}"/></td>
<c:out value="${prdt.price}"/></td>
<c:out value="${prdt.mfg_Date}"/>
36.1k points

Related questions

0 votes
1 answer 49 views
Problem : I am trying to run my registration jsp page with the servlet. But it is throwing following error: The server encountered an internal error that prevented it from fulfilling this request. java.lang.NullPointerException com.java.task11.utils.ValidateUtil.EmailVal( ... .tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:62) I am unable to figure out why this is happening? Any clues?
asked Dec 2, 2019 alecxe 7.5k points
0 votes
1 answer 138 views
Problem : I have just signed up for the Google Analytics for the website recently. It was working pretty fine until today. But, after some time, it is showing up below error: Internal error. Please try again later.Analytics has encountered an unexpected condition and cannot ... am not sure what this error is and how to fix it. Can someone tell me the solution on the above mentioned error message?
asked Dec 19, 2019 alecxe 7.5k points
0 votes
2 answers 92 views
Problem : I am facing bellow error java.sql.sqlrecoverableexception no more data to read from socket
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 1.2K views
Problem : I am getting bellow error while using hibernate JPA with spring and mongodb and running my application on Glassfish-4.0. javax.persistence.transactionrequiredexception: executing an update/delete query
asked Oct 19, 2019 peterlaw 6.9k points
1 vote
1 answer 256 views
Problem : I am beginner to spring + hibernate. Recently I have created the application with the use of spring + hibernate but I always face below error. I am trying to work on it for the very first time. Below is the error for your ... ) at coreservlets.StudentDAOImpl.create(StudentDAOImpl.java:19) at coreservlets.MainApp.main(MainApp.java:14) Can somebody help me in overcoming above error?
asked Mar 28 morrisBson 3.2k points