Re: struts not reading properties file

2001-04-19 Thread Rajan Gupta

Have u provide the correct location of ApplicationResources in web.xml?
--- "G.L. Grobe" [EMAIL PROTECTED] wrote:
 Agreed, but not the case.
 
 - Original Message -
 From: "Dan Miser" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 17, 2001 11:13 PM
 Subject: Re: struts not reading properties file
 
 
  Most likely you have a copy of struts.jar somewhere on your CLASSPATH.
 It
  only belongs in WEB-INF/lib.
  --
  Dan Miser
  http://www.distribucon.com
 
  - Original Message -
  From: G.L. Grobe
  To: [EMAIL PROTECTED]
  Sent: Tuesday, April 17, 2001 10:27 PM
  Subject: struts not reading properties file
 
   500 Internal Server Error
  javax.servlet.jsp.JspException: Missing message for key main.title at
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
  Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
 Code)
 at
 
 
 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: struts not reading properties file

2001-04-19 Thread Shruti Biyani

I get the same error message all the time...I do not know why...I think
applicationResources.properties should be in 2 places...One in src folder
and other in classes folder...For some reason, when I execute the run
file...ti throws an exception saying that it cannot find my User class and
then when I display the jsp, it gives the message:

 500 Internal Server Error
  javax.servlet.jsp.JspException: Missing message for key main.title at
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
  Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
 Code)


Anyone face this problem? 

--Shruti


-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: struts not reading properties file


Have u provide the correct location of ApplicationResources in web.xml?
--- "G.L. Grobe" [EMAIL PROTECTED] wrote:
 Agreed, but not the case.
 
 - Original Message -
 From: "Dan Miser" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 17, 2001 11:13 PM
 Subject: Re: struts not reading properties file
 
 
  Most likely you have a copy of struts.jar somewhere on your CLASSPATH.
 It
  only belongs in WEB-INF/lib.
  --
  Dan Miser
  http://www.distribucon.com
 
  - Original Message -
  From: G.L. Grobe
  To: [EMAIL PROTECTED]
  Sent: Tuesday, April 17, 2001 10:27 PM
  Subject: struts not reading properties file
 
   500 Internal Server Error
  javax.servlet.jsp.JspException: Missing message for key main.title at
  org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
  Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
 Code)
 at
 
 
 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: struts not reading properties file

2001-04-19 Thread Peter Alfors

In your web.xml file, does the servletinit-param tag point to the correct
location?

servlet
  ...
  init-param
param-nameapplication/param-name
param-valuecom.myResources.dictionary/param-value
  /init-param

The properties file does not need to be in both places.
You could either place it the classes directory, or jar it up with the rest of
your classes.

Pete

Shruti Biyani wrote:

 I get the same error message all the time...I do not know why...I think
 applicationResources.properties should be in 2 places...One in src folder
 and other in classes folder...For some reason, when I execute the run
 file...ti throws an exception saying that it cannot find my User class and
 then when I display the jsp, it gives the message:

  500 Internal Server Error
   javax.servlet.jsp.JspException: Missing message for key main.title at
   org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
   Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
  Code)
 

 Anyone face this problem?

 --Shruti

 -Original Message-
 From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 19, 2001 12:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: struts not reading properties file

 Have u provide the correct location of ApplicationResources in web.xml?
 --- "G.L. Grobe" [EMAIL PROTECTED] wrote:
  Agreed, but not the case.
 
  - Original Message -
  From: "Dan Miser" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, April 17, 2001 11:13 PM
  Subject: Re: struts not reading properties file
 
 
   Most likely you have a copy of struts.jar somewhere on your CLASSPATH.
  It
   only belongs in WEB-INF/lib.
   --
   Dan Miser
   http://www.distribucon.com
  
   - Original Message -
   From: G.L. Grobe
   To: [EMAIL PROTECTED]
   Sent: Tuesday, April 17, 2001 10:27 PM
   Subject: struts not reading properties file
  
500 Internal Server Error
   javax.servlet.jsp.JspException: Missing message for key main.title at
   org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
   Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
  Code)
  at
  
  
 

 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/


begin:vcard 
n:;
x-mozilla-html:FALSE
org:BRIMG SRC="http://www.irista.com/logo/irista.gif"BRBRFONT Color=#80FONT SIZE=2BBringing Vision to Your Supply Chain
adr:;;
version:2.1
end:vcard



RE: struts not reading properties file

2001-04-19 Thread Abraham Kang

Hey G.L.,

   You might also want to check if the web app is configured properly on
Orion.
I would try adding  a class to the classes directory of your web app
and then try using the class in a jsp:useBean  tag.  If it can't load
the useBean class then I would guess it is a Orion configuration
problem.

In addition, when you say cais.properties is located in /WEB-INF/classes
is that for the default web app or named web app?

Hope this Helps,
Abraham

 -Original Message-
 From: Peter Alfors [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 19, 2001 12:45 PM
 To: [EMAIL PROTECTED]
 Subject: Re: struts not reading properties file


 In your web.xml file, does the servletinit-param tag point to
 the correct
 location?

 servlet
   ...
   init-param
 param-nameapplication/param-name
 param-valuecom.myResources.dictionary/param-value
   /init-param

 The properties file does not need to be in both places.
 You could either place it the classes directory, or jar it up
 with the rest of
 your classes.

 Pete

 Shruti Biyani wrote:

  I get the same error message all the time...I do not know why...I think
  applicationResources.properties should be in 2 places...One in
 src folder
  and other in classes folder...For some reason, when I execute the run
  file...ti throws an exception saying that it cannot find my
 User class and
  then when I display the jsp, it gives the message:
 
   500 Internal Server Error
javax.servlet.jsp.JspException: Missing message for key
 main.title at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
   Code)
  
 
  Anyone face this problem?
 
  --Shruti
 
  -Original Message-
  From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 19, 2001 12:29 PM
  To: [EMAIL PROTECTED]
  Subject: Re: struts not reading properties file
 
  Have u provide the correct location of ApplicationResources in web.xml?
  --- "G.L. Grobe" [EMAIL PROTECTED] wrote:
   Agreed, but not the case.
  
   - Original Message -
   From: "Dan Miser" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, April 17, 2001 11:13 PM
   Subject: Re: struts not reading properties file
  
  
Most likely you have a copy of struts.jar somewhere on your
 CLASSPATH.
   It
only belongs in WEB-INF/lib.
--
Dan Miser
http://www.distribucon.com
   
- Original Message -
From: G.L. Grobe
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 10:27 PM
Subject: struts not reading properties file
   
 500 Internal Server Error
javax.servlet.jsp.JspException: Missing message for key
 main.title at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled
   Code)
   at
   
   
  
 
  __
  Do You Yahoo!?
  Yahoo! Auctions - buy the things you want at great prices
  http://auctions.yahoo.com/





RE: struts not reading properties file

2001-04-19 Thread Allamsetty, Venkata

http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

thanks
Venkata

-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 12:23 AM
To: [EMAIL PROTECTED]
Subject: RE: struts not reading properties file


Hello Everybody 
can you help me finding link that has JAVA coding
standards .i hope many of you might have gone through it.

D.C.



RE: struts not reading properties file

2001-04-19 Thread Dinesh Chaturvedi



Hello Venkata

thank you for the link i think it solves my problem.




-Original Message-
From: Allamsetty, Venkata [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 10:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: struts not reading properties file


http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

thanks
Venkata

-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 12:23 AM
To: [EMAIL PROTECTED]
Subject: RE: struts not reading properties file


Hello Everybody 
can you help me finding link that has JAVA coding
standards .i hope many of you might have gone through it.

D.C.



Re: struts not reading properties file

2001-04-18 Thread G.L. Grobe

Agreed, but not the case.

- Original Message -
From: "Dan Miser" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 11:13 PM
Subject: Re: struts not reading properties file


 Most likely you have a copy of struts.jar somewhere on your CLASSPATH. It
 only belongs in WEB-INF/lib.
 --
 Dan Miser
 http://www.distribucon.com

 - Original Message -
 From: G.L. Grobe
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 17, 2001 10:27 PM
 Subject: struts not reading properties file

  500 Internal Server Error
 javax.servlet.jsp.JspException: Missing message for key main.title at
 org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
 Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
at