At 10:32 PM 4/5/01 +0530, you wrote:
>Hi,
>But Micheal if u use setProperty the conversion from string to int
>would be automatically done if the value entered is a numeral. I think
>this is one of the intospection features. pls correct me if i am
>wrong.
>John
It's more likely that I am wrong (or at least limited in my understanding)
- I haven't been using setProperty, but rather grabbing the form value from
the request object in which case I have had to handle the type conversion
in the code. I'm new at JSP and still learning the finer points. As usual,
there is always more than one solution to a problem. Is there a "best
practice" means of making sure that values submitted with forms are
properly typed in servlet code?
Michael
===========================================================================
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