• Register
0 votes
957 views

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 5 3
6,930 points

Please log in or register to answer this question.

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

<table>
<img src="resources/Images/${x.id}.png"/>
<td>
<c:out value="${prdt.product_Name}"/></td>
<td>
<c:out value="${prdt.descripction}"/></td>
<td>
<c:out value="${prdt.price}"/></td>
<td>
<c:out value="${prdt.mfg_Date}"/>
</td>
</table>
9 7 4
38,600 points

Related questions

0 votes
1 answer 4 views
4 views
Problem: Please assist me in resolving this issue in the server encountered an unexpected condition which prevented it from fulfilling the request.
asked Apr 6 tuhin1 48.9k points
0 votes
1 answer 1 view
1 view
Problem: Is there someone who can help me solve this problem &ldquo;The server encountered an internal error () that prevented it from fulfilling this request&rdquo;?
asked Apr 5 tuhin1 48.9k points
0 votes
1 answer 223 views
223 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 3 views
3 views
Problem: please solve it ... From the official documentation:
asked Apr 1 Ifra 24.4k points
0 votes
2 answers 390 views
390 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 24 views
24 views
Problem: Why I got the error :javax.persistence.transactionrequiredexception: executing an update/delete query.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 3.5K views
3.5K 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
0 votes
1 answer 511 views
511 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
1 answer 15 views
15 views
Problem: I need help in solving this error: Could not obtain transaction-synchronized session for current thread.
asked Mar 13 Wafa Abu Yousef 6.1k points
0 votes
1 answer 19 views
19 views
Problem: HELP! I need help understanding this error: Error creating bean with name 'entitymanagerfactory' defined in class path resource.
asked Mar 6 Wafa Abu Yousef 6.1k points