This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

UseBean

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I hava a javabean which connects to database and results a ResultSet Object ..the ResultSet objects contains a list of names...
I want to get the names in my Jsp using <useBean\> tag..huv to do it...
Help pls
Thanks priya
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<%@ page language="java" import="foo.SearchBean" %>
...
<jsp:useBean id="searchResults" scope="request" type="foo.SearchBean"/>
...
[ August 27, 2003: Message edited by: Tiago Fernandez ]
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
suppose ur method name is display() in the java bean class which returns the ResultSet .Then in the jsp create the object of this java bean class by using <jsp:useBean id="obj" scope="session" class="classname"/> .then execute the respective method may be by this syntax
<%=obj.display()%>
 
reply
    Bookmark Topic Watch Topic
  • New Topic