wood burning stoves*
The moose likes JSP and the fly likes how to show user objects in jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to show user objects in jsp page " Watch "how to show user objects in jsp page " New topic
Author

how to show user objects in jsp page

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3102
    
  40

Samanthi perera wrote:i need to show my user objects in this jsp.

I'm not sure I understand what you meant.
Please IsolateTheProblem.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Jonas Isberg
Ranch Hand

Joined: Mar 18, 2003
Posts: 118
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

Joined: Jan 08, 2010
Posts: 510
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

Joined: Jan 10, 2002
Posts: 61221
    
  66

  • 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.


  • [Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
    Jonas Isberg
    Ranch Hand

    Joined: Mar 18, 2003
    Posts: 118
  • 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
     
    subject: how to show user objects in jsp page