0

why he has done this in jsp, why not in java class?

<%@page import="bean.RegisterDao"%> <jsp:useBean id="obj" class="bean.User"/> <jsp:setProperty property="*" name="obj"/> <% int status=RegisterDao.register(obj); if(status>0) out.print("You are successfully registered"); %> FRom JavaTpoint

14th Apr 2017, 3:17 AM
Somnath Ghosh
Somnath Ghosh - avatar
1 Respuesta
0
Probably because other parts of the system are also written in JSP and it's more unified. Why the developer has chosen JSP instead of Java can have many reasons. (e.g. because he appreciates it, he can code better at this language...)
16th Apr 2017, 9:45 PM
ncrypted