javabeans - Refactoring old jsp site -



javabeans - Refactoring old jsp site -

i'm refactoring old jsp site when *.jsp has embedded java code. cos logic big dont want alter technology, want run on tomcat 1 time again introducing beans, jstl. have ~ 10 kind of html templates constant part. found pattern refactoring: 1 jsp master layout plus 10 sections module html , configured beans <jstl:when test="<%=sitebean.getmodule()==sitemodules.index%>"> , configured beans within sections eg.

<jsp:usebean id="editplayerbean" class="editplayerbean"/> <% editplayerbean.setsitebean(sitebean); %>

is concept refactoring site performance - economical criteria?

yes it's approach re-factoring site way.

try remove script-lets , utilize look language rather. save beans in suitable scope , utilize them using el. transform conditions equivalent jstl tags. html parts remain same.

after integrating jstl, code more readable , easier maintain. go it.

jsp javabeans

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -