title: Exception after reading values from jsp page
body: <p>I am inserting values into database but I am getting UIException here is my code sample,</p>
  
  <pre><code>public void createTeacherInfo(HttpServletRequest request) {
              try{
  
                  TeacherInfo teacherInfo= new TeacherInfo();
                  request.getParameter("flowName");
                  DateFormat df = new SimpleDateFormat("dd-mm-yyyy");
  
                  String tId= request.getParameter("teacherId");
                  teacherInfo.setTeahcerId(Integer.parseInt(tId));
  
                  //teacherInfo.setTeahcerId(Integer.parseInt(request.getParameter("teacherId")));
                  teacherInfo.setTeacherName(request.getParameter("teacherName"));
                  /*teacherInfo.setDob(df.parse(request.getParameter("dob")));
                  teacherInfo.setDoj(df.parse(request.getParameter("doj")));*/
                  teacherInfo.setTeacherEducation(request.getParameter("education"));
                  teacherInfo.setPreviousEmployeDetails(request.getParameter("prevdetails"));
                  //teacherInfo.setYearOfExper(Integer.parseInt(request.getParameter("experience")));
                  teacherInfo.setTeahcherPhoto(request.getParameter("photo"));
                  teacherInfo.setTeacherEmail(request.getParameter("email"));
                  System.out.println(tId);
                  System.out.println("TeacherId");
                  pupilInfoManagementBusinessService.createTeacherInfo(teacherInfo);
  
                  }catch (BusinessException e) {
                      webLayerLogger.error(CommonUtils.getStackTrace(e));
                      throw new UIException(e,UIMessageHelper.getLocalValue("exception while Inserting data"));
                  }
  }
  </code></pre>
  
  <p>In this method after reading all values it will go to service method , Here is service class method,</p>
  
  <pre><code>@Override
  public void createTeacherInfo(TeacherInfo teacherInfo) throws BusinessException {
      try {
           pupilInfoManagementDataService.createTeacherInfo(teacherInfo);
      }catch (Exception e) {
          businessServiceLogger.error(CommonUtils.getStackTrace(e));
          throw new BusinessException(this.getClass(), e, e.getMessage());
      }
  
  }
  </code></pre>
  
  <p>My problem is values are reading but not inserting to database. Please help me in this .</p>