如下程序:<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'three.jsp' starting page</title>
  </head>
  <%!
   public String getString(String s){
   if(s==null){
   s="";
   }
   try{
   byte b[] = s.getBytes("ISO-8859-1");
   s = new String(b);
   }catch(Exception e){}
   return s;
   }
   %>
  <body>
   <p>这里是结账处:</p>
   <% 
   String ss = request.getParameter("buy");
   session.setAttribute("goods",ss); 
   String s1 = (String)session.getAttribute("custom");
   String s2 = (String)session.getAttribute("name");
   String s3 = (String)session.getAttribute("goods");
   s2 = getString(s2);
   s3 = getString(s3);
   %>
   <p><%=s1 %>的姓名是:</p>
   <%=s2 %>
   <p>购买的商品是:</p>
   <%=s3 %>
  </body>
</html>以上程序中,对session中的中文字符的处理过程中,  
   if(s==null){
   s="";
   }
  这句有什么具体的作用?调试发现有或者没有结果都是一样子的!