Wednesday, January 24, 2007

How can I prevent the word "null"

You could make a simple wrapper function, like this

<%!


String blanknull(String s) {

return (s == null) ? "" : s;

}

%>

then use it inside your JSP form, like





SOURCE : www.referjava.com

No comments: