Also, how to replace this scriptlets from EL in my jsp??
2. Format formatter = new SimpleDateFormat("dd-MMM-yyyy");
3. Date date = new Date();
4. String date1 = formatter.format(date);
6. EditorDao edao = new EditorDao();
7. int x = edao.loadID();
you should move the java code out from the JSP completely, EL should only be used for displaying and simple logic.
So you would have the java code in your servlet and add the variable to the request: