RE: html form widgets not appearing

2001-04-27 Thread Scott Cressler



prefix="struts-html", but tag uses are html:* 
?

  -Original Message-From: G.L. Grobe 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, April 27, 2001 3:30 
  PMTo: [EMAIL PROTECTED]Subject: html form 
  widgets not appearing
  My pages are showing up fine and the form Actions 
  are working, w/ one exception, all of mypages are not displaying any of 
  the form widgets like radio buttons or text entry boxes and even bean message 
  keys, yet no errors are occurring. Is there anything wrong w/ the below page 
  that would prevent forms from not showing?
  
  A problem I had before of not 
  findingmessage keys was thatin the taglib lines where the prefix 
  was only - prefix="bean" - and I actually needed - prefix="struts-bean", 
  though I've seen no examples of it anywhere's, just from somebody's post, so I 
  tried it and it worked.
  
  TIA
  
   my index.jsp 
  ---
  %@ page language="java" %%@ 
  taglib uri="/WEB-INF/struts-bean.tld" prefix="struts-bean" %%@ 
  taglib uri="/WEB-INF/struts-html.tld" prefix="struts-html" %
  
  html:htmlhead
  
  title bean:message 
  key="main.title" //title
  
  %@ include file="menubar.js" %%@ 
  include file="main.css" %
  
  /head
  
  body 
  bgcolor="white"html:errors/
  
  %@ include file="header.jsp" %%@ 
  include file="mainMenu.jsp" %
  
  html:form action="view.do"
  
  table border="0" cellspacing="2" 
  cellpadding="0" align="left" 
  tr 
  td html:radio 
  property="view" value="Master 
  View" bean:message 
  key="main.master" 
  /nbsp; 
  /html:radio 
  /td 
  td html:radio 
  property="view" value="Details 
  View" bean:message 
  key="main.detail" / 
  /html:radio 
  /td 
  td 
  center 
  html:submit 
  value="View"/ 
  /center /td 
  /tr/table
  /html:form
  
  br br br br 
  br%@ include file="footer.jsp" %
  
  /body/html:html


Re: html form widgets not appearing

2001-04-27 Thread G.L. Grobe

I don't get it, if I match prefix=struts-bean w/ a tag of bean:message
key ...
it can't find the keys in the properties file, which I'd say is to be
expected. But if I change the prefix=bean w/ tags of bean:message ...
making the prefix and tag the same like it should be, then I get the
following error.

500 Internal Server Error
javax.servlet.jsp.JspException: Missing message for key main.title at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at
/index.jsp._jspService(/index.jsp.java:136) (JSP page line 9) at
com.orionserver[Orion/1.4.8 (build
10374)].http.OrionHttpJspPage.service(Unknown Source) at
com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source) ...

I traced this file in the struts code and the file is being found, the key
is in the file, there are no invisible characters, but it's not find the
key.

- Original Message -
From: Scott Cressler
To: '[EMAIL PROTECTED]'
Sent: Friday, April 27, 2001 5:59 PM
Subject: RE: html form widgets not appearing


prefix=struts-html, but tag uses are html:* ?
-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 3:30 PM
To: [EMAIL PROTECTED]
Subject: html form widgets not appearing


My pages are showing up fine and the form Actions are working, w/ one
exception, all of my pages are not displaying any of the form widgets like
radio buttons or text entry boxes and even bean message keys, yet no errors
are occurring. Is there anything wrong w/ the below page that would prevent
forms from not showing?

A problem I had before of not finding message keys was that in the taglib
lines where the prefix was only - prefix=bean - and I actually needed -
prefix=struts-bean, though I've seen no examples of it anywhere's, just
from somebody's post, so I tried it and it worked.

TIA

 my
index.jsp ---
 %@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=struts-bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=struts-html %

html:html
head

title
   bean:message key=main.title /
/title

%@ include file=menubar.js %
%@ include file=main.css %

/head

body bgcolor=white
html:errors/

%@ include file=header.jsp %
%@ include file=mainMenu.jsp %

html:form action=view.do

table border=0 cellspacing=2 cellpadding=0 align=left
   tr
  td
 html:radio property=view value=Master View
 bean:message key=main.master /nbsp;
 /html:radio
  /td
  td
 html:radio property=view value=Details View
 bean:message key=main.detail /
 /html:radio
  /td
  td
 center
 html:submit value=View/
 /center
  /td
   /tr
/table
/html:form

br br br br br
%@ include file=footer.jsp %

/body
/html:html




RE: html form widgets not appearing

2001-04-27 Thread Jason Chaffee
Title: RE: html form widgets not appearing





What does the html source look like? You also might want to check the method loadLocale() and make sure the message strings are being loaded from the file.

-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: html form widgets not appearing



Heh, I've been on this prob for almost two weeks and I'm loosing motivation
in this project because of this bug. My servlet config I believe is correct.
I made it as simple as possible by putting the cais.properties file in the
~/WEB-INF/classes dir (no package path) and saying:


!-- Action Servlet Configuration --
 servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
 param-nameapplication/param-name
 param-valuecais/param-value
 /init-param


Other keys are not being found as well. I know the correct file is being
found as I println the ...getClass().getResources(cais.properties) and it
shows it's got the correct path and according to the struts code, it's
finding the file, but not the key.


I'm pretty sure I'm referencing the key correclty:


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


html:html
head


title
 bean:message key=main.title /
/title


- Original Message -
From: Scott Cressler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 6:58 PM
Subject: RE: html form widgets not appearing



 Well, at least now you know you're invoking the bean:message tag. ;-)
 That's a problem I've found with debugging custom tags: if you forget the
 taglib directive or screw it up, you get no complaints.

 It seems to be saying it can't find your message by that key. Can you
find
 any messages? Do you have the correct reference to the properties file in
 your web.xml file, e.g.:

 !-- Action Servlet Configuration --
 servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
 param-nameapplication/param-name
 param-valuecom.propel.webapp.Resources/param-value
 /init-param

 In my case, that means the file is at
 webapproot/classes/com/propel/webapp/Resources.properties . I don't
think
 it necessarily has to be there (isn't there some search path for finding
 it?), but that has worked for me (using resin).

 Make sure you can find any message and then make sure your tag is
 referencing the message key correctly, e.g., I would expect given what
 you've said it would be:

 bean:message key=main.title/

 Scott

  -Original Message-
  From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 27, 2001 4:51 PM
  To: [EMAIL PROTECTED]
  Subject: Re: html form widgets not appearing
 
 
  I don't get it, if I match prefix=struts-bean w/ a tag of
  bean:message
  key ...
  it can't find the keys in the properties file, which I'd say is to be
  expected. But if I change the prefix=bean w/ tags of
  bean:message ...
  making the prefix and tag the same like it should be, then I get the
  following error.
 
  500 Internal Server Error
  javax.servlet.jsp.JspException: Missing message for key main.title at
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag
  .java:242) at
  /index.jsp._jspService(/index.jsp.java:136) (JSP page line 9) at
  com.orionserver[Orion/1.4.8 (build
  10374)].http.OrionHttpJspPage.service(Unknown Source) at
  com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source) ...
 
  I traced this file in the struts code and the file is being
  found, the key
  is in the file, there are no invisible characters, but it's
  not find the
  key.
 
  - Original Message -
  From: Scott Cressler
  To: '[EMAIL PROTECTED]'
  Sent: Friday, April 27, 2001 5:59 PM
  Subject: RE: html form widgets not appearing
 
 
  prefix=struts-html, but tag uses are html:* ?
  -Original Message-
  From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 27, 2001 3:30 PM
  To: [EMAIL PROTECTED]
  Subject: html form widgets not appearing
 
 
  My pages are showing up fine and the form Actions are working, w/ one
  exception, all of my pages are not displaying any of the form
  widgets like
  radio buttons or text entry boxes and even bean message keys,
  yet no errors
  are occurring. Is there anything wrong w/ the below page that
  would prevent
  forms from not showing?
 
  A problem I had before of not finding message keys was that
  in the taglib
  lines where the prefix was only - prefix=bean - and I
  actually needed -
  prefix=struts-bean, though I've seen no examples of it
  anywhere's, just
  from somebody's post, so I tried it and it worked.
 
  TIA
 
   my
  index.jsp ---
  %@ page language=java %
  %@ taglib uri=/WEB-INF/struts-bean.tld prefix=struts-bean %
  %@ taglib uri=/WEB-INF/struts

Re: html form widgets not appearing

2001-04-27 Thread G.L. Grobe
Title: RE: html form widgets not appearing



The entire index.jsp file is included in this 
message so you can see the html source at the end. I havn't actually re-compiled 
the struts.jar file to see what was happening (because it wasn't easy to get 
working w/ orion server)but just by looking at MessageTag.java,I 
could see where in doStart() the message var came back as null and threw the 
exception when trying to read the key. I sawthe file it was trying to read 
was correct bydoing 
aprintln(getClass().getResource("my.properties")... in my jsp file. 


I'll look at this loadLocale to see how and where 
to use it. Thnxs.

  - Original Message - 
  From: 
  Jason 
  Chaffee 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, April 27, 2001 7:09 
PM
  Subject: RE: html form widgets not 
  appearing
  
  What does the html source look like? You also might want 
  to check the method loadLocale() and make sure the message strings are being 
  loaded from the file.
  -Original Message- From: G.L. 
  Grobe [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, April 27, 2001 5:11 PM To: [EMAIL PROTECTED] 
  Subject: Re: html form widgets not appearing 
  Heh, I've been on this prob for almost two weeks and I'm 
  loosing motivation in this project because of this 
  bug. My servlet config I believe is correct. I made it 
  as simple as possible by putting the cais.properties file in the 
  ~/WEB-INF/classes dir (no package path) and saying: 
  
  !-- Action Servlet Configuration --  servlet  
  servlet-nameaction/servlet-name  
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
   init-param  
  param-nameapplication/param-name  
  param-valuecais/param-value  /init-param 
  Other keys are not being found as well. I know the correct 
  file is being found as I println the 
  ...getClass().getResources("cais.properties") and it shows it's got the correct path and according to the struts code, 
  it's finding the file, but not the key. 
  I'm pretty sure I'm referencing the key correclty: 
  %@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % 
  %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" 
  % 
  html:html head 
  
  title  
  bean:message key="main.title" / /title 
  - Original Message - From: 
  "Scott Cressler" [EMAIL PROTECTED] To: 
  [EMAIL PROTECTED] Sent: Friday, 
  April 27, 2001 6:58 PM Subject: RE: html form widgets 
  not appearing 
   Well, at least now you know you're invoking the 
  bean:message tag. ;-)  That's a problem I've 
  found with debugging custom tags: if you forget the  taglib directive or screw it up, you get no complaints. 
It seems to be saying it 
  can't find your message by that key. Can you find  any messages? Do you have the 
  correct reference to the properties file in  your 
  web.xml file, e.g.:   !-- Action Servlet Configuration -- 
   servlet  
  servlet-nameaction/servlet-name  
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
   init-param 
   
  param-nameapplication/param-name  
  param-valuecom.propel.webapp.Resources/param-value 
   /init-param 
In my case, that means the 
  file is at  
  webapproot/classes/com/propel/webapp/Resources.properties . I 
  don't think  it 
  necessarily has to be there (isn't there some search path for finding 
   it?), but that has worked for me (using resin). 
Make sure you can find any 
  message and then make sure your tag is  
  referencing the message key correctly, e.g., I would expect given what 
   you've said it would be:   bean:message 
  key="main.title"/   Scott   
   -Original Message-   From: G.L. 
  Grobe [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 27, 2001 4:51 PM 
To: [EMAIL PROTECTED]   Subject: Re: html form widgets not appearing   I don't get it, if I match prefix="struts-bean" w/ a tag 
  of   bean:message   key ...   it can't find the 
  keys in the properties file, which I'd say is to be   expected. But if I change the prefix="bean" w/ tags of 
bean:message ...  
   making the prefix and tag the same like it should be, then I get 
  the   following error. 500 Internal Server 
  Error   javax.servlet.jsp.JspException: 
  Missing message for key main.title at   
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag 
.java:242) at   
  /index.jsp._jspService(/index.jsp.java:136) (JSP page line 9) at 
com.orionserver[Orion/1.4.8 (build   10374)].http.OrionHttpJspPage.service(Unknown Source) 
  at   com.evermind[Orion/1.4.8 (build 
  10374)]._aj._nxd(Unknown Source) ...   
I traced this file in the struts code and the file 
  is being   found, the key   is in the file, there are no invisible characters, but 
  it's   not find the   key. - Original Message -  
   From: Scott Cressler   To: 
  '[EMAIL PROTECTED]'   Sent: 
  Friday,

RE: html form widgets not appearing

2001-04-27 Thread Niall Pemberton

LoadLocale is in the PropertyMessageResources class - it doesn't trap an
error if it doesn't find your file.

You could copy this class (MyMessageResources) and put out some messages
showing the file name its trying to load and whether its sucessful. Also
copy the PropertyMessageResourcesFactory (MyMessageResourcesFactory) class
and change it to instantiate your MyMessageResources. Then change your
ActionServlet configuration in web.xml and set a factory parm to your
MyMessageResourcesFactory class. Struts then uses your classes for
MessageResources.

Niall

P.S. I don't think its finding your file.


-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: 28 April 2001 01:51
To: [EMAIL PROTECTED]
Subject: Re: html form widgets not appearing


The entire index.jsp file is included in this message so you can see the
html source at the end. I havn't actually re-compiled the struts.jar file to
see what was happening (because it wasn't easy to get working w/ orion
server) but just by looking at MessageTag.java, I could see where in
doStart() the message var came back as null and threw the exception when
trying to read the key. I saw the file it was trying to read was correct by
doing a println(getClass().getResource(my.properties)... in my jsp file.

I'll look at this loadLocale to see how and where to use it. Thnxs.
- Original Message -
From: Jason Chaffee
To: '[EMAIL PROTECTED]'
Sent: Friday, April 27, 2001 7:09 PM
Subject: RE: html form widgets not appearing


What does the html source look like?  You also might want to check the
method loadLocale() and make sure the message strings are being loaded from
the file.
-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: html form widgets not appearing


Heh, I've been on this prob for almost two weeks and I'm loosing motivation
in this project because of this bug. My servlet config I believe is correct.
I made it as simple as possible by putting the cais.properties file in the
~/WEB-INF/classes dir (no package path) and saying:
!-- Action Servlet Configuration --
  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valuecais/param-value
/init-param
Other keys are not being found as well. I know the correct file is being
found as I println the ...getClass().getResources(cais.properties) and it
shows it's got the correct path and according to the struts code, it's
finding the file, but not the key.
I'm pretty sure I'm referencing the key correclty:
 %@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html
head
title
   bean:message key=main.title /
/title
- Original Message -
From: Scott Cressler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 6:58 PM
Subject: RE: html form widgets not appearing


 Well, at least now you know you're invoking the bean:message tag.  ;-)
 That's a problem I've found with debugging custom tags: if you forget the
 taglib directive or screw it up, you get no complaints.

 It seems to be saying it can't find your message by that key.  Can you
find
 any messages?  Do you have the correct reference to the properties file in
 your web.xml file, e.g.:

   !-- Action Servlet Configuration --
   servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valuecom.propel.webapp.Resources/param-value
 /init-param

 In my case, that means the file is at
 webapproot/classes/com/propel/webapp/Resources.properties .  I don't
think
 it necessarily has to be there (isn't there some search path for finding
 it?), but that has worked for me (using resin).

 Make sure you can find any message and then make sure your tag is
 referencing the message key correctly, e.g., I would expect given what
 you've said it would be:

 bean:message key=main.title/

 Scott

  -Original Message-
  From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 27, 2001 4:51 PM
  To: [EMAIL PROTECTED]
  Subject: Re: html form widgets not appearing
 
 
  I don't get it, if I match prefix=struts-bean w/ a tag of
  bean:message
  key ...
  it can't find the keys in the properties file, which I'd say is to be
  expected. But if I change the prefix=bean w/ tags of
  bean:message ...
  making the prefix and tag the same like it should be, then I get the
  following error.
 
  500 Internal Server Error
  javax.servlet.jsp.JspException: Missing message for key main.title at
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag
  .java:242) at
  /index.jsp._jspService(/index.jsp.java:136) (JSP page line 9) at
  com.orionserver[Orion/1.4.8 (build
  10374

Re: html form widgets not appearing

2001-04-27 Thread shunhui zhu

Just another thing to look at. The message resource is
loaded at startup, in ActionServlet.initApplication(),
and stored in the ServletContext with the key
Action.MESSAGES_KEY (which is really the String
org.apache.struts.action.MESSAGE). The message tag
simply gets the resource from there. You can try to
put a break point in initApplication(), and see
whether the resource is read correctly there, if yes,
you may want to check whether any of your Actions
overwrites that key.

Shunhui



--- G.L. Grobe [EMAIL PROTECTED] wrote:
 RE: html form widgets not appearingThe entire
 index.jsp file is included in this message so you
 can see the html source at the end. I havn't
 actually re-compiled the struts.jar file to see what
 was happening (because it wasn't easy to get working
 w/ orion server) but just by looking at
 MessageTag.java, I could see where in doStart() the
 message var came back as null and threw the
 exception when trying to read the key. I saw the
 file it was trying to read was correct by doing a
 println(getClass().getResource(my.properties)...
 in my jsp file. 
 
 I'll look at this loadLocale to see how and where to
 use it. Thnxs. 
   - Original Message - 
   From: Jason Chaffee 
   To: '[EMAIL PROTECTED]' 
   Sent: Friday, April 27, 2001 7:09 PM
   Subject: RE: html form widgets not appearing
 
 
   What does the html source look like?  You also
 might want to check the method loadLocale() and make
 sure the message strings are being loaded from the
 file.
 
   -Original Message- 
   From: G.L. Grobe [mailto:[EMAIL PROTECTED]] 
   Sent: Friday, April 27, 2001 5:11 PM 
   To: [EMAIL PROTECTED] 
   Subject: Re: html form widgets not appearing 
 
 
 
   Heh, I've been on this prob for almost two weeks
 and I'm loosing motivation 
   in this project because of this bug. My servlet
 config I believe is correct. 
   I made it as simple as possible by putting the
 cais.properties file in the 
   ~/WEB-INF/classes dir (no package path) and
 saying: 
 
   !-- Action Servlet Configuration -- 
 servlet 
   servlet-nameaction/servlet-name 
  

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 
   init-param 
 param-nameapplication/param-name 
 param-valuecais/param-value 
   /init-param 
 
   Other keys are not being found as well. I know the
 correct file is being 
   found as I println the
 ...getClass().getResources(cais.properties) and it
 
   shows it's got the correct path and according to
 the struts code, it's 
   finding the file, but not the key. 
 
   I'm pretty sure I'm referencing the key correclty:
 
 
%@ page language=java % 
   %@ taglib uri=/WEB-INF/struts-bean.tld
 prefix=bean % 
   %@ taglib uri=/WEB-INF/struts-html.tld
 prefix=html % 
 
   html:html 
   head 
 
   title 
  bean:message key=main.title / 
   /title 
 
   - Original Message - 
   From: Scott Cressler [EMAIL PROTECTED]
 
   To: [EMAIL PROTECTED] 
   Sent: Friday, April 27, 2001 6:58 PM 
   Subject: RE: html form widgets not appearing 
 
 
 
Well, at least now you know you're invoking the
 bean:message tag.  ;-) 
That's a problem I've found with debugging
 custom tags: if you forget the 
taglib directive or screw it up, you get no
 complaints. 

It seems to be saying it can't find your message
 by that key.  Can you 
   find 
any messages?  Do you have the correct reference
 to the properties file in 
your web.xml file, e.g.: 

  !-- Action Servlet Configuration -- 
  servlet 
servlet-nameaction/servlet-name 
   

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

param-valuecom.propel.webapp.Resources/param-value
 
/init-param 

In my case, that means the file is at 
   

webapproot/classes/com/propel/webapp/Resources.properties
 .  I don't 
   think 
it necessarily has to be there (isn't there some
 search path for finding 
it?), but that has worked for me (using resin). 

Make sure you can find any message and then make
 sure your tag is 
referencing the message key correctly, e.g., I
 would expect given what 
you've said it would be: 

bean:message key=main.title/ 

Scott 

 -Original Message- 
 From: G.L. Grobe [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, April 27, 2001 4:51 PM 
 To: [EMAIL PROTECTED] 
 Subject: Re: html form widgets not appearing 
 
 
 I don't get it, if I match
 prefix=struts-bean w/ a tag of 
 bean:message 
 key ... 
 it can't find the keys in the properties file,
 which I'd say is to be 
 expected. But if I change the prefix=bean w/
 tags of 
 bean:message ... 
 making the prefix and tag the same like it
 should be, then I get the 
 following error. 
 
 500 Internal Server Error 
 javax.servlet.jsp.JspException: Missing
 message

Re: html form widgets not appearing

2001-04-27 Thread G.L. Grobe

I just commented out the load-on-startup tag and I get a new error. So my
web.xml looks like this.

   servlet
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
 param-nameapplication/param-name
 param-valuecais/param-value
  /init-param
  init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
 param-namevalidate/param-name
 param-valuetrue/param-value
  /init-param
  !-- load-on-startup1/load-on-startup --
   /servlet

Here's the new error.
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGEat
org.apache.struts.util.RequestUtils.message(RequestUtils.java:285)  at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)at
/index.jsp._jspService(/index.jsp.java:148) (JSP page line 129) at
com.orionserver[Orion/1.4.8 (build
10374)].http.OrionHttpJspPage.service(Unknown Source)   at
com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source)at
com.evermind[Orion/1.4.8 (build
10374)].server.http.JSPServlet.service(Unknown Source)  at
com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)   at
com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)   at
com.evermind[Orion/1.4.8 (build 10374)]._kj._qbc(Unknown Source)at
com.evermind[Orion/1.4.8 (build 10374)]._kj._oa(Unknown Source) at
com.evermind[Orion/1.4.8 (build 10374)]._jw.run(Unknown

- Original Message -
From: shunhui zhu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 8:35 PM
Subject: Re: html form widgets not appearing


 Just another thing to look at. The message resource is
 loaded at startup, in ActionServlet.initApplication(),
 and stored in the ServletContext with the key
 Action.MESSAGES_KEY (which is really the String
 org.apache.struts.action.MESSAGE). The message tag
 simply gets the resource from there. You can try to
 put a break point in initApplication(), and see
 whether the resource is read correctly there, if yes,
 you may want to check whether any of your Actions
 overwrites that key.

 Shunhui



 --- G.L. Grobe [EMAIL PROTECTED] wrote:
  RE: html form widgets not appearingThe entire
  index.jsp file is included in this message so you
  can see the html source at the end. I havn't
  actually re-compiled the struts.jar file to see what
  was happening (because it wasn't easy to get working
  w/ orion server) but just by looking at
  MessageTag.java, I could see where in doStart() the
  message var came back as null and threw the
  exception when trying to read the key. I saw the
  file it was trying to read was correct by doing a
  println(getClass().getResource(my.properties)...
  in my jsp file.
 
  I'll look at this loadLocale to see how and where to
  use it. Thnxs.
- Original Message -
From: Jason Chaffee
To: '[EMAIL PROTECTED]'
Sent: Friday, April 27, 2001 7:09 PM
Subject: RE: html form widgets not appearing
 
 
What does the html source look like?  You also
  might want to check the method loadLocale() and make
  sure the message strings are being loaded from the
  file.
 
-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: html form widgets not appearing
 
 
 
Heh, I've been on this prob for almost two weeks
  and I'm loosing motivation
in this project because of this bug. My servlet
  config I believe is correct.
I made it as simple as possible by putting the
  cais.properties file in the
~/WEB-INF/classes dir (no package path) and
  saying:
 
!-- Action Servlet Configuration --
  servlet
servlet-nameaction/servlet-name
 
 
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 
init-param
  param-nameapplication/param-name
  param-valuecais/param-value
/init-param
 
Other keys are not being found as well. I know the
  correct file is being
found as I println the
  ...getClass().getResources(cais.properties) and it
 
shows it's got the correct path and according to
  the struts code, it's
finding the file, but not the key.
 
I'm pretty sure I'm referencing the key correclty:
 
 
 %@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld
  prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld
  prefix=html %
 
html:html
head
 
title
   bean:message key=main.title /
/title
 
- Original Message -
From: Scott Cressler [EMAIL PROTECTED]
 
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 6:58 PM
Subject: RE: html form widgets not appearing
 
 
 
 Well, at least now you know you're invoking the
  bean:message tag

Re: html form widgets not appearing

2001-04-27 Thread Jason Chaffee

Actually, the file isn't loaded until getMessage() is called, so you need
to check the loadLocale() method.  The initApplication() just creates an
instance of the resource class, it doesn't load the properties file.

shunhui zhu wrote:

 Just another thing to look at. The message resource is
 loaded at startup, in ActionServlet.initApplication(),
 and stored in the ServletContext with the key
 Action.MESSAGES_KEY (which is really the String
 org.apache.struts.action.MESSAGE). The message tag
 simply gets the resource from there. You can try to
 put a break point in initApplication(), and see
 whether the resource is read correctly there, if yes,
 you may want to check whether any of your Actions
 overwrites that key.

 Shunhui

 --- G.L. Grobe [EMAIL PROTECTED] wrote:
  RE: html form widgets not appearingThe entire
  index.jsp file is included in this message so you
  can see the html source at the end. I havn't
  actually re-compiled the struts.jar file to see what
  was happening (because it wasn't easy to get working
  w/ orion server) but just by looking at
  MessageTag.java, I could see where in doStart() the
  message var came back as null and threw the
  exception when trying to read the key. I saw the
  file it was trying to read was correct by doing a
  println(getClass().getResource(my.properties)...
  in my jsp file.
 
  I'll look at this loadLocale to see how and where to
  use it. Thnxs.
- Original Message -
From: Jason Chaffee
To: '[EMAIL PROTECTED]'
Sent: Friday, April 27, 2001 7:09 PM
Subject: RE: html form widgets not appearing
 
 
What does the html source look like?  You also
  might want to check the method loadLocale() and make
  sure the message strings are being loaded from the
  file.
 
-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: html form widgets not appearing
 
 
 
Heh, I've been on this prob for almost two weeks
  and I'm loosing motivation
in this project because of this bug. My servlet
  config I believe is correct.
I made it as simple as possible by putting the
  cais.properties file in the
~/WEB-INF/classes dir (no package path) and
  saying:
 
!-- Action Servlet Configuration --
  servlet
servlet-nameaction/servlet-name
 
 
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 
init-param
  param-nameapplication/param-name
  param-valuecais/param-value
/init-param
 
Other keys are not being found as well. I know the
  correct file is being
found as I println the
  ...getClass().getResources(cais.properties) and it
 
shows it's got the correct path and according to
  the struts code, it's
finding the file, but not the key.
 
I'm pretty sure I'm referencing the key correclty:
 
 
 %@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld
  prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld
  prefix=html %
 
html:html
head
 
title
   bean:message key=main.title /
/title
 
- Original Message -
From: Scott Cressler [EMAIL PROTECTED]
 
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 6:58 PM
Subject: RE: html form widgets not appearing
 
 
 
 Well, at least now you know you're invoking the
  bean:message tag.  ;-)
 That's a problem I've found with debugging
  custom tags: if you forget the
 taglib directive or screw it up, you get no
  complaints.

 It seems to be saying it can't find your message
  by that key.  Can you
find
 any messages?  Do you have the correct reference
  to the properties file in
 your web.xml file, e.g.:

   !-- Action Servlet Configuration --
   servlet
 servlet-nameaction/servlet-name

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

 
 param-valuecom.propel.webapp.Resources/param-value
 
 /init-param

 In my case, that means the file is at

 
 webapproot/classes/com/propel/webapp/Resources.properties
  .  I don't
think
 it necessarily has to be there (isn't there some
  search path for finding
 it?), but that has worked for me (using resin).

 Make sure you can find any message and then make
  sure your tag is
 referencing the message key correctly, e.g., I
  would expect given what
 you've said it would be:

 bean:message key=main.title/

 Scott

  -Original Message-
  From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 27, 2001 4:51 PM
  To: [EMAIL PROTECTED]
  Subject: Re: html form widgets not appearing
 
 
  I don't get it, if I match
  prefix=struts-bean w/ a tag of
  bean:message
  key ...
  it can't find the keys in the properties file,
  which I'd say

Re: html form widgets not appearing

2001-04-27 Thread G.L. Grobe

Ok, I just grabbed the struts nightly source from 4-27 and built it and
sprinkled loadLocale() with println()'s. I got the same errors. Very true
that if loadLocale does not find the file, it will not trap the error.

---My jsp page printed this --
500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGEat
org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)  at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)at
/index.jsp._jspService(/index.jsp.java:148) (JSP page line 129) at
com.orionserver[Orion/1.4.8 (build
10374)].http.OrionHttpJspPage.service(Unknown Source)   at
com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source)at
com.evermind[Orion/1.4.8 (build
10374)].server.http.JSPServlet.service(Unknown Source)  at
com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)   at
com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)
-

In the loadLocale() I got this on my console after starting my app server.
The name line is the properties files being found, obviously my
~/WEB-INF/classes/cais.properties (configured in my web.xml) is not being
found.

Anyone know right off where I should be looking in order to find this stuff.

--
cassia(build):/u/public/orion# java -jar orion.jar
Auto-unpacking /u/build/release/cais.ear... done.
Auto-unpacking /u/build/release/cais/cais-web.war... done.
Auto-deploying cais (Assembly had been updated)...
Auto-deploying cais-ejb.jar (ejb-jar.xml had been touched since the previous
deployment)... done.
Orion/1.4.8 initialized
Auto-deploying CAIS (Assembly had been updated)...
name = org/apache/struts/util/LocalStrings_en_US.properties
name = org/apache/struts/util/LocalStrings_en.properties
name = org/apache/struts/util/LocalStrings.properties
key = message.bundle
key = lookup.bean
key = lookup.target
key = lookup.scope
key = write.io
key = lookup.method
key = lookup.access



- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 8:40 PM
Subject: Re: html form widgets not appearing


 Actually, the file isn't loaded until getMessage() is called, so you need
 to check the loadLocale() method.  The initApplication() just creates an
 instance of the resource class, it doesn't load the properties file.

 shunhui zhu wrote:

  Just another thing to look at. The message resource is
  loaded at startup, in ActionServlet.initApplication(),
  and stored in the ServletContext with the key
  Action.MESSAGES_KEY (which is really the String
  org.apache.struts.action.MESSAGE). The message tag
  simply gets the resource from there. You can try to
  put a break point in initApplication(), and see
  whether the resource is read correctly there, if yes,
  you may want to check whether any of your Actions
  overwrites that key.
 
  Shunhui
 
  --- G.L. Grobe [EMAIL PROTECTED] wrote:
   RE: html form widgets not appearingThe entire
   index.jsp file is included in this message so you
   can see the html source at the end. I havn't
   actually re-compiled the struts.jar file to see what
   was happening (because it wasn't easy to get working
   w/ orion server) but just by looking at
   MessageTag.java, I could see where in doStart() the
   message var came back as null and threw the
   exception when trying to read the key. I saw the
   file it was trying to read was correct by doing a
   println(getClass().getResource(my.properties)...
   in my jsp file.
  
   I'll look at this loadLocale to see how and where to
   use it. Thnxs.
 - Original Message -
 From: Jason Chaffee
 To: '[EMAIL PROTECTED]'
 Sent: Friday, April 27, 2001 7:09 PM
 Subject: RE: html form widgets not appearing
  
  
 What does the html source look like?  You also
   might want to check the method loadLocale() and make
   sure the message strings are being loaded from the
   file.
  
 -Original Message-
 From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 27, 2001 5:11 PM
 To: [EMAIL PROTECTED]
 Subject: Re: html form widgets not appearing
  
  
  
 Heh, I've been on this prob for almost two weeks
   and I'm loosing motivation
 in this project because of this bug. My servlet
   config I believe is correct.
 I made it as simple as possible by putting the
   cais.properties file in the
 ~/WEB-INF/classes dir (no package path) and
   saying:
  
 !-- Action Servlet Configuration --
   servlet
 servlet-nameaction/servlet-name
  
  
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  
 init-param
   param-nameapplication/param-name
   param-valuecais/param-value
 /init-param
  
 Other keys are not being

Re: html form widgets not appearing

2001-04-27 Thread Jason Chaffee

If you have everything set correctly as you say, there might be a bug with you app
server and its ability to find resources.

G.L. Grobe wrote:

 Ok, I just grabbed the struts nightly source from 4-27 and built it and
 sprinkled loadLocale() with println()'s. I got the same errors. Very true
 that if loadLocale does not find the file, it will not trap the error.

 ---My jsp page printed this --
 500 Internal Server Error
 javax.servlet.jsp.JspException: Cannot find message resources under key
 org.apache.struts.action.MESSAGEat
 org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)  at
 org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)at
 /index.jsp._jspService(/index.jsp.java:148) (JSP page line 129) at
 com.orionserver[Orion/1.4.8 (build
 10374)].http.OrionHttpJspPage.service(Unknown Source)   at
 com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source)at
 com.evermind[Orion/1.4.8 (build
 10374)].server.http.JSPServlet.service(Unknown Source)  at
 com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)   at
 com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)
 -

 In the loadLocale() I got this on my console after starting my app server.
 The name line is the properties files being found, obviously my
 ~/WEB-INF/classes/cais.properties (configured in my web.xml) is not being
 found.

 Anyone know right off where I should be looking in order to find this stuff.

 --
 cassia(build):/u/public/orion# java -jar orion.jar
 Auto-unpacking /u/build/release/cais.ear... done.
 Auto-unpacking /u/build/release/cais/cais-web.war... done.
 Auto-deploying cais (Assembly had been updated)...
 Auto-deploying cais-ejb.jar (ejb-jar.xml had been touched since the previous
 deployment)... done.
 Orion/1.4.8 initialized
 Auto-deploying CAIS (Assembly had been updated)...
 name = org/apache/struts/util/LocalStrings_en_US.properties
 name = org/apache/struts/util/LocalStrings_en.properties
 name = org/apache/struts/util/LocalStrings.properties
 key = message.bundle
 key = lookup.bean
 key = lookup.target
 key = lookup.scope
 key = write.io
 key = lookup.method
 key = lookup.access

 - Original Message -
 From: Jason Chaffee [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 27, 2001 8:40 PM
 Subject: Re: html form widgets not appearing

  Actually, the file isn't loaded until getMessage() is called, so you need
  to check the loadLocale() method.  The initApplication() just creates an
  instance of the resource class, it doesn't load the properties file.
 
  shunhui zhu wrote:
 
   Just another thing to look at. The message resource is
   loaded at startup, in ActionServlet.initApplication(),
   and stored in the ServletContext with the key
   Action.MESSAGES_KEY (which is really the String
   org.apache.struts.action.MESSAGE). The message tag
   simply gets the resource from there. You can try to
   put a break point in initApplication(), and see
   whether the resource is read correctly there, if yes,
   you may want to check whether any of your Actions
   overwrites that key.
  
   Shunhui
  
   --- G.L. Grobe [EMAIL PROTECTED] wrote:
RE: html form widgets not appearingThe entire
index.jsp file is included in this message so you
can see the html source at the end. I havn't
actually re-compiled the struts.jar file to see what
was happening (because it wasn't easy to get working
w/ orion server) but just by looking at
MessageTag.java, I could see where in doStart() the
message var came back as null and threw the
exception when trying to read the key. I saw the
file it was trying to read was correct by doing a
println(getClass().getResource(my.properties)...
in my jsp file.
   
I'll look at this loadLocale to see how and where to
use it. Thnxs.
  - Original Message -
  From: Jason Chaffee
  To: '[EMAIL PROTECTED]'
  Sent: Friday, April 27, 2001 7:09 PM
  Subject: RE: html form widgets not appearing
   
   
  What does the html source look like?  You also
might want to check the method loadLocale() and make
sure the message strings are being loaded from the
file.
   
  -Original Message-
  From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 27, 2001 5:11 PM
  To: [EMAIL PROTECTED]
  Subject: Re: html form widgets not appearing
   
   
   
  Heh, I've been on this prob for almost two weeks
and I'm loosing motivation
  in this project because of this bug. My servlet
config I believe is correct.
  I made it as simple as possible by putting the
cais.properties file in the
  ~/WEB-INF/classes dir (no package path) and
saying:
   
  !-- Action Servlet Configuration --
servlet
  servlet

Re: html form widgets not appearing

2001-04-27 Thread G.L. Grobe

Are you sure it's up to the app server to pass the found resources to
struts. I thought I passed over some code where struts did the reading of
params from web.xml? Therefore making it a struts problem.

- Original Message -
From: Jason Chaffee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 27, 2001 11:59 PM
Subject: Re: html form widgets not appearing


 If you have everything set correctly as you say, there might be a bug with
you app
 server and its ability to find resources.

 G.L. Grobe wrote:

  Ok, I just grabbed the struts nightly source from 4-27 and built it and
  sprinkled loadLocale() with println()'s. I got the same errors. Very
true
  that if loadLocale does not find the file, it will not trap the error.
 
  ---My jsp page printed this --
  500 Internal Server Error
  javax.servlet.jsp.JspException: Cannot find message resources under key
  org.apache.struts.action.MESSAGEat
  org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)
at
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
at
  /index.jsp._jspService(/index.jsp.java:148) (JSP page line 129) at
  com.orionserver[Orion/1.4.8 (build
  10374)].http.OrionHttpJspPage.service(Unknown Source)   at
  com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source)
at
  com.evermind[Orion/1.4.8 (build
  10374)].server.http.JSPServlet.service(Unknown Source)  at
  com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)
at
  com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)
  -
 
  In the loadLocale() I got this on my console after starting my app
server.
  The name line is the properties files being found, obviously my
  ~/WEB-INF/classes/cais.properties (configured in my web.xml) is not
being
  found.
 
  Anyone know right off where I should be looking in order to find this
stuff.
 
  --
  cassia(build):/u/public/orion# java -jar orion.jar
  Auto-unpacking /u/build/release/cais.ear... done.
  Auto-unpacking /u/build/release/cais/cais-web.war... done.
  Auto-deploying cais (Assembly had been updated)...
  Auto-deploying cais-ejb.jar (ejb-jar.xml had been touched since the
previous
  deployment)... done.
  Orion/1.4.8 initialized
  Auto-deploying CAIS (Assembly had been updated)...
  name = org/apache/struts/util/LocalStrings_en_US.properties
  name = org/apache/struts/util/LocalStrings_en.properties
  name = org/apache/struts/util/LocalStrings.properties
  key = message.bundle
  key = lookup.bean
  key = lookup.target
  key = lookup.scope
  key = write.io
  key = lookup.method
  key = lookup.access
 
  - Original Message -
  From: Jason Chaffee [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, April 27, 2001 8:40 PM
  Subject: Re: html form widgets not appearing
 
   Actually, the file isn't loaded until getMessage() is called, so you
need
   to check the loadLocale() method.  The initApplication() just creates
an
   instance of the resource class, it doesn't load the properties file.
  
   shunhui zhu wrote:
  
Just another thing to look at. The message resource is
loaded at startup, in ActionServlet.initApplication(),
and stored in the ServletContext with the key
Action.MESSAGES_KEY (which is really the String
org.apache.struts.action.MESSAGE). The message tag
simply gets the resource from there. You can try to
put a break point in initApplication(), and see
whether the resource is read correctly there, if yes,
you may want to check whether any of your Actions
overwrites that key.
   
Shunhui
   
--- G.L. Grobe [EMAIL PROTECTED] wrote:
 RE: html form widgets not appearingThe entire
 index.jsp file is included in this message so you
 can see the html source at the end. I havn't
 actually re-compiled the struts.jar file to see what
 was happening (because it wasn't easy to get working
 w/ orion server) but just by looking at
 MessageTag.java, I could see where in doStart() the
 message var came back as null and threw the
 exception when trying to read the key. I saw the
 file it was trying to read was correct by doing a
 println(getClass().getResource(my.properties)...
 in my jsp file.

 I'll look at this loadLocale to see how and where to
 use it. Thnxs.
   - Original Message -
   From: Jason Chaffee
   To: '[EMAIL PROTECTED]'
   Sent: Friday, April 27, 2001 7:09 PM
   Subject: RE: html form widgets not appearing


   What does the html source look like?  You also
 might want to check the method loadLocale() and make
 sure the message strings are being loaded from the
 file.

   -Original Message-
   From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
   Sent: Friday, April 27, 2001 5:11 PM
   To: [EMAIL PROTECTED

Re: html form widgets not appearing

2001-04-27 Thread Dan Miser

What can you do to help isolate the problem so others can see it? I couldn't
find Orion 1.48. Does the same problem happen on earlier versions? Does the
same problem occur on Orion with struts-example and/or struts-test? Does the
same problem occur if you move your app over to Tomcat?

I know I mentioned it before, but this is the *exact* error you get if you
have extra struts.jar files laying around...
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: G.L. Grobe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 12:14 AM
Subject: Re: html form widgets not appearing


 Are you sure it's up to the app server to pass the found resources to
 struts. I thought I passed over some code where struts did the reading of
 params from web.xml? Therefore making it a struts problem.





Re: html form widgets not appearing

2001-04-27 Thread Jason Chaffee

The app server is the container for the servlet, so all of servlet code is being
done by the app server, therefore if something is implemented wrong like
getServletContext() or something, than you will have a problem.  Weblogic has
all kinds of bugs like this.

G.L. Grobe wrote:

 Are you sure it's up to the app server to pass the found resources to
 struts. I thought I passed over some code where struts did the reading of
 params from web.xml? Therefore making it a struts problem.

 - Original Message -
 From: Jason Chaffee [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 27, 2001 11:59 PM
 Subject: Re: html form widgets not appearing

  If you have everything set correctly as you say, there might be a bug with
 you app
  server and its ability to find resources.
 
  G.L. Grobe wrote:
 
   Ok, I just grabbed the struts nightly source from 4-27 and built it and
   sprinkled loadLocale() with println()'s. I got the same errors. Very
 true
   that if loadLocale does not find the file, it will not trap the error.
  
   ---My jsp page printed this --
   500 Internal Server Error
   javax.servlet.jsp.JspException: Cannot find message resources under key
   org.apache.struts.action.MESSAGEat
   org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)
 at
   org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
 at
   /index.jsp._jspService(/index.jsp.java:148) (JSP page line 129) at
   com.orionserver[Orion/1.4.8 (build
   10374)].http.OrionHttpJspPage.service(Unknown Source)   at
   com.evermind[Orion/1.4.8 (build 10374)]._aj._nxd(Unknown Source)
 at
   com.evermind[Orion/1.4.8 (build
   10374)].server.http.JSPServlet.service(Unknown Source)  at
   com.evermind[Orion/1.4.8 (build 10374)]._iib._vfd(Unknown Source)
 at
   com.evermind[Orion/1.4.8 (build 10374)]._iib._qjc(Unknown Source)
   -
  
   In the loadLocale() I got this on my console after starting my app
 server.
   The name line is the properties files being found, obviously my
   ~/WEB-INF/classes/cais.properties (configured in my web.xml) is not
 being
   found.
  
   Anyone know right off where I should be looking in order to find this
 stuff.
  
   --
   cassia(build):/u/public/orion# java -jar orion.jar
   Auto-unpacking /u/build/release/cais.ear... done.
   Auto-unpacking /u/build/release/cais/cais-web.war... done.
   Auto-deploying cais (Assembly had been updated)...
   Auto-deploying cais-ejb.jar (ejb-jar.xml had been touched since the
 previous
   deployment)... done.
   Orion/1.4.8 initialized
   Auto-deploying CAIS (Assembly had been updated)...
   name = org/apache/struts/util/LocalStrings_en_US.properties
   name = org/apache/struts/util/LocalStrings_en.properties
   name = org/apache/struts/util/LocalStrings.properties
   key = message.bundle
   key = lookup.bean
   key = lookup.target
   key = lookup.scope
   key = write.io
   key = lookup.method
   key = lookup.access
  
   - Original Message -
   From: Jason Chaffee [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, April 27, 2001 8:40 PM
   Subject: Re: html form widgets not appearing
  
Actually, the file isn't loaded until getMessage() is called, so you
 need
to check the loadLocale() method.  The initApplication() just creates
 an
instance of the resource class, it doesn't load the properties file.
   
shunhui zhu wrote:
   
 Just another thing to look at. The message resource is
 loaded at startup, in ActionServlet.initApplication(),
 and stored in the ServletContext with the key
 Action.MESSAGES_KEY (which is really the String
 org.apache.struts.action.MESSAGE). The message tag
 simply gets the resource from there. You can try to
 put a break point in initApplication(), and see
 whether the resource is read correctly there, if yes,
 you may want to check whether any of your Actions
 overwrites that key.

 Shunhui

 --- G.L. Grobe [EMAIL PROTECTED] wrote:
  RE: html form widgets not appearingThe entire
  index.jsp file is included in this message so you
  can see the html source at the end. I havn't
  actually re-compiled the struts.jar file to see what
  was happening (because it wasn't easy to get working
  w/ orion server) but just by looking at
  MessageTag.java, I could see where in doStart() the
  message var came back as null and threw the
  exception when trying to read the key. I saw the
  file it was trying to read was correct by doing a
  println(getClass().getResource(my.properties)...
  in my jsp file.
 
  I'll look at this loadLocale to see how and where to
  use it. Thnxs.
- Original Message -
From: Jason Chaffee
To: '[EMAIL PROTECTED]'
Sent: Friday, April 27, 2001 7:09 PM

Re: html form widgets not appearing

2001-04-27 Thread G.L. Grobe

The problem happens on 1.4.5, 1.4.7 and the latest (which is gotten from an
autoupdate utility) 1.4.8. The earliest I can use w/ my app is 1.4.5 because
of other fixes.

Unfortunately, I need an EJB container, so can't use Tomcat unless I get
JBoss which is a J2EE config nightmare for me at this point.

I do have one struts.jar (which is not in the classpath and I removed for
testing) in which I use to have ant package my *.ear file before it get's
deployed to the same account I use to develop this in. But I've removed it
after deployment to see if this was the problem. Nothing different.

I would think since I'm using the struts controller servlet, I can use the
standard resource factory implementation which is what I'm doing, as opposed
to a previous suggestion to develope my own. This *seemed* easier and I'd
still like to find the problem.

I'm just going to have to keep sprinkling struts.jar with println()'s till I
see where/how/why it's not getting this file.

- Original Message -
From: Dan Miser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 12:22 AM
Subject: Re: html form widgets not appearing


 What can you do to help isolate the problem so others can see it? I
couldn't
 find Orion 1.48. Does the same problem happen on earlier versions? Does
the
 same problem occur on Orion with struts-example and/or struts-test? Does
the
 same problem occur if you move your app over to Tomcat?

 I know I mentioned it before, but this is the *exact* error you get if you
 have extra struts.jar files laying around...
 --
 Dan Miser
 http://www.distribucon.com

 - Original Message -
 From: G.L. Grobe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, April 28, 2001 12:14 AM
 Subject: Re: html form widgets not appearing


  Are you sure it's up to the app server to pass the found resources to
  struts. I thought I passed over some code where struts did the reading
of
  params from web.xml? Therefore making it a struts problem.






Re: html form widgets not appearing

2001-04-27 Thread Dan Miser

I'll see if I can get a version of Orion up and running. I'm not suggesting
that you develop with Tomcat, merely that you test this specific problem in
Tomcat. You're going to need to strip your code down to debug this. I
haven't seen any EJB-specific code in your previous posts, so let's try to
get that exact sample working (or not) somewhere so we can start figuring
out where the problem lies.

I'd also like to know if struts-example works with your Orion setup.
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: G.L. Grobe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 12:36 AM
Subject: Re: html form widgets not appearing


 The problem happens on 1.4.5, 1.4.7 and the latest (which is gotten from
an
 autoupdate utility) 1.4.8. The earliest I can use w/ my app is 1.4.5
because
 of other fixes.

 Unfortunately, I need an EJB container, so can't use Tomcat unless I get
 JBoss which is a J2EE config nightmare for me at this point.