Javabean in JSP

Hi.,I would be obliged if any one can tell how to deploy a JavaBean in JSP program. Please explain me how to achieve this in a JavaWebServer2.0.Please explain where to save the bean programs in The Javawebserver Thanks
[273 byte] By [vlokesh] at [2007-9-26 1:48:13]
# 1

hai

use somewhat like

<jsp:useBean id="db" scope="session" class="com.sqd.BeanName" />

<%

db.methodsonBean();

%>

here bean is saved in root/com/sqd of the server

and bean is like

BeanName.java

package com.sqd

class BeanName

{

use code for bean goes here

}

hope this helps

manu_mr at 2007-6-29 2:48:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
can u tell me where should i place the bean files in javawebserver2.0so that i can run the bean using JSPeg. http://localhost:8080/<filename.jsp>is it the similar way or should i change the URL Thanks
vlokesh at 2007-6-29 2:48:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Place it where ever u r placing ur servlet class files .

ie classes or servlet directory .

u can also create ur own directory inside classess or servlet depending where is ur servlet class files .

u can keep the name of dir as beans for u to remember easily . and use the funda of packages it would work fine .

mohitagarwal at 2007-6-29 2:48:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...