I am using JRun 2.3.3 as my servlet engine with
Microsoft IIS on Win NT.
I found that the jsp tags I gave on the jsp page are
not recognised by the JRun. I tried to fix all
possible syntax errors I was doing with help of the
suggestions given by the listserv members.
If I use
"
<BEAN NAME="colorsize" TYPE="ColorSizeBean"
INTROSPECT="yes" CREATE="yes" SCOPE="request">
</BEAN> "
on the .jsp its working fine if I say something like
<% colorsize.setFontSize("2") %> this where
setFontSize is a method in the bean.
but
I use the jsp tag to use another bean called
NameHandler, its importing the class in the page but
when I give
"
<jsp:useBean id="myBean" scope="page"
class="hello.NameHandler" />
<jsp:setProperty name="myBean" property="username" />
Hello, <jsp:getProperty name="myBean"
property="username" /> "
the jsp tags are not recognised. The compiler is not
giving any error but just discarding the jsp tags.
I believe JRun supports JSP latest specification.
Am I doing anything wrong? Why is it not recognising
jsp tags? Do I have to set any configuration details
in JRun?
one more question is
what is the difference of using useBean jsp tag and
directly <BEAN> tags in the jsp page?
Can somebody help...
--- Gogia Nitin <[EMAIL PROTECTED]> wrote:
> in setProperty u r giving the property as name
> instead of username.
>
> Nitin
>
> >
> > 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
>
>
===========================================================================
> 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
__________________________________________________
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