lundi 19 novembre 2018

Better programming JSP one page vs multiple pages

JSP Application programming Which is better Coding in minimal number of JSP pages with multiple if conditions For example inserting sales,costs,expenses,customers,products etc with an if statement with variables.

if(variableValue=='Sales'
{

Sales insert code

}

else if(variableValue='Costs'
{
costs insert code
}

Creating multiple pages.

salesinsert.jsp costinsert.jsp etc

which is better and good programming. what are the advantages and disadvantages in short term and long term Performance Maintanence Migration to a different technology stack (such as java to python)

I know it is not good to write application logic in JSP. But unfortunately i cannot change it now. Both the ways i am coding logic in jsp page itself

Aucun commentaire:

Enregistrer un commentaire