Skip to main content

Posts

Showing posts with the label spring-mvc

Good video tutorials for learning Java Spring? [closed]

I am a complete newcomer to Web Development. I briefly went through JSP and Servlets. Now I am trying to learn Java Spring, but unfortunately, there aren't many good tutorials online. I saw the official Spring documentation, but it is not geared towards beginners. I didn't understand much of what I read. The only helpful online video tutorial so far was this one . It covers quite a bit of the basics, but not everything. I have tried searching for good tutorials, but unfortunately, I didn't find many useful ones. Do you have any recommendations? I am looking especially for video tutorials.

Image is not displayed on reterival

I have a table with Images stored in it as BLOB. I'm using JPA/Hibernate. So, that Images are mapped to a bean field with type blob. Now my Spring controller is returning entire list of bean (each object of this bean has a blob object) to my jsp. I want to display all the images on that jsp. So, I tried to use some thing like this on my jsp, <c:forEach items="${itemList}" var="item" varStatus="status" > <img src="<c:out value="${item.image}" />"/><br/> /*<img src="${item.image}"/> */ </c:forEach> but that is not working. Instead of getting the list of images displayed on jsp , I 'm getting the class name, when I view the page source I saw something like this <img src="java.object.serilizableBlob@2134"/> Please help me delve with the problem. How can I display all the images on same jsp.