Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to show user objects in jsp page

 
Samanthi perera
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my loging.jsp


this is my selection page


i need to show my user objects in this jsp.
anyway how to show them?
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4119
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samanthi perera wrote:i need to show my user objects in this jsp.

I'm not sure I understand what you meant.
Please IsolateTheProblem.
 
Jonas Isberg
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An exemple of how to generate output from java objects.
Be aware that sometimes there is an (=) and sometimes not,
the same applies for (;)
I got the result
 
Samanthi perera
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is a table called user.
i need to get an user object from table and show some details of users in jsp
how to do this?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
  • Copy the data from the resultset into a User object or other construct.
  • Set the data as a scoped variable in request scope.
  • Use the JSTL and EL to display the values on the page.
  •  
    Jonas Isberg
    Ranch Hand
    Posts: 118
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
  • Is your data in a database?
  • Have you created any classes that should hold your data?
  • What steps do you think you would have to take to solve the problem?

  • (Edit: I posted these questions without seeing Bear's post. They could still be useful though.)
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic