hi friends,
I have a problem in jsp. The problem is i
call a bean from my jsp page but when i run it, it's
giving me an error as that bean not found. i'm new to
jsp and bean, i don't have any problem in compiling
the bean.But i don't know the exact place as to where
i should put my jsp page and bean class. I have put my
jsp page in htdocs folder which is the default folder
for htm's and jsp's. i think it's correct to put those
stuff in that folder but with regard to bean i don't
know where i should put that. In New Atlanta
Servletexec app server i have one folder to put my
servlets which works fine for servlets but where
should i put my bean class. i tried it in putting in
the servlet folder and other folders and i have also
set the classpath for the folder which contains the
class file.
******** please help me out **********
i will give the code here
my jsp code :
=============
<html>
<head>
<title>jsp page which uses a bean</title>
</head>
<body>
<jsp:useBean id="myBean" class="TestingBean" />
<jsp:setProperty name="myBean" property="name"
value="ICC" />
<jsp:getProperty name="myBean" property="name" />
</body>
</html>
my bean code is
===============
public class TestingBean
{
String name;
public void setName(String sName)
{
name = sName;
}
public String getName()
{
return name;
}
}
Thanks in advance
Hoping to get a solution for this friends
bye
Srinivasan.K
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets