struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khalid K." <gro...@maikada.com>
Subject Re: Properties
Date Thu, 05 Dec 2002 17:38:03 GMT
I was creating a sample struts project, and I was getting "similar" errors.
I did realize that my jsp syntax for tags were incorrect...
for example: my <html:message ...>  tag was missing the "/" at the
end..etc....just go through your code and make sure the syntax for your jsp
is correct...i hope this helps

Khalid

----- Original Message -----
From: "Eric Tse" <erictks@netvigator.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Thursday, December 05, 2002 9:12 AM
Subject: Properties


Dear all,

I tried to compare struts-blank.war and banking.war tonight and made my own
struts applications. I found some strange behavior (it should be I
misunderstand some of the syntax, i believe)... can u give me a hint?

When i put the text in red, the code can run. otherwise, an error page
appears.What's the purpose of the application param?

Regards,
Eric

[...]
org.apache.jasper.JasperException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
[...]

<!-- /WEB-INF/web.xml -->
  <servlet>
    <servlet-name>abc</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>

    <init-param>
      <param-name>application</param-name>
      <param-value>ApplicationResources</param-value>
    </init-param>

    <load-on-startup>1</load-on-startup>
  </servlet>

<!-- /WEB-INF/struts-config.xml -->
  <message-resources parameter="DEF" null="false"/>

<!-- /WEB-INF/classes/DEF.properties -->
title.login=Login module

<!-- /login.jsp -->
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<title><bean:message key="title.login"/></title>




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message