Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Advanced Java  RSS feed

 
Subhashini, Ramappa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to this site,kindly help me how to embedd a Java Bean in a JSP,is it by means of the tag <BeAN>.
 
Subhashini, Ramappa
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it by mean of the tag <BEAN>,I typed in this in my previous post but only a part of my question is been displayed.Please help.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this would be better in the "Servlet and JSP" forum.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree, Thomas.
 
Arun, Shanmugham
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Subha,
Welcome to this informative forum. You can use a bean with following tag in ur JSP page.
<jsp:useBean id="name" class="package.class" />
This means that an object of the class specified in the class attribute will be created and bound to a variable named in id attribute. For more info visit http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
Arun
SCJP
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!