You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Simon Stone <si...@hotmail.com> on 2007/04/19 14:51:11 UTC

Global Footer Accross All Webapps

I am trying to find a way to put some html text on the bottom of all pages
across all webapps.

So what i would like to acheive is when any page is displayed to a visitor
at the bottom of the page, MY text is added without changing the files
within the webapp's themselves.

Basically a global footer page.

An example of the footer page, would have the following information:-

Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 


My current structure is as follows:-

Tomcat
   WebApp1
      index.jsp
      page2.jsp
   WebApp2
      index.jsp
      someotherpage.jsp
   WebApp3
      index.jsp
      anyotherpage.jsp
-- 
View this message in context: http://www.nabble.com/Global-Footer-Accross-All-Webapps-tf3606998.html#a10077332
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Global Footer Accross All Webapps

Posted by Rashmi Rubdi <ra...@gmail.com>.
On 4/19/07, Simon Stone <si...@hotmail.com> wrote:
>
> I am trying to find a way to put some html text on the bottom of all pages
> across all webapps.

It is easily possible to include a static (header) or footer file
across all JSPs with
include-prelude and include-coda , they can be configured in web.xml
under the jsp-property-group node.

Look in JSP 2.1 specification (PDF format) for further details, under
section JSP.3.3.5 Defining Implicit Includes.

-Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Global Footer Accross All Webapps

Posted by Brantley Hobbs <sb...@uga.edu>.
Doh.  My coffee hasn't kicked in yet:  I just noticed that you want one 
for every webapp, not just a single one.

I wonder if you can do it with a valve.  That's a tomcat specific thing, 
  IIRC, so you might not be able to port that to some other container in 
the future.

B.

Simon Stone wrote:
> I am trying to find a way to put some html text on the bottom of all pages
> across all webapps.
> 
> So what i would like to acheive is when any page is displayed to a visitor
> at the bottom of the page, MY text is added without changing the files
> within the webapp's themselves.
> 
> Basically a global footer page.
> 
> An example of the footer page, would have the following information:-
> 
> Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 
> 
> 
> My current structure is as follows:-
> 
> Tomcat
>    WebApp1
>       index.jsp
>       page2.jsp
>    WebApp2
>       index.jsp
>       someotherpage.jsp
>    WebApp3
>       index.jsp
>       anyotherpage.jsp

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Global Footer Accross All Webapps

Posted by Brantley Hobbs <sb...@uga.edu>.
http://struts.apache.org/1.x/struts-tiles/

A more structured replacement for plain-old JSP include statements.

B.

Simon Stone wrote:
> Sorry to be dim, what are tiles ?
> 
> 
> Brantley Hobbs-3 wrote:
>> You could easily do it with tiles.  An alternative would be to use a 
>> filter and append your footer to the output stream.
>>
>> B.
>>
>> Simon Stone wrote:
>>> I am trying to find a way to put some html text on the bottom of all
>>> pages
>>> across all webapps.
>>>
>>> So what i would like to acheive is when any page is displayed to a
>>> visitor
>>> at the bottom of the page, MY text is added without changing the files
>>> within the webapp's themselves.
>>>
>>> Basically a global footer page.
>>>
>>> An example of the footer page, would have the following information:-
>>>
>>> Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 
>>>
>>>
>>> My current structure is as follows:-
>>>
>>> Tomcat
>>>    WebApp1
>>>       index.jsp
>>>       page2.jsp
>>>    WebApp2
>>>       index.jsp
>>>       someotherpage.jsp
>>>    WebApp3
>>>       index.jsp
>>>       anyotherpage.jsp
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Global Footer Accross All Webapps

Posted by Simon Stone <si...@hotmail.com>.
Sorry to be dim, what are tiles ?


Brantley Hobbs-3 wrote:
> 
> You could easily do it with tiles.  An alternative would be to use a 
> filter and append your footer to the output stream.
> 
> B.
> 
> Simon Stone wrote:
>> I am trying to find a way to put some html text on the bottom of all
>> pages
>> across all webapps.
>> 
>> So what i would like to acheive is when any page is displayed to a
>> visitor
>> at the bottom of the page, MY text is added without changing the files
>> within the webapp's themselves.
>> 
>> Basically a global footer page.
>> 
>> An example of the footer page, would have the following information:-
>> 
>> Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 
>> 
>> 
>> My current structure is as follows:-
>> 
>> Tomcat
>>    WebApp1
>>       index.jsp
>>       page2.jsp
>>    WebApp2
>>       index.jsp
>>       someotherpage.jsp
>>    WebApp3
>>       index.jsp
>>       anyotherpage.jsp
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Global-Footer-Accross-All-Webapps-tf3606998.html#a10287112
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Global Footer Accross All Webapps

Posted by Brantley Hobbs <sb...@uga.edu>.
You could easily do it with tiles.  An alternative would be to use a 
filter and append your footer to the output stream.

B.

Simon Stone wrote:
> I am trying to find a way to put some html text on the bottom of all pages
> across all webapps.
> 
> So what i would like to acheive is when any page is displayed to a visitor
> at the bottom of the page, MY text is added without changing the files
> within the webapp's themselves.
> 
> Basically a global footer page.
> 
> An example of the footer page, would have the following information:-
> 
> Powered by Apache Tomcat  http://globalsite.com/images/tomcat.jpg border= 
> 
> 
> My current structure is as follows:-
> 
> Tomcat
>    WebApp1
>       index.jsp
>       page2.jsp
>    WebApp2
>       index.jsp
>       someotherpage.jsp
>    WebApp3
>       index.jsp
>       anyotherpage.jsp

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org