Re: Help ---- Error: can not find bean messages in any scope

2004-09-07 Thread Martin Gainty
Lixin:

Where are your taglib descriptors ?

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

HTH,

Martin-

- Original Message - 
From: "lixin chu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 07, 2004 3:34 AM
Subject: Help ---- Error: can not find bean messages in any scope


> Hi,
> I got this error log 
> ~~
> 07.09.04 15:21:34 [http8080-Processor24] ERROR
> org.apache.struts.taglib.tiles.InsertTag -
> ServletException in '/WEB-INF/tiles/home.jsp': Cannot
> find bean messages in any scope
> javax.servlet.ServletException: Cannot find bean
> messages in any scope
> ..
> ~~
> 
> Here is part of the home.jsp file:
> --
> Define a Template
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ..
> ---
> 
> In the Action class, I have these:
> ~~
> ActionMessages messages = getMessages(request);
> messages.add(ActionMessages.GLOBAL_MESSAGE, new
> ActionMessage ("Org convert error"));
> saveMessages (request, messages);
> 
> ~~~
> the above code is called only when there is some
> error. 
> 
> what's wrong ?
> 
> thanks
> li xin
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> 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]



Help ---- Error: can not find bean messages in any scope

2004-09-07 Thread lixin chu
Hi,
I got this error log 
~~
07.09.04 15:21:34 [http8080-Processor24] ERROR
org.apache.struts.taglib.tiles.InsertTag -
ServletException in '/WEB-INF/tiles/home.jsp': Cannot
find bean messages in any scope
javax.servlet.ServletException: Cannot find bean
messages in any scope
..
~~

Here is part of the home.jsp file:
--
Define a Template



















..
---

In the Action class, I have these:
~~
ActionMessages messages = getMessages(request);
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage ("Org convert error"));
saveMessages (request, messages);

~~~
the above code is called only when there is some
error. 

what's wrong ?

thanks
li xin



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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