Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How is page deployed in Application server and stored in database ?

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using a content management system, which deploys HTML page from CMS to application server. Now this HTML page has content and tags. Content gets stored in database.

I dont understand how this works.

When an HTML page is deployed on app server, content of the page is stored in database. Does it mean that content is copied in database and HTML page on server remains as is ? does it mean that content is extracted from page and on the application server there is only frame of the page without any content ?

How is data stored in databse ? What is nodes in database ?

Please explain this with some generic example, in case there are many ways to do the things.

thanks
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nirjari patel wrote: does it mean that content is extracted from page and on the application server there is only frame of the page without any content ?


Somewhat. The content was never in the page to begin with. The exact details depend on the CMS system, but here's a simplified version. One creates a page with a tag like so:


And then in the database there is something to match the reference tag with some content:


All the DisplayContent tag does is look up "x" in the database and return the value of the content.
Of course, this can get very complex. One can have different languages or "contexts". Sometimes a parameter is passed to the JSP page to display a document and wrap it in a look and feel (header, links, footer, etc.). For example, on a web site I work on, my employer partners with different corporations, so each corporation sees only the content for their company. The JSP page is the same, the "context", and the content retrieved, changes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic