header is simply a jsp page called header.jsp. There are tabs in the header
page and that is being displayed correctly. This is our header page ( i have
attached header1.jsp)

<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
  <head> http://www.nabble.com/file/p12411297/header1.jsp header1.jsp 
    <title>Header Page</title>
     <%@ include file="header1.jsp" %>
  </head>
  <body>
  <h1></h1>
  </body>
</html>

 <action name="header"
class="com.siteacuity.webapp.action.CurrentDetailsAction">
            <result name="success">/WEB-INF/pages/header.jsp</result> 
        </action> 
We have included this header.jsp in other pages ( where we need to display a
few fields got from CurrentDetailsAction.

<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
  <head>
    <title>Current Details</title>
    <script type="text/javascript">
document.write('<style type="text/css">.tabber{display:none;}<\/style>');
</script>
<%@ include file="header.jsp" %>
</head>
<body>

Thanks a lot. We need this basic header to work for all of our pages.




newton.dave wrote:
> 
> --- nmall <[EMAIL PROTECTED]> wrote:
>> We are using Struts 2.0.6. We have a header.jsp
>> which is included in each of our jsp pages. 
>> The header is tied to an action class to retrieve a
>> name etc to display (which changes depending on the 
>> login). 
> 
> How is it "tied to an action class"? How are you
> including it? Is there any HTML from the header file
> at all, or is it missing entirely?
> 
> d.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jsp-including-another-jsp-tf4355201.html#a12411297
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to