Or use a filter to append that <meta> tag onto any response that is
html...

-----Original Message-----
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 03, 2006 2:38 PM
To: Tomcat Users List
Subject: Re: Tomcat tag question

MW Mike Weiner (5028) wrote:
> Dear List readers
>  
> Sorry to bother you with what is most likely a silly question, but i
> have been googling, and found no real answers and was hoping you might
> know. I am doing another Tomcat project and to that end, i need to get
> tomcat to behave in a certain way, namely i need tomcat to add an html
> tag to each page requested, like so:
>  
> <meta name="agmips" value="1.963752">
>  
> where the value is a box identified (bad# good# bad# good# bad# good#)
-
> 672 in this case, actually i would LOVE to be the hostname of the box,
> but can be anything really - even static if it cant be done
dynamically.
> Is this possible? And if so, would you mind sharing the trick with
this
> newbie?
>   

Hmm... Isn't this a job for JSP.  Rename your index.html to index.jsp 
and add a new first line of:

<%@ page language="java" %>


Then insert this into the point you want the page output to change:

<meta name="agmips"value="<%=request.getServerName()%>">


Best of luck,
 

-- 

Darryl L. Miles



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to