hi nishit
<jsp:getProperty> tag will get the value of a bean property sothat u can
display it in a result page
but with this u r using expression tag which cannot work, if u want to
access the db values then u use expression tage where u want to show it on
the page
hope this clarifies
surya
----- Original Message -----
From: "ravi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 1:39 PM
Subject: Re: newbie...


> Nishit Trivedi wrote:
>
> > hi,
> > I am new to JSP..
> >
> > Can I do something like this:
> >
> > <%
> >  String firstName= %><jsp:getProperty name="foo" property="firstName"/>
<%;
> > ....
> > ....
> > %>
> >
> > Can I store the value returned by getFirstName() in firstName varible
> > without
> > using foo.getFirstName()...(as mentioned something like above...)
> >
> > Nishit Trivedi
> > Software Engineer
> > Planet Access Networks - An InSage Company
> > 973-691-4704 X157
> >
>
> Nishit,
> what do u mean by this
> <%
> String firstName= %>
>
> in ur code(ie)that's a syntax error.
>
> -ravi
>
>
> >
> >
===========================================================================
> > 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
>
>
===========================================================================
> 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

===========================================================================
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

Reply via email to