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
parsexyz
, lookup db 40 information pull bean - now put bean values on presentation.
Comments
Post a Comment