We do one of two things to keep NULL appearing. First, if we set the values to null in the declaration:
class myclass
{
private String value = null;
..
then in the GET method, we say:
if( value == null )
return "";
of
if( value == null )
return new String();
OR..what I like to do is set them all to "" initially, this way they return an EMPTY string, and nothing is displayed. Not sure if this is the best..I am sure someone can respond to this and let both you and I know in this case.<<<<
Second:
I really like this forum. It is extremely helpful since very little is known about JSP except by those of us who are interested enough in it to make it work through trial and error. Is there some reason that this forum is not posted on a web site in a sort of discussion format? It would be nice to be able to search all the previous discussion threads and it might avoid repeat questions.
I believe the www.jsp-interest.com has the archive of these postings, among other things there.
I wouldn't say very little is known about JSP. Its been out for a long time. There are a few books coming out on the very near horizon. It takes time to write books, especialy when Java is always changing. I think this is why I wish the language was standardized! I cant stand the fact that some methods I was using before are now deprecated and I have to rewrite some code based on this. At least with C and C++, you know the calls you make wont change. Then again, I guess I could write my own routines and never rely on the standard APIs..but that would be ugly. ;) At any rate, if the Java group could ever come up with some way of keeping it from constantly changing (sometimes for the better, sometimes for the worse), I think we would be set! Oh well..here is to wishing. Sun just pulled out of having Java standardized because EMCA (or whatever that group is) wanted too much control over the future of the language.
Feel free to ask me JSP related questions. I am not the authorative on it, but I am using it extensively on our site, (Model 1.5 approach), and in my opinion it works great!
Kevin Duffey
Software Engineer
[EMAIL PROTECTED]
=========================================================================== 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
