function checkusername()
  {
  if (document.registerForm.username.value.trim()=="")
  {alert("请输入用户名");}
  else{
  window.open("checkusername.jsp?username="+document.registerForm.username.value.trim(),"提示","height=100,width=300,status=yes,toolbar=no,menubar=no,location=no");
     }
              }这是JS代码,,如果username不为空时,调用checkusername.jsp来判断这个用户在数据库中存在不存在,这时如果使用普通的JSP技术就在checkusername中写jdbc来判断当前用户用户有没有,我现在就是这样,我想请教的是,如果使用struts技术遇到这样的问题应该怎么解决?请教