• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I am not able to get objects into my JSP - springs and hibernate integrated project

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends ,

I am new to springs and hibernate , know little conceptually but not implemented . I wanted to get my objects rendered in my JSp but i dont know how to call them in JSP page of mine. I have attached the war file which also
contains the source code , only JSp file is missing.

Database is : Mysql
Tools : Eclipse
Framework : springs and hibernate

Problem : in jsp page .


You can get my project from RAr FILE:VMS


war file :VMS WAR FILEE
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can explain better with the source code you have tried so far otherwise people will not understand what is your issue
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ItDoesntWorkIsUseless If you need help with problems, you need to ask specific problems, and show us what you have tried. People will help you figure out the problem, but it will be hard to find someone who will go over your entire project for you.

 
Vijay Chaudhari India
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok in my project i have developed DOA layer with entity , service layer , and even controller and there mapping in springs.xml file



I am not good into JSP as that was not my forte . but project is useless until its been redendered by JSp.
can any one help me give basic knowledge of how will i get objects into my JSP . I know jsp but never implemented anything in JSP

so my question is simple how to make get objects diplayed in jsp . JSP is what i need to complete .
foreg
request.getparameter("XXXXXXXXXXXXXX")

in this XXXXXXX - can i directly get object Visitor (which is an entity class object)
eg

request.getparameter(visitor.visitorid);
request.getparameter(visitor.visitorname);

etc

Jayesh A Lalwani wrote:ItDoesntWorkIsUseless If you need help with problems, you need to ask specific problems, and show us what you have tried. People will help you figure out the problem, but it will be hard to find someone who will go over your entire project for you.

 
Vijay Chaudhari India
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok ok i got it i will post the entire code in mean while
 
Jayesh A Lalwani
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you just want to show request parameters in the JSP? or do you want to pass data from your service layer to the JSP? How have you implemented your Service layer? Have you used SPring MVC? Have you gone through the Spring MVC tutorial here The tutorial takes you step by step through everything from JSP to the database

 
Vijay Chaudhari India
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok below is my CODE :

My controller



Service Layer






Entity class and Doa layer








XML Files

1.hibernate.cfg
2.springs.xml
3.web.xml




SPRINGS.XML




web.xml


NOW THE VIEW - JSP







I just checked with posting here that i havent mapped any classes in hibernate.cfg file .which all classes i need to map ie all doa and eneity class or ALL CLASSES IN MY PROJECT . my second concern is is my JSp pages right along with all web flow and xml
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic