All Questions
58
questions
0
votes
2
answers
632
views
Don't know how to iterate over supplied "items" in <forEach> this is the error. I do not know how to get the row in jsp?
when i hit my url i getting an exception it is saying Don't know how to iterate over supplied "items" in <forEach>
http://localhost:8081/Spring_hibernate/search?keyword=core
this is ...
2
votes
1
answer
180
views
How to retrieve Time value from JSP form and"inject it" into db entity object
One of entities in my application has Time member (TIME column in mysql db). I'd like to be able to read that time value from jstl form (just like any other string), so Spring can inject it into that ...
0
votes
2
answers
1k
views
how to print list of list and other type of data in jsp
i am trying to fetch data from database in spring mvc, this is my code for fetching data
@Override
public List getOrderDetail(Integer shop_id) {
// TODO Auto-generated method stub
SQLQuery ...
0
votes
1
answer
31
views
<q:set var="quid" value= "x" scope="session"/>
I have a function with parameter x how to set in JSTL because I m getting string when I m giving values as "x".
JS:
function test(x)
{
<q:set var="quid" value="x" ...
0
votes
1
answer
189
views
How to bind list of category from database in jsp form
I have list of category in database and I want to bind those category in combobox: I know this is silly question and asked by so many times but I din't get answer as I want please do not down-vote or ...
0
votes
0
answers
652
views
how to get checked checkboxes jstl
i am performing crud operation using Spring MVC with hibernate. And using JSTL for front end. I am displaying checked checkboxes with corresponding database values. but they doesn't check if my ...
0
votes
2
answers
27
views
Input data on form is being created but not presisting values that are being passed, how do i solve this?
I have a OneToMany mapping set up for my student to address, so a student may have multiple addresses. The items are mapped correctly, but when I persist data through the form, the id is generated for ...
0
votes
1
answer
327
views
Cannot solve the problem javax.el.PropertyNotFoundException: Property [content] not found on type [java.lang.String]
I've read the same problem solutions, but it didn't helped me.
there is a part of my Bean class with good written getter:
@Entity
@Table(name = "notes")
public class Note {
@Id
@...
0
votes
1
answer
106
views
Not filling all Spring form fields and getting bad request error 400
I have this hibernate model:
@Entity
@Table(name="BlogPost")
public class BlogPost implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
@...
0
votes
1
answer
209
views
HIbernate - Many to Many - Nested c:foreach
I'm trying to run a nested c:loop in the following. Before the page loads, i get a list itemsextrascat objects with itemsextrascatService.getExtrascatByIditems(item). No problem here, i get the right ...
0
votes
1
answer
193
views
Spring Drop-down List to limit list length to show only 10 options if list size > 10
I have a problem trying to limit my drop-down list to show only x amount of items out of 50 items to include a vertical scrollbar. Is there a way to add inline CSS or methods as I'm not very familiar ...
0
votes
2
answers
1k
views
How to retrieve multiple blob images from database
Hi i am using Spring mvc and hibernate. I want to retrieve multiple blob images from database and want to display in jsp. I tried a lot but did not get fruitful answer. If anyone gives link or sample ...
0
votes
0
answers
72
views
MySQL Aggregate function recordset to list in JSTL+Hibernate
There is a native SQL request
org.hibernate.Session HBsession = HibernateUtil.getSessionFactory().getCurrentSession();
String SQLrequest = "SELECT prods.nom as nom, COUNT( res.productID ) as count ...
0
votes
2
answers
605
views
Unable to access each element from Object array in List in JSP
I am trying to access each element from Object array which is stored in a List but whenever I try to access it by index/properties of Model class its throws below exception
[2016/09/06 10:12:19:351 ...
0
votes
1
answer
117
views
Spring and Hibernate Many To Many with additional fields
I have very interesting problem : Spring hibernate ManyToMany with extra fields
I suppose that this example works fine, but I cannot find DAO layer example with hibernate, and I have problem saving ...