• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in placing a bean

 
govind raj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where to place a bean class in jawawebserver2.0 to run jsp?
 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

to use the beans(invisible beans only) or user-defined classes in a jsp page, u have to place them in 'classes' directory of JavaWebServer2.0.
regds,
Sandeep.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to create a Package in the Classes folder
and then place the Bean.
Then include the package keyword in the class file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic