Make a simple wrapper function, like :
<%!
String blanknull(String s) {
return (s == null) ? "" : s;
}
%>
Then use it inside your JSP form, like :
<input type="text" name="shoesize" value="<%= blanknull(shoesize) %>" >
No comments:
Post a Comment
Note: only a member of this blog may post a comment.