You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chuck Amadi <ch...@breconbeacons.org> on 2001/06/07 17:15:11 UTC

problem with invoking struts-template!!

I have created a index.jsp that has the content of our company web-site,
thus the index.jsp  is located
C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp

Thus i have set up the tag libraries in the web.xml file and referenced
the taglib at the top of my index.jsp page as below.Nevertheless i
recieve a Not Found Error.My struts-template is located

C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css

<%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>


Not Found (404)

Original request: /struts-bbnpa/css/bbnpa.css

Not found request: /struts-bbnpa/css/bbnpa.css

Any suggestions please .

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.


Re: problem with invoking struts-template!!

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hi, the container is now throwing up -
http://localhost:8080/struts-template/css/bbnpa.css even when i type struts-bbnpa as
opposed struts-template.!!
Thus my bbnpa.css file appears in the browser as below.You mentioned moving CSS up to
tomcat where i.e to struts-bbnpa (my web application)

/* BBNP Site Style Sheet */
h1, h2, h3, h4, h5, h6  {color:green; font-family: arial, helvetica, sans-serif}
h1 {font-size: 20pt}
h4 {font-size: 10pt}
h1.cymraeg {position:relative; left:20px; top:0px; z-index:2}
h1.english {position:relative; left:30px; top:-28px; z-index:1; font-weight:200}
div.pageIntro {color:green; font-family:arial, helvetica, sans-serif; font-size:12pt;
margin-left:50px; margin-right:100px; margin-top:10px}
div.index {color:green; font-family:arial, helvetica, sans-serif;
        font-size:12pt; margin-left:30px}
div.textNav { color:teal; font-family: arial, helvetica, sans-serif;
        font-size:10pt; margin-bottom: 10px; text-align: center

Cheers making steady progress.Chuck

Ted Husted wrote:

> I don't believe that the JSP templates and CSS files are strongly
> coupled. I believe the browser applies the CSS, not the template. You
> might just want to move the CSS up to where Tomcat is looking for it.
>
> Chuck Amadi wrote:
> >
> > I have created a index.jsp that has the content of our company
> > web-site, thus the index.jsp  is located
> > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
> >
> > Thus i have set up the tag libraries in the web.xml file and
> > referenced the taglib at the top of my index.jsp page as
> > below.Nevertheless i recieve a Not Found Error.My struts-template is
> > located
> >
> > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
> >
> > <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
> >
> >
> > Not Found (404)
> >
> > Original request: /struts-bbnpa/css/bbnpa.css
> >
> > Not found request: /struts-bbnpa/css/bbnpa.css
> >
> > Any suggestions please .
> >
> > --
> > The views expressed by the sender of this message don't
> > necessarily represent those of Brecon Beacons National Park
> > Authority. This message is intended for the addressee(s) only
> > and is sent in confidence; if you receive it in error, please can you
> > let us know (at it@breconbeacons.org) and then destroy all copies.
> > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > mewn camgymeriad, a fyddech gystal  rhoi gwybod i
> > ni (yn it@breconbeacons.org) ac yna dilwch bob copi.
> >
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.


Re: problem with invoking struts-template!!

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hi, am i correct that the struts- template is a webapp and can i
physically move it's content to my struts-bbnpa thus move it up to where
tomcat is looking.Thus if this correct must i then constantly only refer
to content in my web app named struts-bbnpa.

Cheers chuck



Ted Husted wrote:

> I don't believe that the JSP templates and CSS files are strongly
> coupled. I believe the browser applies the CSS, not the template. You
> might just want to move the CSS up to where Tomcat is looking for it.
>
> Chuck Amadi wrote:
> >
> > I have created a index.jsp that has the content of our company
> > web-site, thus the index.jsp  is located
> > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
> >
> > Thus i have set up the tag libraries in the web.xml file and
> > referenced the taglib at the top of my index.jsp page as
> > below.Nevertheless i recieve a Not Found Error.My struts-template is
> > located
> >
> > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
> >
> > <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
> >
> >
> > Not Found (404)
> >
> > Original request: /struts-bbnpa/css/bbnpa.css
> >
> > Not found request: /struts-bbnpa/css/bbnpa.css
> >
> > Any suggestions please .
> >
> > --
> > The views expressed by the sender of this message don't
> > necessarily represent those of Brecon Beacons National Park
> > Authority. This message is intended for the addressee(s) only
> > and is sent in confidence; if you receive it in error, please can you
> > let us know (at it@breconbeacons.org) and then destroy all copies.
> > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > mewn camgymeriad, a fyddech gystal  rhoi gwybod i
> > ni (yn it@breconbeacons.org) ac yna dilwch bob copi.
> >
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at it@breconbeacons.org) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.


Re: problem with invoking struts-template!!

Posted by Ted Husted <hu...@apache.org>.
I don't believe that the JSP templates and CSS files are strongly
coupled. I believe the browser applies the CSS, not the template. You
might just want to move the CSS up to where Tomcat is looking for it.

Chuck Amadi wrote:
> 
> I have created a index.jsp that has the content of our company
> web-site, thus the index.jsp  is located
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
> 
> Thus i have set up the tag libraries in the web.xml file and
> referenced the taglib at the top of my index.jsp page as
> below.Nevertheless i recieve a Not Found Error.My struts-template is
> located
> 
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
> 
> <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
> 
> 
> Not Found (404)
> 
> Original request: /struts-bbnpa/css/bbnpa.css
> 
> Not found request: /struts-bbnpa/css/bbnpa.css
> 
> Any suggestions please .
> 
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at it@breconbeacons.org) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.
> 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

Re: problem with invoking struts-template!!

Posted by Peter Alfors <pe...@irista.com>.
I haven't done anything with templates, so this may not be correct.
However, if you are referencing a style sheet in your header (on a
regular page), the link:
    /struts-bbnpa/css/bbnpa.css
is a reference from the context, not the WEB-INF directory.
Therefore, you would want to change your link to:
    /WEB-INF/struts-template/css/bbnpa.css

However, Im not sure if the template stuff changes this.

HTH,
    Pete


Chuck Amadi wrote:

> I have created a index.jsp that has the content of our company
> web-site, thus the index.jsp  is located
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
>
> Thus i have set up the tag libraries in the web.xml file and
> referenced the taglib at the top of my index.jsp page as
> below.Nevertheless i recieve a Not Found Error.My struts-template is
> located
>
> C:\jaka
> ta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
>
> <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
>
>
> Not Found (404)
>
> Original request: /struts-bbnpa/css/bbnpa.css
>
> Not found request: /struts-bbnpa/css/bbnpa.css
>
> Any suggestions please .
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at it@breconbeacons.org) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn it@breconbeacons.org) ac yna dilëwch bob copi.
>