You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jonathan Asbell <ja...@i-2000.com> on 2001/04/28 14:55:37 UTC

Possiblility Answer to: html form widgets not appearing

It sounds like you have a "classpath problem".  I bet you either have a
system classpath (ie a classpath set in your
settings/controlpanel/system/advanced/environmentvariables ....assuming it
is a pc) which conflicts with the classpath you start up when you run your
server.  Either way it seems that it cant find your file in the classpath to
load.  Try to loop through and print to the console all of your system
variables at the point after you start up your server. (cut and paste class
below........)
What you are looking for is the following system properties:
"java.class.path"
"user.dir"
Put your properties in the directory that indicates your "user.dir".  If it
works than your problem is your classpath.
============================================================
import java.util.*;
public class DisplayEnvironment{
 public static void main(String[] args){
  new DisplayEnvironment();
 }
 public DisplayEnvironment(){
  System.out.println("####################################");
  displaySystemProperties();
  System.out.println("####################################");
  displayWeblogicProperties();
  System.out.println("####################################");
 }
 private void displaySystemProperties(){
  Properties p = System.getProperties();
                Set set = p.keySet();
                Object[] o = set.toArray();
                List l = Arrays.asList(o);
                Collections.sort(l);
                Iterator i = l.iterator();
  while(i.hasNext()){
   String s = (String)i.next();
   System.out.println(s + " " + p.getProperty(s));
   System.out.println("====================================");
  }//while
 }//method
 private void displayWeblogicProperties(){
 }
}
============================================================







----- Original Message -----
From: "Jason Chaffee" <ja...@metatv.com>
To: <st...@jakarta.apache.org>
Sent: Saturday, April 28, 2001 1:30 AM
Subject: Re: html form widgets not appearing


> 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" <ja...@metatv.com>
> > To: <st...@jakarta.apache.org>
> > 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.MESSAGE        at
> > > > 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" <ja...@metatv.com>
> > > > To: <st...@jakarta.apache.org>
> > > > 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" <ga...@grobe.org> 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: 'struts-user@jakarta.apache.org'
> > > > > > >   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:gary@grobe.org]
> > > > > > >   Sent: Friday, April 27, 2001 5:11 PM
> > > > > > >   To: struts-user@jakarta.apache.org
> > > > > > >   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-name>action</servlet-name>
> > > > > > >
> > > > > > >
> > > > > >
> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > > > >
> > > > > > >       <init-param>
> > > > > > >         <param-name>application</param-name>
> > > > > > >         <param-value>cais</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" <sc...@propel.com>
> > > > > > >
> > > > > > >   To: <st...@jakarta.apache.org>
> > > > > > >   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-name>action</servlet-name>
> > > > > > >   >
> > > > > > >
> > > > > >
> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > > > >
> > > > > > >   >     <init-param>
> > > > > > >   >       <param-name>application</param-name>
> > > > > > >   >
> > > > > > >
> > > > > > <param-value>com.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:gary@grobe.org]
> > > > > > >   > > Sent: Friday, April 27, 2001 4:51 PM
> > > > > > >   > > To: struts-user@jakarta.apache.org
> > > > > > >   > > 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: 'struts-user@jakarta.apache.org'
> > > > > > >   > > 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:gary@grobe.org]
> > > > > > >   > > Sent: Friday, April 27, 2001 3:30 PM
> > > > > > >   > > To: struts-user@jakarta.apache.org
> > > > > > >   > > 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,
> > > > > > >
> > > > > > === message truncated ===
> > > > > >
> > > > > > __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Yahoo! Auctions - buy the things you want at great prices
> > > > > > http://auctions.yahoo.com/
> > > > >
> > > > > --
> > > > > Jason Chaffee
> > > > > Software Engineer
> > > > > MetaTV Inc.
> > > > > Phone:(415) 289-8516
> > > > >
> > > > >
> > >
> > > --
> > > Jason Chaffee
> > > Software Engineer
> > > MetaTV Inc.
> > > Phone:(415) 289-8516
> > >
> > >
>
> --
> Jason Chaffee
> Software Engineer
> MetaTV Inc.
> Phone:(415) 289-8516
>
>


Re: Possiblility Answer to: html form widgets not appearing

Posted by Jonathan Asbell <ja...@i-2000.com>.
Your right, I read it wrong
Quoting from
http://jakarta.apache.org/struts/userGuide/building_view.html#i18n

"The important thing is for the resource bundle to be found on the class
path for your application. Another approach is to store the
MyResources.properties file in your application's class folder. You can then
simply specify "myResources" as the application value. "

However, what I said is true about the "user.dir" value.  For security
reasons, when using Weblogic, Tomcat etc. , your can not make relative
references to a file from a servlet.  They  have to be absolute, or relative
to the "user.dir".



----- Original Message -----
From: "Jason Chaffee" <ja...@metatv.com>
To: <st...@jakarta.apache.org>
Sent: Saturday, April 28, 2001 2:08 PM
Subject: Re: Possiblility Answer to: html form widgets not appearing


> It shouldn't be a class path problem because it is trying to load the
resource
> within the web app, which should never be in the class path to begin with.
It
> is more likely a bug with the app server.
>
> Jonathan Asbell wrote:
>
> > It sounds like you have a "classpath problem".  I bet you either have a
> > system classpath (ie a classpath set in your
> > settings/controlpanel/system/advanced/environmentvariables ....assuming
it
> > is a pc) which conflicts with the classpath you start up when you run
your
> > server.  Either way it seems that it cant find your file in the
classpath to
> > load.  Try to loop through and print to the console all of your system
> > variables at the point after you start up your server. (cut and paste
class
> > below........)
> > What you are looking for is the following system properties:
> > "java.class.path"
> > "user.dir"
> > Put your properties in the directory that indicates your "user.dir".  If
it
> > works than your problem is your classpath.
> > ============================================================
> > import java.util.*;
> > public class DisplayEnvironment{
> >  public static void main(String[] args){
> >   new DisplayEnvironment();
> >  }
> >  public DisplayEnvironment(){
> >   System.out.println("####################################");
> >   displaySystemProperties();
> >   System.out.println("####################################");
> >   displayWeblogicProperties();
> >   System.out.println("####################################");
> >  }
> >  private void displaySystemProperties(){
> >   Properties p = System.getProperties();
> >                 Set set = p.keySet();
> >                 Object[] o = set.toArray();
> >                 List l = Arrays.asList(o);
> >                 Collections.sort(l);
> >                 Iterator i = l.iterator();
> >   while(i.hasNext()){
> >    String s = (String)i.next();
> >    System.out.println(s + " " + p.getProperty(s));
> >    System.out.println("====================================");
> >   }//while
> >  }//method
> >  private void displayWeblogicProperties(){
> >  }
> > }
> > ============================================================
> >
> > ----- Original Message -----
> > From: "Jason Chaffee" <ja...@metatv.com>
> > To: <st...@jakarta.apache.org>
> > Sent: Saturday, April 28, 2001 1:30 AM
> > Subject: Re: html form widgets not appearing
> >
> > > 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" <ja...@metatv.com>
> > > > To: <st...@jakarta.apache.org>
> > > > 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.MESSAGE        at
> > > > > >
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" <ja...@metatv.com>
> > > > > > To: <st...@jakarta.apache.org>
> > > > > > 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" <ga...@grobe.org> 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: 'struts-user@jakarta.apache.org'
> > > > > > > > >   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:gary@grobe.org]
> > > > > > > > >   Sent: Friday, April 27, 2001 5:11 PM
> > > > > > > > >   To: struts-user@jakarta.apache.org
> > > > > > > > >   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-name>action</servlet-name>
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > >
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > > > > > >
> > > > > > > > >       <init-param>
> > > > > > > > >         <param-name>application</param-name>
> > > > > > > > >         <param-value>cais</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" <sc...@propel.com>
> > > > > > > > >
> > > > > > > > >   To: <st...@jakarta.apache.org>
> > > > > > > > >   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-name>action</servlet-name>
> > > > > > > > >   >
> > > > > > > > >
> > > > > > > >
> > > >
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > > > > > >
> > > > > > > > >   >     <init-param>
> > > > > > > > >   >       <param-name>application</param-name>
> > > > > > > > >   >
> > > > > > > > >
> > > > > > > > <param-value>com.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:gary@grobe.org]
> > > > > > > > >   > > Sent: Friday, April 27, 2001 4:51 PM
> > > > > > > > >   > > To: struts-user@jakarta.apache.org
> > > > > > > > >   > > 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: 'struts-user@jakarta.apache.org'
> > > > > > > > >   > > 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:gary@grobe.org]
> > > > > > > > >   > > Sent: Friday, April 27, 2001 3:30 PM
> > > > > > > > >   > > To: struts-user@jakarta.apache.org
> > > > > > > > >   > > 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,
> > > > > > > > >
> > > > > > > > === message truncated ===
> > > > > > > >
> > > > > > > > __________________________________________________
> > > > > > > > Do You Yahoo!?
> > > > > > > > Yahoo! Auctions - buy the things you want at great prices
> > > > > > > > http://auctions.yahoo.com/
> > > > > > >
> > > > > > > --
> > > > > > > Jason Chaffee
> > > > > > > Software Engineer
> > > > > > > MetaTV Inc.
> > > > > > > Phone:(415) 289-8516
> > > > > > >
> > > > > > >
> > > > >
> > > > > --
> > > > > Jason Chaffee
> > > > > Software Engineer
> > > > > MetaTV Inc.
> > > > > Phone:(415) 289-8516
> > > > >
> > > > >
> > >
> > > --
> > > Jason Chaffee
> > > Software Engineer
> > > MetaTV Inc.
> > > Phone:(415) 289-8516
> > >
> > >
>
> --
> Jason Chaffee
> Software Engineer
> MetaTV Inc.
> Phone:(415) 289-8516
>
>


Re: Possiblility Answer to: html form widgets not appearing

Posted by Jason Chaffee <ja...@metatv.com>.
It shouldn't be a class path problem because it is trying to load the resource
within the web app, which should never be in the class path to begin with.  It
is more likely a bug with the app server.

Jonathan Asbell wrote:

> It sounds like you have a "classpath problem".  I bet you either have a
> system classpath (ie a classpath set in your
> settings/controlpanel/system/advanced/environmentvariables ....assuming it
> is a pc) which conflicts with the classpath you start up when you run your
> server.  Either way it seems that it cant find your file in the classpath to
> load.  Try to loop through and print to the console all of your system
> variables at the point after you start up your server. (cut and paste class
> below........)
> What you are looking for is the following system properties:
> "java.class.path"
> "user.dir"
> Put your properties in the directory that indicates your "user.dir".  If it
> works than your problem is your classpath.
> ============================================================
> import java.util.*;
> public class DisplayEnvironment{
>  public static void main(String[] args){
>   new DisplayEnvironment();
>  }
>  public DisplayEnvironment(){
>   System.out.println("####################################");
>   displaySystemProperties();
>   System.out.println("####################################");
>   displayWeblogicProperties();
>   System.out.println("####################################");
>  }
>  private void displaySystemProperties(){
>   Properties p = System.getProperties();
>                 Set set = p.keySet();
>                 Object[] o = set.toArray();
>                 List l = Arrays.asList(o);
>                 Collections.sort(l);
>                 Iterator i = l.iterator();
>   while(i.hasNext()){
>    String s = (String)i.next();
>    System.out.println(s + " " + p.getProperty(s));
>    System.out.println("====================================");
>   }//while
>  }//method
>  private void displayWeblogicProperties(){
>  }
> }
> ============================================================
>
> ----- Original Message -----
> From: "Jason Chaffee" <ja...@metatv.com>
> To: <st...@jakarta.apache.org>
> Sent: Saturday, April 28, 2001 1:30 AM
> Subject: Re: html form widgets not appearing
>
> > 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" <ja...@metatv.com>
> > > To: <st...@jakarta.apache.org>
> > > 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.MESSAGE        at
> > > > > 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" <ja...@metatv.com>
> > > > > To: <st...@jakarta.apache.org>
> > > > > 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" <ga...@grobe.org> 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: 'struts-user@jakarta.apache.org'
> > > > > > > >   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:gary@grobe.org]
> > > > > > > >   Sent: Friday, April 27, 2001 5:11 PM
> > > > > > > >   To: struts-user@jakarta.apache.org
> > > > > > > >   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-name>action</servlet-name>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > > > > >
> > > > > > > >       <init-param>
> > > > > > > >         <param-name>application</param-name>
> > > > > > > >         <param-value>cais</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" <sc...@propel.com>
> > > > > > > >
> > > > > > > >   To: <st...@jakarta.apache.org>
> > > > > > > >   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-name>action</servlet-name>
> > > > > > > >   >
> > > > > > > >
> > > > > > >
> > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > > > > > > >
> > > > > > > >   >     <init-param>
> > > > > > > >   >       <param-name>application</param-name>
> > > > > > > >   >
> > > > > > > >
> > > > > > > <param-value>com.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:gary@grobe.org]
> > > > > > > >   > > Sent: Friday, April 27, 2001 4:51 PM
> > > > > > > >   > > To: struts-user@jakarta.apache.org
> > > > > > > >   > > 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: 'struts-user@jakarta.apache.org'
> > > > > > > >   > > 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:gary@grobe.org]
> > > > > > > >   > > Sent: Friday, April 27, 2001 3:30 PM
> > > > > > > >   > > To: struts-user@jakarta.apache.org
> > > > > > > >   > > 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,
> > > > > > > >
> > > > > > > === message truncated ===
> > > > > > >
> > > > > > > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Yahoo! Auctions - buy the things you want at great prices
> > > > > > > http://auctions.yahoo.com/
> > > > > >
> > > > > > --
> > > > > > Jason Chaffee
> > > > > > Software Engineer
> > > > > > MetaTV Inc.
> > > > > > Phone:(415) 289-8516
> > > > > >
> > > > > >
> > > >
> > > > --
> > > > Jason Chaffee
> > > > Software Engineer
> > > > MetaTV Inc.
> > > > Phone:(415) 289-8516
> > > >
> > > >
> >
> > --
> > Jason Chaffee
> > Software Engineer
> > MetaTV Inc.
> > Phone:(415) 289-8516
> >
> >

--
Jason Chaffee
Software Engineer
MetaTV Inc.
Phone:(415) 289-8516