How can i integrate jqgrid, mybatis, spring mvc and postgresql when i have to display data using jqgrid/JSP via Json.
The project needs to display data from various table in single JSP page as well there must be pagination included.
I searched all over but didn’t find a single working tutorial.
Only at krams i found a tutorial but it takes static data.
while i need to display data from a DB in postgres which will be managed via mybatis-spring mvc.
the table should look like this
Thanks.
I doubt you’ll be able to find working tutorials that integrate all the technologies in your stack.
Here is the Mybatis Spring Tutorial.
Here is a question on Spring MVC Json Response. Spring MVC -> JSON response
Here is jqGrid examples.
Start slow, don’t try to put it together all at once. First write a simple service using MyBatis to select some data objects. Then do the Spring MVC part to return json. Then integrate into the jqGrid.
Jackson is a great Json library, it’s very fast.
I would suggest writing unit tests after each step.