i have home.jsp page , login.jsp page
home.jsp
i have 3 div tags
div id="header" div id="content" div id="footer" 1) when click on login link in home.jsp page redirects login.jsp page,i need: should shown on div id="content" tag in home.jsp page.
my requirement is :: home.jsp should home page..the header , footer should not change, content ever changes should displayed in div tag id="content"
by using frames able solve this,as have target=".....", there posssibility of achieving same using div tag ?
please explain example!
i think decorator. theme fixed in pages. can decorator framework sitemesh(http://wiki.sitemesh.org/display/sitemesh/home).
if without decorator framework can following:
- create header.jsp
- create footer.jsp
create home.jsp page following:
<body>
<jsp:include page="header.jsp" />
....
home content
....
<jsp:include page="footer.jsp" />
</body>create login.jsp following :
<body>
<jsp:include page="header.jsp" />
....
login content
....
<jsp:include page="footer.jsp" />
</body>
i suggest use decorator framework. thats better.
Comments
Post a Comment