Here is the JSP:

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"   prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"   prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"  prefix="logic" %>

<html:html locale='true'>
    <head>
      <title><bean:message key="app.title"/></title>
      <link rel='stylesheet' type='text/css' href='<html:rewrite
page="/style.css"/>'>
      <html:base/>
    </head>
    <body bgcolor='#ffffff' marginwidth='0' marginheight='0'>
      <table border='0' cellpadding='10' cellspacing='0' width='100%'
height='100%'>
        <tr>
          <td class='panel' align='right' bgcolor='#023264' colspan='2'
width='100%'>
            <h1 class='headline'><font color='#ffffff'
size='3'><bean:message key="app.title"/></font></h1>
          </td>
        </tr>
      </table>
    </body>
</html:html>

Thanks

Jim.
----- Original Message -----
From: "M�guel �ngel Mulero Mart�nez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 1:10 PM
Subject: RE: Application Resources problems


> Can you put the JSP code of your startup JSP?
>
> Regards
>
> > -----Mensaje original-----
> > De: Jim Collins [mailto:[EMAIL PROTECTED]]
> > Enviado el: viernes, 22 de noviembre de 2002 13:54
> > Para: Struts Users Mailing List
> > Asunto: Application Resources problems
> >
> >
> > Hi,
> >
> > I am pulling my hair out with this problem. I have my resources
> > file in the
> > following directory:
> >
> > myApp/Web-inf/classes/org/comp/ApplicationResources.properties
> >
> > And in the web.xml file I have the following entry:
> >
> > <init-param>
> >       <param-name>application</param-name>
> >       <param-value>org.comp.ApplicationResources</param-value>
> >   </init-param>
> >
> > When I goto my startup jsp page which has a bean:message tag I get the
> > following error:
> >
> > org.apache.jasper.JasperException: Cannot find bean namespace in
> > scope null
> >  at
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
> > per.java:2
> > 48)
> >
> > If I change the entry in the web.xml file to:
> >
> > <init-param>
> >       <param-name>application</param-name>
> >
<param-value>org.comp.ApplicationResources.properties</param-value>
> >   </init-param>
> >
> > I get a different error message saying:
> >
> > org.apache.jasper.JasperException: Missing message for key app.title
> >
> > I know for a fact that there is a message for this key in the resources
> > file. This problem is driving me crazy any help would be appreciated.
> >
> > Thanks
> >
> > Jim.
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to