Need help with JspException: Missing message for key login.title

2002-03-13 Thread lindsay . hamoudi

Hi everyone,

I've just began using Struts this week and it seems very useful, but I am
totally lost for ideas when it comes to this exception:

Exception in R( /struts-SACT + /login.jsp + null) -
javax.servlet.ServletException: Missing message for key login.title

I have placed my ApplicationResources.properties in the /classes directory
and here's the relevant part of web.xml:

servlet
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
 param-nameapplication/param-name
 param-valueApplicationResources/param-value
  /init-param
  .


Here's my ApplicationResources.properties (it is very simple at present -
which makes this error all the more annoying):

error.username.required=Username is required
error.password.required=Password is required
error.database.unknown=Sorry, an unknown database error occurred
errors.footer=/ulbr
errors.header=h2font color=redValidation Error/font/h2You must
correct the following error(s) before proceeding:ul
login.title=SME Agent Creation Tool - User Login
prompt.login.username=Username
prompt.login.password=Password


And here's a part of my login.jsp:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html
head
titlebean:message key=login.title//title 


I heard that this is a common problem and that I should look at the mailing
list archive, but I find no help there at all.

Many thanks for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

e-mail: [EMAIL PROTECTED]
tel: (+44) (0)1473 605491
mobile: (+44) (0)7985 114296
 
Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, Ipswich
IP5 3RE, UK


BTexact Technologies is a trademark of British Telecommunications
plc
Registered office: 81 Newgate Street London EC1A 7AJ 
Registered in England no. 180 
This electronic message contains information from British
Telecommunications plc which may be privileged or confidential. The
information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or email (to the numbers or address above)
immediately.




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




Re: Need help with JspException: Missing message for key login.title

2002-03-13 Thread keithBacon

not sure but might be one of those where your struts.jar is in the wrong place.
Make sure it is in your web app's WEB-INF/lib  nowhere else where the server
could find it (ie. not on your system or server classpath).


--- Alok Kumar [EMAIL PROTECTED] wrote:
 YOu should put one more line in Applicationproperties file that is 
 login.title=some text ouyt here
 
 Alok
 
 - Original Message -
 From: [EMAIL PROTECTED]
 Date: Wednesday, March 13, 2002 4:24 pm
 Subject: Need help with JspException: Missing message for key 
 login.title
 
  Hi everyone,
  
  I've just began using Struts this week and it seems very useful, 
  but I am
  totally lost for ideas when it comes to this exception:
  
  Exception in R( /struts-SACT + /login.jsp + null) -
  javax.servlet.ServletException: Missing message for key login.title
  
  I have placed my ApplicationResources.properties in the /classes 
  directoryand here's the relevant part of web.xml:
  
  servlet
   servlet-nameaction/servlet-name
   servlet-
  classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
   /init-param
   .
  
  
  Here's my ApplicationResources.properties (it is very simple at 
  present -
  which makes this error all the more annoying):
  
  error.username.required=Username is required
  error.password.required=Password is required
  error.database.unknown=Sorry, an unknown database error occurred
  errors.footer=/ulbr
  errors.header=h2font color=redValidation 
  Error/font/h2You must
  correct the following error(s) before proceeding:ul
  login.title=SME Agent Creation Tool - User Login
  prompt.login.username=Username
  prompt.login.password=Password
  
  
  And here's a part of my login.jsp:
  
  %@ page language=java %
  %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
  %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
  html:html
  head
  titlebean:message key=login.title//title 
  
  
  I heard that this is a common problem and that I should look at 
  the mailing
  list archive, but I find no help there at all.
  
  Many thanks for any input.
  
  Lindsay
  
  
  
  Lindsay Hamoudi
  Web Application Developer
  BTexact Technologies
  
  e-mail: [EMAIL PROTECTED]
  tel: (+44) (0)1473 605491
  mobile: (+44) (0)7985 114296
  
  Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
  IpswichIP5 3RE, UK
  
  
 BTexact Technologies is a trademark of British Telecommunications
  plc
 Registered office: 81 Newgate Street London EC1A 7AJ 
 Registered in England no. 180 
 This electronic message contains information from British
  Telecommunications plc which may be privileged or confidential. The
  information is intended to be for the use of the individual(s) or 
  entitynamed above. If you are not the intended recipient be aware 
  that any
  disclosure, copying, distribution or use of the contents of this 
  informationis prohibited. If you have received this electronic 
  message in error, please
  notify us by telephone or email (to the numbers or address above)
  immediately.
  
  
  
  
  --
  To unsubscribe, e-mail:   mailto:struts-user-
  [EMAIL PROTECTED]For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
  **Disclaimer
   
 
 
 Information contained in this E-MAIL being proprietary to Wipro Limited
 is 'privileged' and 'confidential' and intended for use only by the
 individual or entity to which it is addressed. You are notified that any
 use, copying or dissemination of the information contained in the E-MAIL
 in any manner whatsoever is strictly prohibited.
 
 
 
  
 
  --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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