Hi,
Guys if you check the JSP spec of Sun...
"They say, if no value is entered then the set methods will not be
called..."
Getting more basic
"" != " "
<no value> is not equal to <space>
space also holds memory, it is not void, null etc,....
space is therefore taken as information..
I T H
Amit
> -----Original Message-----
> From: Danny Trieu [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 16, 1999 9:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Problem with setmethod
>
> well, I encountered this myself....
>
> I assumed you used the setProperty with "*" right?....
>
> well the you need to handle this problem yourself, which mean you cannot
> use that.
> Jsp engine won't call your setter if it do a getParamter() and the return
> is null. What
> you can do is create a setProperty() method inside you bean that will call
> getParameter()
> for all your parameters and if it return null call you set<parameter> and
> set it to a zero
> length string("").
>
>
>
> Rajiv Shah wrote:
>
> > Hello Everyone,
> >
> > I have created one servletvbean with five set and get
> method then i have
> > created jsp for those five field. Now problem is that when I am entering
> any
> > value of space in that field it calls according setmethod but when i am
> not
> > entering any value it doesn't call setmethod. so could you say me why
> this
> > is heppninig.
> > Thanks for your help
> > Rajiv Shah
> >
> >
> ==========================================================================
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > FAQs on JSP can be found at:
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html