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
1 Réponse
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...)