java - Separation of data and presentation -


i have html js , css web page users enter information , every information user enters stored in div tag , when clicks on save page, whole html saved contains both user data , presentation. there many 40 div tags has saved. page save made available once user hits particular url www.mydomain.com/xyz.html page loaded.

i tried keep data in xml file, saving whole html page inside xml page. next step saving particular div tags dynamic in xml file , when ever user hits url particular xml file reconstructed , displayed.

is doing right? or there other practice keep data , presentation.
btw java,j2ee based web application.

  • have common template page
  • when user hit www.mydomain.com/xyz.html parse xyz , lookup db 40 information pull bean
  • now put bean values on presentation.

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -