Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to build web application and avoid the same page sections duplication(header..)

Reply
Thread Tools

how to build web application and avoid the same page sections duplication(header..)

 
 
Grzegorz Stasica
Guest
Posts: n/a
 
      02-12-2004
Hi,

I'm building a web app based on struts framework and basicaly I'd like
to receive something like this.
---------------------------------------
|header the same for every page |
|--------------------------------------
| |
|menu | main contents
| |
---------------------------------------
|footer the same for ever page |
----------------------------------------

because header,footer and menu sections are the same for every page I'd
like to habe some kind of phplib template funcionality. I mean these
data should be taken from files for example header.htm etc..
I saw something like include in Struts but can't remember the context
where it was used.

Could somebody share with me ones knowledge regarding this issue.



 
Reply With Quote
 
 
 
 
SPG
Guest
Posts: n/a
 
      02-12-2004
Hi,

In struts you can use templates (or tags).
Create your own tag library containing your header and footer.
Then in each JSP, simply include the tag in the correct places.

There are some good examples in the struts documentations..

Steve
"Grzegorz Stasica" <(E-Mail Removed)> wrote in message
news:c0fheb$jrm$(E-Mail Removed)...
> Hi,
>
> I'm building a web app based on struts framework and basicaly I'd like
> to receive something like this.
> ---------------------------------------
> |header the same for every page |
> |--------------------------------------
> | |
> |menu | main contents
> | |
> ---------------------------------------
> |footer the same for ever page |
> ----------------------------------------
>
> because header,footer and menu sections are the same for every page I'd
> like to habe some kind of phplib template funcionality. I mean these
> data should be taken from files for example header.htm etc..
> I saw something like include in Struts but can't remember the context
> where it was used.
>
> Could somebody share with me ones knowledge regarding this issue.
>
>
>



 
Reply With Quote
 
 
 
 
Tobias Schierge
Guest
Posts: n/a
 
      02-12-2004
Grzegorz Stasica wrote:

> ---------------------------------------
> |header the same for every page |
> |--------------------------------------
> | |
> |menu | main contents
> | |
> ---------------------------------------
> |footer the same for ever page |
> ----------------------------------------


Then have a look at Struts-Tiles Implementation.

Regards,

Tobias
--
<http://www.schierge.de/tobias/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function-sections and data-sections option in gcc Raman C Programming 6 08-03-2007 10:40 AM
Avoid having a SQL express for web parts and avoid personalization Roger23 ASP .Net 2 10-12-2006 10:54 PM
Avoid from being two same application in one machine Grey ASP .Net 1 03-29-2005 03:08 PM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
Collapsing sections of a web page - ideas? Chris Snyder ASP .Net Web Controls 0 01-15-2004 05:54 PM



Advertisments