Results 1 to 1 of 1
  1. #1
    mjava01 is offline Member
    Join Date
    Mar 2016
    Posts
    1
    Rep Power
    0

    Default How to use JPA to show relation in action class of struts 2.0

    Hi ,

    We are using struts2 in my project with spring and Hibernate JPA technology.We use Json.jsp page to get the data from hibernate.

    I am fairly new to hibernate and never used it with action classes and struts2.0.
    Below is my scenario:

    See the attachment(Table relation and desired jsp page) I need to build a relationship between the given tables in my action calss so that I can get data in my *JSON.jsp.
    Can you guide how can IU define the relationship in my action class so that I can get Product_en_name and respective columns as shown in desired jsp page.
    I can take care of javascript and page design.

    Please help and let me know if you have any additional questions for me.
    Attached Thumbnails Attached Thumbnails How to use JPA to show relation in action class of struts 2.0-table-relation.jpg   How to use JPA to show relation in action class of struts 2.0-desired-jsp-page.jpg  
    Last edited by mjava01; 03-30-2016 at 10:10 PM.

Similar Threads

  1. Take data from db and convert to Json help required
    By alexandra12 in forum New To Java
    Replies: 3
    Last Post: 08-31-2015, 05:33 PM
  2. web api, loading json data
    By java() in forum New To Java
    Replies: 1
    Last Post: 09-18-2014, 04:09 PM
  3. Getting JSON data from REST-based interface
    By Ace in forum New To Java
    Replies: 2
    Last Post: 10-26-2012, 01:16 AM
  4. Show data from PostgreSQL
    By kike_skate in forum New To Java
    Replies: 5
    Last Post: 05-18-2011, 08:06 PM
  5. converting MySQL data to JSON
    By newbiejava in forum New To Java
    Replies: 1
    Last Post: 10-06-2010, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •