Hi All
I wrote a simple jsp page which uses a bean to
process the form details. In the form you type the
name and when you hit the submit button, it should
reply back as Hello, ......(name).
I imported the class in the jsp page as
<%@ page import = "hello.NameHandler" %>
NameHandler is my bean.
In the bean I have methods calles setUsername() and
getUsername(). The getUsername returns the value of
the name entered in the textbox.
So I coded in the .jsp page as
<jsp:useBean id="myBean" scope="page"
class="hello.NameHandler" />
<jsp:setProperty name="myBean" property="name" />
<br>............<br>
Hello <jsp:getProperty name="myBean"
property="Username" />
The problem is its importing class but not
recoginising jsp tags. Its not giving me any error.
I tried the scope= request also but it didn't work.
Can any body help me...
Thanks
Anand
PS: Thanx Abhishek for the reply
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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