Prevent display of JspException

2003-09-29 Thread Wes Kubo
I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


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



RE: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


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



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



RE: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


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



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



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



RE: Prevent display of JspException

2003-09-29 Thread Wes Kubo
No. It would be thrown by struts code, say if somebody mucked with my
ApplicationResources.properties and a certain message key couldn't be found.
This is something that would happen when the JSPs are compiled. There is
really only an off chance of this occuring in production, just wanted to see
if something could be done should it arise.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 9:40 AM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


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



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




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



RE: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
Ahh, in the case of message keys, there is an attribute you can use to
change the behavior of missing keys, I believe it's called null, here is
the description from the dtd

 nullSet to true if you want our message resources to
return a
 null string for unknown message keys, or false to
return a
 message with the bad key value.



-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:02 PM
To: Mike Jasnowski; Struts Users Mailing List
Subject: RE: Prevent display of JspException


No. It would be thrown by struts code, say if somebody mucked with my
ApplicationResources.properties and a certain message key couldn't be found.
This is something that would happen when the JSPs are compiled. There is
really only an off chance of this occuring in production, just wanted to see
if something could be done should it arise.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 9:40 AM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


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



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





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



RE: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
I know this might not be the behavior you want, but at least the app
wouldn't crash.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:59 PM
To: Wes Kubo; Struts Users Mailing List
Subject: RE: Prevent display of JspException


Ahh, in the case of message keys, there is an attribute you can use to
change the behavior of missing keys, I believe it's called null, here is
the description from the dtd

 nullSet to true if you want our message resources to
return a
 null string for unknown message keys, or false to
return a
 message with the bad key value.



-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:02 PM
To: Mike Jasnowski; Struts Users Mailing List
Subject: RE: Prevent display of JspException


No. It would be thrown by struts code, say if somebody mucked with my
ApplicationResources.properties and a certain message key couldn't be found.
This is something that would happen when the JSPs are compiled. There is
really only an off chance of this occuring in production, just wanted to see
if something could be done should it arise.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 9:40 AM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


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



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





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



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



Re: Prevent display of JspException

2003-09-29 Thread manglu
Wes,

Why not use the ErrorPage in the web.xml for a JspException and place it 
  with contents that you think is appropriate.

HTH
Manglu
Wes Kubo wrote:
I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?
Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.
Thanks.


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


RE: JspException: Exception thrown by getter for property XXX of bean YYY?

2003-03-07 Thread Chen, Gin
Actually its in the same stack trace as what you posted but further down.
Make sure that you are looking at the console when getting the stack trace
and not the web page.
If you can't find it in the console then look into your log files.
I dont know if the root cause stack trace is application server specific but
either way, there should be something like it that will point you to a
better description of what caused the error.

-Original Message-
From: Viggio, Alex [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 6:18 PM
To: 'Struts Users Mailing List'
Subject: RE: JspException: Exception thrown by getter for property XXX
of bean YYY?


Thanks for the responses. I'm obviously missing some basic JSP debugging
skills ;) Although I've been working on a 50% Struts app for a year+ (i.e.
tons of scriptlet code in JSPs), I've only just started using Struts
properly with ActionForm's and taglibs so I'm still a noob when it comes to
debugging JSPs. 

When you say, look further down the trace, do you mean the stack trace I
forwarded in my posting or some other stack dump? I don't see anything
labelled root cause in that trace.

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 3:35 PM
To: 'Struts Users Mailing List'
Subject: RE: JspException: Exception thrown by getter for property XXX
of bean YYY?


look further down the trace.
there's a line that says root cause.
the exception after that is your true error.
-Tim

-Original Message-
From: Viggio, Alex [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 5:19 PM
To: 'Struts Users Mailing List'
Subject: JspException: Exception thrown by getter for property XXX of
bean YYY?


We've had some additions to our production Struts app out for two months,
and today is the first time I have seen this specific error (see below).
I've includded the getter method below. How could an exception be thrown by
this method? It should handle the case where previousUrl is null.

Thanks,
- Alex

*** code ***

public String getPreviousUrl() {
return ((null != previousUrl) ? a href=\ + previousUrl +
\#171;/a : #171;);
}

*** stack ***

javax.servlet.jsp.JspException: Exception thrown by getter for property
calendar.previousUrl of bean meetingWizardForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
g.java:93)
at
_0002fmeetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3._jspService(_0002f
meetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3.java:709)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758

JspException: Exception thrown by getter for property XXX of bean YYY?

2003-03-06 Thread Viggio, Alex
We've had some additions to our production Struts app out for two months,
and today is the first time I have seen this specific error (see below).
I've includded the getter method below. How could an exception be thrown by
this method? It should handle the case where previousUrl is null.

Thanks,
- Alex

*** code ***

public String getPreviousUrl() {
return ((null != previousUrl) ? a href=\ + previousUrl +
\#171;/a : #171;);
}

*** stack ***

javax.servlet.jsp.JspException: Exception thrown by getter for property
calendar.previousUrl of bean meetingWizardForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
g.java:93)
at
_0002fmeetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3._jspService(_0002f
meetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3.java:709)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

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



Re: JspException: Exception thrown by getter for property XXX ofbean YYY?

2003-03-06 Thread Dave Newton
On Thu, 2003-03-06 at 17:18, Viggio, Alex wrote:
 We've had some additions to our production Struts app out for two months,
 and today is the first time I have seen this specific error (see below).
 I've includded the getter method below. How could an exception be thrown by
 this method? It should handle the case where previousUrl is null.

I'd look further up the chain, because even if previousUrl was null it
wouldn't throw anything, it'd just put a null in your href.

Dave

 public String getPreviousUrl() {
 return ((null != previousUrl) ? a href=\ + previousUrl +
 \#171;/a : #171;);
 }
 
 *** stack ***
 
 javax.servlet.jsp.JspException: Exception thrown by getter for property
 calendar.previousUrl of bean meetingWizardForm
   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
   at
 org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
   at
 org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
 g.java:93)
[...]


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



RE: JspException: Exception thrown by getter for property XXX of bean YYY?

2003-03-06 Thread Chen, Gin
look further down the trace.
there's a line that says root cause.
the exception after that is your true error.
-Tim

-Original Message-
From: Viggio, Alex [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 5:19 PM
To: 'Struts Users Mailing List'
Subject: JspException: Exception thrown by getter for property XXX of
bean YYY?


We've had some additions to our production Struts app out for two months,
and today is the first time I have seen this specific error (see below).
I've includded the getter method below. How could an exception be thrown by
this method? It should handle the case where previousUrl is null.

Thanks,
- Alex

*** code ***

public String getPreviousUrl() {
return ((null != previousUrl) ? a href=\ + previousUrl +
\#171;/a : #171;);
}

*** stack ***

javax.servlet.jsp.JspException: Exception thrown by getter for property
calendar.previousUrl of bean meetingWizardForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
g.java:93)
at
_0002fmeetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3._jspService(_0002f
meetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3.java:709)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

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

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



RE: JspException: Exception thrown by getter for property XXX of bean YYY?

2003-03-06 Thread Viggio, Alex
Thanks for the responses. I'm obviously missing some basic JSP debugging
skills ;) Although I've been working on a 50% Struts app for a year+ (i.e.
tons of scriptlet code in JSPs), I've only just started using Struts
properly with ActionForm's and taglibs so I'm still a noob when it comes to
debugging JSPs. 

When you say, look further down the trace, do you mean the stack trace I
forwarded in my posting or some other stack dump? I don't see anything
labelled root cause in that trace.

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 3:35 PM
To: 'Struts Users Mailing List'
Subject: RE: JspException: Exception thrown by getter for property XXX
of bean YYY?


look further down the trace.
there's a line that says root cause.
the exception after that is your true error.
-Tim

-Original Message-
From: Viggio, Alex [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 5:19 PM
To: 'Struts Users Mailing List'
Subject: JspException: Exception thrown by getter for property XXX of
bean YYY?


We've had some additions to our production Struts app out for two months,
and today is the first time I have seen this specific error (see below).
I've includded the getter method below. How could an exception be thrown by
this method? It should handle the case where previousUrl is null.

Thanks,
- Alex

*** code ***

public String getPreviousUrl() {
return ((null != previousUrl) ? a href=\ + previousUrl +
\#171;/a : #171;);
}

*** stack ***

javax.servlet.jsp.JspException: Exception thrown by getter for property
calendar.previousUrl of bean meetingWizardForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
g.java:93)
at
_0002fmeetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3._jspService(_0002f
meetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3.java:709)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

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

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

struts-example JspException using form-bean

2003-01-30 Thread Daniel E. Morrison
Hello-

Running struts 1.1-3b struts-example.

The struts-config.xml is configured to use DynaValidatorForm by default 
- which works fine.

However, when I switch to the form-bean:

form-bean name=logonForm 
type=org.apache.struts.webapp.example.LogonForm/

I get the following error:

, root cause: javax.servlet.jsp.JspException
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:600)
 at _jsps._logon_jsp._jspService(_logon_jsp.java:164)

I've spent days trying to figure out how to get a 'normal' form-bean to 
work. Studied the books, searched archives, etc.

The sample LogonForm.java looks fine and all the configuration looks fine.

Does form-bean still work? What would cause this to fail?

Thanks in advance!!
Dan



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



JspException form-bean in virtual server

2003-01-30 Thread Daniel E. Morrison
Hello-

struts 1.1-3b, iPlanet Web Server 6.0 sp5,

Using virtual server, I get:
, root cause: javax.servlet.jsp.JspException
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:600)
 at _jsps._logon_jsp._jspService(_logon_jsp.java:164)

Has anyone ever gotten a form-bean to work with iPlanet??

Thanks,
Dan


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




JSPException: ActionMappings or ActionFormBeans collection

2002-08-13 Thread Chilukuri, Pratap N Mr USAREC


   I am using struts for a while and am facing problem when i make changes
to action class and i refresh my webapp and run then I get 
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) 
at /LoginForm.jsp._jspService(/LoginForm.jsp.java:69) (JSP page line 6) 

Just want to check if you have fixed this problem. Any help is greatly
appreciated..




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




JSPException: ActionMappings or ActionFormBeans collection

2002-04-21 Thread Shawn Catoe

I am getting the following error:
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at /LoginForm.jsp._jspService(/LoginForm.jsp.java:69) (JSP page line 6)

I have the struts.jar in the WEB-INF/lib dir.  I have attached snippets from
my web.xml, LoginForm.jsp and struts-config.xml file to reference.

JSP
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
!-- Login Form Begin --
html:form action=/login
table cellpadding=2 cellspacing=0 border=0 align=center width=95%
bgcolor=#FF

WEB.XML
  servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value0/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
  !-- Standard Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.action/url-pattern
  /servlet-mapping

STRUTS CONFIG
form-bean name=loginForm type=recipe.forms.LoginForm/
!-- Process a login. --
actionpath=/login
   type=recipe.actions.LoginAction
   name=loginForm
   scope=request
   input=/Index.jsp
/action

Any thoughts on this?

Shawn Catoe

I'm a kid whos got alot of problems and if I throw a brick maybe that brick
will go and solve 'em


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




RE: Resin JSPException with Template Taglib

2002-04-17 Thread Robert Parker

Members Equity Email System

I ended up swapping over to the Tiles taglib rather than Template. All works
fine now!

regards

Rob


MEMBERS EQUITY PTY LTD ABN 56 070 887 679

This email and any attachments are confidential. If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this e-mail or any attachments. If you have
received this email in error, please tell us immediately by return email
and delete this e-mail and any attachments.

This message should not be removed.



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


Resin JSPException with Template Taglib

2002-04-15 Thread Robert Parker

Members Equity Email System
I'm trying to get Struts 1.02 working with Resin 2.1.0.

I have an app which works fine under Tomcat, but throws a JSPException under
Resin. The stacktrace shows the error occurs in the doEndTag method. Is this
a known problem? Are there any work arounds?

Thanks

Rob


MEMBERS EQUITY PTY LTD ABN 56 070 887 679

This email and any attachments are confidential. If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this e-mail or any attachments. If you have
received this email in error, please tell us immediately by return email
and delete this e-mail and any attachments.

This message should not be removed.



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


RE: Need help with JspException: Missing message for key login.ti tle

2002-03-17 Thread Jesse Alexander (KADA 12)

not necessarily. make sure that you have your applications classes and struts 
available within one class-loader. Either use the web-application classloader
(WEB-INF/lib, WEB-INF/classes and maybe other dirs configurable) or use
the system-classloader (eg. under wls, jrun) or the shared classloader under
Tomcat.

Or modify the struts-code exchanging every forName(className) with
forName(className,true,Thred.currentThread().getContextClassLoader())
Then you can have the classes in different class-loaders...

hth
Alexander

-Original Message-
From: keithBacon [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 13. März 2002 14:51
To: Struts Users Mailing List
Subject: Re: Need help with JspException: Missing message for key
login.title


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


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


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

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

2002-03-13 Thread lindsay . hamoudi

Hi everyone,

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

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

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

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


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

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


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

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


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

Many thanks for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

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


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




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




Re: Need help with JspException: Missing message for keylogin.title

2002-03-13 Thread Alok Kumar

YOu should put one more line in Applicationproperties file that is 
login.title=some text ouyt here

Alok

- Original Message -
From: [EMAIL PROTECTED]
Date: Wednesday, March 13, 2002 4:24 pm
Subject: Need help with JspException: Missing message for key 
login.title

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



**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



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


Re: Need help with JspException: Missing message for keylogin.title

2002-03-13 Thread MARK NICHOLS

Lindsay - 

You don't say what IDE you are using. I'm also new to struts and I'm using WebSphere 
Application Developer 4.0. WSAD has *two* copies of the 
ApplicationResources.properties file. One under the applicationRoot/source folder 
and one under the applicationRoot/webApplication/WEB-INF/classes folder. For most of 
a day I made changes to the .../classes version only to discover it was overlaid by 
the .../source copy when I deployed the application. D'oh!

I guess I'm saying make sure you are working with the right copy of the .properties 
file.

/\/\ark


___
- mark h. nichols
- dhsv022 at dhs dot state dot il dot us 

The best laid plans o'mice and men gang aft aglay...
-Robert Burns

 [EMAIL PROTECTED] 03/13/02 04:54AM 
Hi everyone,

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

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

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

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


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

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


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

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


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

Many thanks for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

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


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




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



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




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

2002-03-13 Thread keithBacon

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


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


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

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

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




RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi

Thanks for the suggestions, but still no change.  I am using Tomcat-3.3 with
Struts-1.0.2 on Windows-2000 Pro.

Struts.jar is no longer in my system classpath and is only in web-inf/lib
directory of my webapp.  I have restarted the container, but still the same
story.

Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
overrides the system classpath anyway does it not?

 -Original Message-
From:   keithBacon [mailto:[EMAIL PROTECTED]] 
Sent:   13 March 2002 13:51
To: Struts Users Mailing List
Subject:Re: Need help with JspException: Missing message for key
login.title

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


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


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

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

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread keithBacon

1 - does anything get data from ApplicationResources successfully?
2 - Try rename struts.jar on web-inf/lib  re-start (just to prove there is no
other version - or even unzipped struts class files somewhere in the class
pth).
3 - reboot if on windows. (you have to it's traditional  really does produce a
miracle sometimes!).
4 - I am clutching at straws now!!

--- [EMAIL PROTECTED] wrote:
 Thanks for the suggestions, but still no change.  I am using Tomcat-3.3 with
 Struts-1.0.2 on Windows-2000 Pro.
 
 Struts.jar is no longer in my system classpath and is only in web-inf/lib
 directory of my webapp.  I have restarted the container, but still the same
 story.
 
 Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
 overrides the system classpath anyway does it not?
 
  -Original Message-
 From: keithBacon [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 13:51
 To:   Struts Users Mailing List
 Subject:  Re: Need help with JspException: Missing message for key
 login.title
 
 not sure but might be one of those where your struts.jar is in the wrong
 place.
 Make sure it is in your web app's WEB-INF/lib  nowhere else where the
 server
 could find it (ie. not on your system or server classpath).
 
 
 --- Alok Kumar [EMAIL PROTECTED] wrote:
  YOu should put one more line in Applicationproperties file that is 
  login.title=some text ouyt here
  
  Alok
  
  - Original Message -
  From: [EMAIL PROTECTED]
  Date: Wednesday, March 13, 2002 4:24 pm
  Subject: Need help with JspException: Missing message for key 
  login.title
  
   Hi everyone,
   
   I've just began using Struts this week and it seems very useful, 
   but I am
   totally lost for ideas when it comes to this exception:
   
   Exception in R( /struts-SACT + /login.jsp + null) -
   javax.servlet.ServletException: Missing message for key login.title
   
   I have placed my ApplicationResources.properties in the /classes 
   directoryand here's the relevant part of web.xml:
   
   servlet
servlet-nameaction/servlet-name
servlet-
   classorg.apache.struts.action.ActionServlet/servlet-class
init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
/init-param
.
   
   
   Here's my ApplicationResources.properties (it is very simple at 
   present -
   which makes this error all the more annoying):
   
   error.username.required=Username is required
   error.password.required=Password is required
   error.database.unknown=Sorry, an unknown database error occurred
   errors.footer=/ulbr
   errors.header=h2font color=redValidation 
   Error/font/h2You must
   correct the following error(s) before proceeding:ul
   login.title=SME Agent Creation Tool - User Login
   prompt.login.username=Username
   prompt.login.password=Password
   
   
   And here's a part of my login.jsp:
   
   %@ page language=java %
   %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
   %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
   html:html
   head
   titlebean:message key=login.title//title 
   
   
   I heard that this is a common problem and that I should look at 
   the mailing
   list archive, but I find no help there at all.
   
   Many thanks for any input.
   
   Lindsay
   
   
   
   Lindsay Hamoudi
   Web Application Developer
   BTexact Technologies
   
   e-mail: [EMAIL PROTECTED]
   tel: (+44) (0)1473 605491
   mobile: (+44) (0)7985 114296
   
   Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
   IpswichIP5 3RE, UK
   
   
  BTexact Technologies is a trademark of British Telecommunications
   plc
  Registered office: 81 Newgate Street London EC1A 7AJ 
  Registered in England no. 180 
  This electronic message contains information from British
   Telecommunications plc which may be privileged or confidential. The
   information is intended to be for the use of the individual(s) or 
   entitynamed above. If you are not the intended recipient be aware 
   that any
   disclosure, copying, distribution or use of the contents of this 
   informationis prohibited. If you have received this electronic 
   message in error, please
   notify us by telephone or email (to the numbers or address above)
   immediately.
   
   
   
   
   --
   To unsubscribe, e-mail:   mailto:struts-user-
   [EMAIL PROTECTED]For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
   
  
   **Disclaimer

  
  
  Information contained in this E-MAIL being proprietary to Wipro Limited
  is 'privileged' and 'confidential' and intended for use only by the
  individual or entity to which it is addressed. You are notified that any
  use, copying or dissemination of the information contained in the E-MAIL
  in any manner whatsoever is strictly prohibited

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi

Thanks but I've given up!

I don't care much for i18n at present so have abandoned the .properties file
and resorted to hardcoding.  Mind you - I do like how you can set the
errors.header and footer.  I will need that in the future I think.  But I
now have more problems (which I wont bother you with!).  

I'm going to make a fresh start and take each problem as it arises.  Cos
there's lots of stuff that I cant get my head around with any confidence -
like the struts-config.xml file!

Cheers.  You can release those straws now  =OD

Lindsay
 -Original Message-
From:   keithBacon [mailto:[EMAIL PROTECTED]] 
Sent:   13 March 2002 16:17
To: Struts Users Mailing List
Subject:RE: Need help with JspException: Missing message for key
login.ti tle

1 - does anything get data from ApplicationResources successfully?
2 - Try rename struts.jar on web-inf/lib  re-start (just to prove there is
no
other version - or even unzipped struts class files somewhere in the class
pth).
3 - reboot if on windows. (you have to it's traditional  really does
produce a
miracle sometimes!).
4 - I am clutching at straws now!!

--- [EMAIL PROTECTED] wrote:
 Thanks for the suggestions, but still no change.  I am using Tomcat-3.3
with
 Struts-1.0.2 on Windows-2000 Pro.
 
 Struts.jar is no longer in my system classpath and is only in web-inf/lib
 directory of my webapp.  I have restarted the container, but still the
same
 story.
 
 Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
 overrides the system classpath anyway does it not?
 
  -Original Message-
 From: keithBacon [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 13:51
 To:   Struts Users Mailing List
 Subject:  Re: Need help with JspException: Missing message for key
 login.title
 
 not sure but might be one of those where your struts.jar is in the wrong
 place.
 Make sure it is in your web app's WEB-INF/lib  nowhere else where the
 server
 could find it (ie. not on your system or server classpath).
 
 
 --- Alok Kumar [EMAIL PROTECTED] wrote:
  YOu should put one more line in Applicationproperties file that is 
  login.title=some text ouyt here
  
  Alok
  
  - Original Message -
  From: [EMAIL PROTECTED]
  Date: Wednesday, March 13, 2002 4:24 pm
  Subject: Need help with JspException: Missing message for key 
  login.title
  
   Hi everyone,
   
   I've just began using Struts this week and it seems very useful, 
   but I am
   totally lost for ideas when it comes to this exception:
   
   Exception in R( /struts-SACT + /login.jsp + null) -
   javax.servlet.ServletException: Missing message for key login.title
   
   I have placed my ApplicationResources.properties in the /classes 
   directoryand here's the relevant part of web.xml:
   
   servlet
servlet-nameaction/servlet-name
servlet-
   classorg.apache.struts.action.ActionServlet/servlet-class
init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
/init-param
.
   
   
   Here's my ApplicationResources.properties (it is very simple at 
   present -
   which makes this error all the more annoying):
   
   error.username.required=Username is required
   error.password.required=Password is required
   error.database.unknown=Sorry, an unknown database error occurred
   errors.footer=/ulbr
   errors.header=h2font color=redValidation 
   Error/font/h2You must
   correct the following error(s) before proceeding:ul
   login.title=SME Agent Creation Tool - User Login
   prompt.login.username=Username
   prompt.login.password=Password
   
   
   And here's a part of my login.jsp:
   
   %@ page language=java %
   %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
   %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
   html:html
   head
   titlebean:message key=login.title//title 
   
   
   I heard that this is a common problem and that I should look at 
   the mailing
   list archive, but I find no help there at all.
   
   Many thanks for any input.
   
   Lindsay
   
   
   
   Lindsay Hamoudi
   Web Application Developer
   BTexact Technologies
   
   e-mail: [EMAIL PROTECTED]
   tel: (+44) (0)1473 605491
   mobile: (+44) (0)7985 114296
   
   Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
   IpswichIP5 3RE, UK
   
   
  BTexact Technologies is a trademark of British Telecommunications
   plc
  Registered office: 81 Newgate Street London EC1A 7AJ 
  Registered in England no. 180 
  This electronic message contains information from British
   Telecommunications plc which may be privileged or confidential. The
   information is intended to be for the use of the individual(s) or 
   entitynamed above. If you are not the intended recipient be aware 
   that any
   disclosure, copying, distribution or use of the contents of this 
   informationis prohibited. If you have received this electronic 
   message in error, please

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread keithBacon

good attitide - it takes hero to run away from a problem!
It can be hard going learning struts - nothing wrong with reducing your field
of focus for a bit. 

--- [EMAIL PROTECTED] wrote:
 Thanks but I've given up!
 
 I don't care much for i18n at present so have abandoned the .properties file
 and resorted to hardcoding.  Mind you - I do like how you can set the
 errors.header and footer.  I will need that in the future I think.  But I
 now have more problems (which I wont bother you with!).  
 
 I'm going to make a fresh start and take each problem as it arises.  Cos
 there's lots of stuff that I cant get my head around with any confidence -
 like the struts-config.xml file!
 
 Cheers.  You can release those straws now  =OD
 
 Lindsay
  -Original Message-
 From: keithBacon [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 16:17
 To:   Struts Users Mailing List
 Subject:  RE: Need help with JspException: Missing message for key
 login.ti tle
 
 1 - does anything get data from ApplicationResources successfully?
 2 - Try rename struts.jar on web-inf/lib  re-start (just to prove there is
 no
 other version - or even unzipped struts class files somewhere in the class
 pth).
 3 - reboot if on windows. (you have to it's traditional  really does
 produce a
 miracle sometimes!).
 4 - I am clutching at straws now!!
 
 --- [EMAIL PROTECTED] wrote:
  Thanks for the suggestions, but still no change.  I am using Tomcat-3.3
 with
  Struts-1.0.2 on Windows-2000 Pro.
  
  Struts.jar is no longer in my system classpath and is only in web-inf/lib
  directory of my webapp.  I have restarted the container, but still the
 same
  story.
  
  Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
  overrides the system classpath anyway does it not?
  
   -Original Message-
  From:   keithBacon [mailto:[EMAIL PROTECTED]] 
  Sent:   13 March 2002 13:51
  To: Struts Users Mailing List
  Subject:Re: Need help with JspException: Missing message for key
  login.title
  
  not sure but might be one of those where your struts.jar is in the wrong
  place.
  Make sure it is in your web app's WEB-INF/lib  nowhere else where the
  server
  could find it (ie. not on your system or server classpath).
  
  
  --- Alok Kumar [EMAIL PROTECTED] wrote:
   YOu should put one more line in Applicationproperties file that is 
   login.title=some text ouyt here
   
   Alok
   
   - Original Message -
   From: [EMAIL PROTECTED]
   Date: Wednesday, March 13, 2002 4:24 pm
   Subject: Need help with JspException: Missing message for key 
   login.title
   
Hi everyone,

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

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

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

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


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

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


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

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


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

Many thanks for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

e-mail: [EMAIL PROTECTED]
tel: (+44) (0)1473 605491
mobile: (+44) (0)7985 114296

Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
IpswichIP5 3RE, UK


   BTexact Technologies is a trademark of British Telecommunications
plc
   Registered office: 81 Newgate Street London EC1A 7AJ 
   Registered in England no. 180 
   This electronic message contains information from British
Telecommunications plc which may be privileged

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread Galbreath, Mark

Run away! Run away!

-Arthur, King of the Brits

-Original Message-
From: keithBacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 11:45 AM
To: Struts Users Mailing List
Subject: RE: Need help with JspException: Missing message for key
login.ti tle


good attitide - it takes hero to run away from a problem!
It can be hard going learning struts - nothing wrong with reducing your
field
of focus for a bit. 

--- [EMAIL PROTECTED] wrote:
 Thanks but I've given up!
 
 I don't care much for i18n at present so have abandoned the .properties
file
 and resorted to hardcoding.  Mind you - I do like how you can set the
 errors.header and footer.  I will need that in the future I think.  But I
 now have more problems (which I wont bother you with!).  
 
 I'm going to make a fresh start and take each problem as it arises.  Cos
 there's lots of stuff that I cant get my head around with any confidence -
 like the struts-config.xml file!
 
 Cheers.  You can release those straws now  =OD
 
 Lindsay
  -Original Message-
 From: keithBacon [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 16:17
 To:   Struts Users Mailing List
 Subject:  RE: Need help with JspException: Missing message for key
 login.ti tle
 
 1 - does anything get data from ApplicationResources successfully?
 2 - Try rename struts.jar on web-inf/lib  re-start (just to prove there
is
 no
 other version - or even unzipped struts class files somewhere in the class
 pth).
 3 - reboot if on windows. (you have to it's traditional  really does
 produce a
 miracle sometimes!).
 4 - I am clutching at straws now!!
 
 --- [EMAIL PROTECTED] wrote:
  Thanks for the suggestions, but still no change.  I am using Tomcat-3.3
 with
  Struts-1.0.2 on Windows-2000 Pro.
  
  Struts.jar is no longer in my system classpath and is only in
web-inf/lib
  directory of my webapp.  I have restarted the container, but still the
 same
  story.
  
  Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
  overrides the system classpath anyway does it not?
  
   -Original Message-
  From:   keithBacon [mailto:[EMAIL PROTECTED]] 
  Sent:   13 March 2002 13:51
  To: Struts Users Mailing List
  Subject:Re: Need help with JspException: Missing message for key
  login.title
  
  not sure but might be one of those where your struts.jar is in the wrong
  place.
  Make sure it is in your web app's WEB-INF/lib  nowhere else where the
  server
  could find it (ie. not on your system or server classpath).
  
  
  --- Alok Kumar [EMAIL PROTECTED] wrote:
   YOu should put one more line in Applicationproperties file that is 
   login.title=some text ouyt here
   
   Alok
   
   - Original Message -
   From: [EMAIL PROTECTED]
   Date: Wednesday, March 13, 2002 4:24 pm
   Subject: Need help with JspException: Missing message for key 
   login.title
   
Hi everyone,

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

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

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

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


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

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


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

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


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

Many thanks for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

e-mail: [EMAIL PROTECTED]
tel: (+44) (0)1473 605491
mobile: (+44) (0)7985 114296

Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
IpswichIP5 3RE, UK


   BTexact Technologies

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi

Well - I seem to have inadvertently fixed the problem!  I really don't know
what made the difference.  Now for my next problem...

-Original Message-
From:   Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent:   13 March 2002 18:01
To: 'Struts Users Mailing List'
Subject:RE: Need help with JspException: Missing message for key
login.ti tle

Run away! Run away!

-Arthur, King of the Brits

-Original Message-
From: keithBacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 11:45 AM
To: Struts Users Mailing List
Subject: RE: Need help with JspException: Missing message for key
login.ti tle


good attitide - it takes hero to run away from a problem!
It can be hard going learning struts - nothing wrong with reducing your
field
of focus for a bit. 

--- [EMAIL PROTECTED] wrote:
 Thanks but I've given up!
 
 I don't care much for i18n at present so have abandoned the .properties
file
 and resorted to hardcoding.  Mind you - I do like how you can set the
 errors.header and footer.  I will need that in the future I think.  But I
 now have more problems (which I wont bother you with!).  
 
 I'm going to make a fresh start and take each problem as it arises.  Cos
 there's lots of stuff that I cant get my head around with any confidence -
 like the struts-config.xml file!
 
 Cheers.  You can release those straws now  =OD
 
 Lindsay
  -Original Message-
 From: keithBacon [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 16:17
 To:   Struts Users Mailing List
 Subject:  RE: Need help with JspException: Missing message for key
 login.ti tle
 
 1 - does anything get data from ApplicationResources successfully?
 2 - Try rename struts.jar on web-inf/lib  re-start (just to prove there
is
 no
 other version - or even unzipped struts class files somewhere in the class
 pth).
 3 - reboot if on windows. (you have to it's traditional  really does
 produce a
 miracle sometimes!).
 4 - I am clutching at straws now!!
 
 --- [EMAIL PROTECTED] wrote:
  Thanks for the suggestions, but still no change.  I am using Tomcat-3.3
 with
  Struts-1.0.2 on Windows-2000 Pro.
  
  Struts.jar is no longer in my system classpath and is only in
web-inf/lib
  directory of my webapp.  I have restarted the container, but still the
 same
  story.
  
  Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
  overrides the system classpath anyway does it not?
  
   -Original Message-
  From:   keithBacon [mailto:[EMAIL PROTECTED]] 
  Sent:   13 March 2002 13:51
  To: Struts Users Mailing List
  Subject:Re: Need help with JspException: Missing message for key
  login.title
  
  not sure but might be one of those where your struts.jar is in the wrong
  place.
  Make sure it is in your web app's WEB-INF/lib  nowhere else where the
  server
  could find it (ie. not on your system or server classpath).
  
  
  --- Alok Kumar [EMAIL PROTECTED] wrote:
   YOu should put one more line in Applicationproperties file that is 
   login.title=some text ouyt here
   
   Alok
   
   - Original Message -
   From: [EMAIL PROTECTED]
   Date: Wednesday, March 13, 2002 4:24 pm
   Subject: Need help with JspException: Missing message for key 
   login.title
   
Hi everyone,

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

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

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

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


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

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


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

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


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

Many thanks

logic:iterate JspException

2001-09-06 Thread TOMMY



Dear All 
I've got a question and seeking for answers. does 
anyone know what's wrong in the following code.



tommySelectForm- 
 public Collection getUse_list(){ 
  ArrayList aa=new 
ArrayList(); 
aa.add("AAA"); 
aa.add("BBB"); 
aa.add("CCC");  
return aa;  }



tommy_Select.jsp- 


logic:iterate id="ddd" name="tommySelectForm" 
property="use_list"TH 
A HREF="http://www.kimo.com.tw" bean:write name="ddd" 
//A/br 
/TH/logic:iterate


struts-config.xml- 
 action 
path="/tommy_select" 
type="tw.com.bct.online.tommy.TommySelectAction" 
name="tommySelectForm" 
scope="request" 
 
forward 
name="success" 
path="/tommy_Select.jsp"/ /action



Exception- 
Root cause of ServletException javax.servlet.jsp.JspException: Cannot 
find bean ddd in scope null


Thanks
Tommy



RE: logic:iterate JspException

2001-09-06 Thread Steven Leija
Title: Message



Hi Tommy,
In your xml configuration, you 
defined your bean to have the scope of "request", so try adding the scope 
attribute in the iterate tag.

logic:iterate id="ddd" name="tommySelectForm" 
property="use_list" scope="request"TH 
A HREF="http://www.kimo.com.tw" bean:write name="ddd" 
//A/br 
/TH/logic:iterate

Regards,

Steven

  
  -Original Message-From: TOMMY 
  [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 
  9:19 PMTo: [EMAIL PROTECTED]Subject: 
  logic:iterate  JspException
  Dear All 
  I've got a question and seeking for answers. 
  does anyone know what's wrong in the following code.
  
  
  
  tommySelectForm- 
   public Collection getUse_list(){ 
ArrayList aa=new 
  ArrayList(); 
  aa.add("AAA"); 
  aa.add("BBB"); 
  aa.add("CCC");  
  return aa;  }
  
  
  
  tommy_Select.jsp- 
  
  
  logic:iterate id="ddd" name="tommySelectForm" 
  property="use_list"TH 
  A HREF="http://www.kimo.com.tw" bean:write name="ddd" 
  //A/br 
  /TH/logic:iterate
  
  
  struts-config.xml- 
   action 
  path="/tommy_select" 
  type="tw.com.bct.online.tommy.TommySelectAction" 
  name="tommySelectForm" 
  scope="request" 
   
  forward 
  name="success" 
  path="/tommy_Select.jsp"/ 
  /action
  
  
  
  Exception- 
  Root cause of ServletException javax.servlet.jsp.JspException: Cannot 
  find bean ddd in scope null
  
  
  Thanks
  Tommy
  


No struts trace if JspException is detected by the errorPage directive..

2001-07-03 Thread Suriyanarayanan, Senthil Kumar

Hello,
My errorpage.jsp (which is mentioned as the errorPage directive on
all the jsps) does not show any struts trace if an JspException is thrown by
struts layer..

If I remove the errorpage directive on the problematic jsp, the
stack trace on the console is ..

javax.servlet.jsp.JspException: Exception creating bean of class
com.xyz.MyForm: java.lang.ClassNotFoundException: com.xyz.MyForm
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568)
at
jsp_servlet._registration._registrationtermsandcondition._jspService(
_registrationtermsandcondition.java:137)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:157)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionSer
vlet.java:1758)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:159
5)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:1265)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

-
My errorpage.jsp is coded as ..

%@ page language=java 
isErrorPage=true %


%@ taglib uri=struts-html.tld prefix=html %
%@ taglib uri=struts-bean.tld prefix=bean %



html:html  
titleError Page /title
body
Uncaught Exceptions makes this page show up!!!
% Throwable strutsException = (Throwable) request.getAttribute
(org.apache.struts.action.EXCEPTION); %
% if ( strutsException != null ) 
{%
pStruts trace was: brpre
%=getStackTraceAsString(strutsException)%b
%} 
else 
{% pNo Struts trace
%}%

%! String getStackTraceAsString(Throwable e) 
{ 
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
e.printStackTrace(new PrintStream(ostr));
return(ostr.toString()); 
} 
% 

/body
/html:html


---

How do I capture/display the above exception either in the stack trace or
the errorpage.jsp?

Thanks
Senthil Kumar.S
 
**
The Information transmitted herewith is sensitive information intended only
for use to the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon, this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.



JspException

2001-02-10 Thread Allamsetty, Venkata


Hi,

I am trying to get my first Struts application work. 
I have created defaultTime.jsp which contains a text input for time,
DefaultTimeForm , EditDefaultTimeAction and SaveDefaultTimeAction classes.
Defined web.xml and struts-config.xml and deployed them appropriately.

But when I try loading it, I get Error 500.
and the message is 


Venkata Allamsetty




RE: JspException

2001-02-10 Thread Allamsetty, Venkata


 Hi,
 
 I am trying to get my first Struts application work. 
 I have created defaultTime.jsp which contains a text input for time,
 DefaultTimeForm , EditDefaultTimeAction and SaveDefaultTimeAction classes.
 Defined web.xml and struts-config.xml and deployed them appropriately.
 
 But when I try loading it, I get Error 500.
 and the message is 
 
 javax.servlet.jsp.JspException: No bean found under attribute key
 defaultTimeActionForm
 at
 org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.jav
 a:214)
 at
 org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
 at
 org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTa
 gBase.java:218)
 at jsp_servlet._defaulttime._jspService(_defaulttime.java:85)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 
If I try loading the editDefaultAction.do directly, I get the
follwing error.

javax.servlet.jsp.JspException: Exception accessing property action
for bean defaultTimeActionForm: java.lang.NoSuchMethodException: Unknown
property 'action'
at
org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:
234)
at
org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
at
org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagB
ase.java:218)
at
jsp_servlet._defaulttime._jspService(_defaulttime.java:85)


Any hints or suggestions?

thanks

 Venkata Allamsetty
 



Re: JspException

2001-02-10 Thread Craig R. McClanahan

"Allamsetty, Venkata" wrote:

  Hi,
 
  I am trying to get my first Struts application work.
  I have created defaultTime.jsp which contains a text input for time,
  DefaultTimeForm , EditDefaultTimeAction and SaveDefaultTimeAction classes.
  Defined web.xml and struts-config.xml and deployed them appropriately.


You are not showing us the JSP page or struts-config.xml file that is running,
but I suspect the problem is one of the following:

* You are creating the bean in one scope, but looking for it in a different
scope.

* You are creating the bean in request scope, and looking for it on a
  later request (request scope beans only survive through the current
  request).


 
  But when I try loading it, I get Error 500.
  and the message is
 
  javax.servlet.jsp.JspException: No bean found under attribute key
  defaultTimeActionForm
  at
  org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.jav
  a:214)
  at
  org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
  at
  org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTa
  gBase.java:218)
  at jsp_servlet._defaulttime._jspService(_defaulttime.java:85)
  at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 
 If I try loading the editDefaultAction.do directly, I get the
 follwing error.

 javax.servlet.jsp.JspException: Exception accessing property action
 for bean defaultTimeActionForm: java.lang.NoSuchMethodException: Unknown
 property 'action'

If your bean includes property="action", the tag is going to try to call the
getAction() method on whatever bean was selected by the "name" (and optional
"scope") attributes.  Does the bean have such a method?


 at
 org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:
 234)
 at
 org.apache.struts.taglib.logic.EqualTag.condition(EqualTag.java:90)
 at
 org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagB
 ase.java:218)
 at
 jsp_servlet._defaulttime._jspService(_defaulttime.java:85)

 Any hints or suggestions?

 thanks

  Venkata Allamsetty
 

Craig





JspException: Must specify type attribute if name is specified

2001-02-09 Thread Neal Kaiser

I just upgraded to last nights build and get the following error:

javax.servlet.jsp.JspException: Must specify type attribute if name is
specified   at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:669)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)   at
/getstarted/regstep1.jsp._jspService(/getstarted/regstep1.jsp.java:84) (JSP
page line 47)

This is the line in the .jsp it is complaining about:

form:form name="registrationForm" action="regstep1.do" 

And this is what I have in struts-config.xml:

   form-bean  name="registrationForm"
type="com.mas.ebiz.asp.register.RegistrationForm"/

and


 !-- Seller Registration - Selection of plan --
action   path="/regstep1"
  type="com.mas.ebiz.asp.register.SaveRegistrationAction"
  name="registrationForm"
  scope="session"
  validate="true"
  forward name="success"  path="/getstarted/regstep2.jsp"/
  forward name="failure"  path="/getstarted/regstep1.jsp"/
/action


I do seem to be passing the type, so I'm not sure why I get an error?

Any pointers for places for me to look?

When I upgraded, I updated the struts.jar and copied in the latest .tlds.

Thanks, Neal




Re: JspException: Must specify type attribute if name is specified

2001-02-09 Thread Craig R. McClanahan

Neal Kaiser wrote:

 I just upgraded to last nights build and get the following error:

 javax.servlet.jsp.JspException: Must specify type attribute if name is
 specified   at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:669)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)   at
 /getstarted/regstep1.jsp._jspService(/getstarted/regstep1.jsp.java:84) (JSP
 page line 47)

 This is the line in the .jsp it is complaining about:

 form:form name="registrationForm" action="regstep1.do" 


If you specify name here, you must also specify type.

If you change this to:

form:form action="regstep1.do"

The tag will be smart enough to figure out what form bean name you want, without
having to specify it both here and in struts-config.xml.

By the way, you should switch to using the "html" library rather than "form".  The
old name will still work in Struts 1.0 (and the tags are all the same), but it is
deprecated.

Craig