Re: html:messages/ not displaying messages

2003-03-13 Thread Ian Hunter
Just to see if this gets you anywhere, do

messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
(message.login.confirmation));
saveMessages(request, response);

then use

html:messages id=message message=true
bean:write name=message/br
/html:messages


- Original Message -
From: louis majanja [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 1:03 PM
Subject: html:messages/ not displaying messages


 i have this in my actionForm:
 ActionMessages messages = new ActionMessages();

messages.add(message,
   new ActionMessage(message.login.confirmation));
   saveMessage(request,messages);

 in my jsp i have

 html:messages /

 it doesn't work, i have tried the following options which don't work
 either

 html:messages message=true/

 html:messages id=msg property=messages message=true
   c:out value=${msg}/
 /html:messages

 i don't get an error nor do i get any output
 im using struts release candidate 1.1

 -
 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: html:messages/ not displaying messages

2003-03-13 Thread Sri Sankaran

snip/

 html:messages id=msg property=messages message=true
   c:out value=${msg}/
 /html:messages
 
 

Can you do that?  Don't you have to use html-el:messages if you want to use c:out?  
Have you tried 

html:messages id=msg property=messages message=true
  bean:write name=msg/
/html:messages

Sri

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



RE: html:messages/ not displaying messages

2003-03-13 Thread Zheng, Gang
Check your forward definition and make sure you do not use redirect. You
should have something like:

forward name=foo path=/foo.jsp redirect=false /

Hope this helps.

- GZ



-Original Message-
From: louis majanja [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 1:04 PM
To: Struts Users Mailing List
Subject: html:messages/ not displaying messages


i have this in my actionForm:
ActionMessages messages = new ActionMessages();

   messages.add(message,
  new ActionMessage(message.login.confirmation));
  saveMessage(request,messages);

in my jsp i have

html:messages /

it doesn't work, i have tried the following options which don't work either

html:messages message=true/

html:messages id=msg property=messages message=true
  c:out value=${msg}/
/html:messages

i don't get an error nor do i get any output 
im using struts release candidate 1.1

-
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: html:messages/ not displaying messages

2003-03-13 Thread louis majanja
that didn't work

On Thu, 2003-03-13 at 10:18, Ian Hunter wrote:
 Just to see if this gets you anywhere, do
 
 messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
 (message.login.confirmation));
 saveMessages(request, response);
 
 then use
 
 html:messages id=message message=true
 bean:write name=message/br
 /html:messages
 
 
 - Original Message -
 From: louis majanja [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 1:03 PM
 Subject: html:messages/ not displaying messages
 
 
  i have this in my actionForm:
  ActionMessages messages = new ActionMessages();
 
 messages.add(message,
new ActionMessage(message.login.confirmation));
saveMessage(request,messages);
 
  in my jsp i have
 
  html:messages /
 
  it doesn't work, i have tried the following options which don't work
  either
 
  html:messages message=true/
 
  html:messages id=msg property=messages message=true
c:out value=${msg}/
  /html:messages
 
  i don't get an error nor do i get any output
  im using struts release candidate 1.1
 
  -
  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: html:messages/ not displaying messages

2003-03-13 Thread Ian Hunter
Are you redirecting or forwarding to your JSP from that Action?
- Original Message - 
From: louis majanja [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 1:44 PM
Subject: Re: html:messages/ not displaying messages


 that didn't work
 
 On Thu, 2003-03-13 at 10:18, Ian Hunter wrote:
  Just to see if this gets you anywhere, do
  
  messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
  (message.login.confirmation));
  saveMessages(request, response);
  
  then use
  
  html:messages id=message message=true
  bean:write name=message/br
  /html:messages
  
  
  - Original Message -
  From: louis majanja [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, March 13, 2003 1:03 PM
  Subject: html:messages/ not displaying messages
  
  
   i have this in my actionForm:
   ActionMessages messages = new ActionMessages();
  
  messages.add(message,
 new ActionMessage(message.login.confirmation));
 saveMessage(request,messages);
  
   in my jsp i have
  
   html:messages /
  
   it doesn't work, i have tried the following options which don't work
   either
  
   html:messages message=true/
  
   html:messages id=msg property=messages message=true
 c:out value=${msg}/
   /html:messages
  
   i don't get an error nor do i get any output
   im using struts release candidate 1.1
  
   -
   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: html:messages/ not displaying messages

2003-03-13 Thread louis majanja
i am forwarding

On Thu, 2003-03-13 at 11:14, Ian Hunter wrote:
 Are you redirecting or forwarding to your JSP from that Action?
 - Original Message - 
 From: louis majanja [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 1:44 PM
 Subject: Re: html:messages/ not displaying messages
 
 
  that didn't work
  
  On Thu, 2003-03-13 at 10:18, Ian Hunter wrote:
   Just to see if this gets you anywhere, do
   
   messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
   (message.login.confirmation));
   saveMessages(request, response);
   
   then use
   
   html:messages id=message message=true
   bean:write name=message/br
   /html:messages
   
   
   - Original Message -
   From: louis majanja [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, March 13, 2003 1:03 PM
   Subject: html:messages/ not displaying messages
   
   
i have this in my actionForm:
ActionMessages messages = new ActionMessages();
   
   messages.add(message,
  new ActionMessage(message.login.confirmation));
  saveMessage(request,messages);
   
in my jsp i have
   
html:messages /
   
it doesn't work, i have tried the following options which don't work
either
   
html:messages message=true/
   
html:messages id=msg property=messages message=true
  c:out value=${msg}/
/html:messages
   
i don't get an error nor do i get any output
im using struts release candidate 1.1
   
-
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]
 

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



RE: html:messages/ not displaying messages

2003-03-13 Thread Chen, Gin
html:messages id=msg message=true
name=org.apache.struts.action.GLOBAL_MESSAGE
c:out value=${msg} escapeXml=false/
/html:messages

-Tim

-Original Message-
From: louis majanja [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 2:35 PM
To: Struts Users Mailing List
Subject: Re: html:messages/ not displaying messages


i am forwarding

On Thu, 2003-03-13 at 11:14, Ian Hunter wrote:
 Are you redirecting or forwarding to your JSP from that Action?
 - Original Message - 
 From: louis majanja [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 1:44 PM
 Subject: Re: html:messages/ not displaying messages
 
 
  that didn't work
  
  On Thu, 2003-03-13 at 10:18, Ian Hunter wrote:
   Just to see if this gets you anywhere, do
   
   messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
   (message.login.confirmation));
   saveMessages(request, response);
   
   then use
   
   html:messages id=message message=true
   bean:write name=message/br
   /html:messages
   
   
   - Original Message -
   From: louis majanja [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, March 13, 2003 1:03 PM
   Subject: html:messages/ not displaying messages
   
   
i have this in my actionForm:
ActionMessages messages = new ActionMessages();
   
   messages.add(message,
  new ActionMessage(message.login.confirmation));
  saveMessage(request,messages);
   
in my jsp i have
   
html:messages /
   
it doesn't work, i have tried the following options which don't work
either
   
html:messages message=true/
   
html:messages id=msg property=messages message=true
  c:out value=${msg}/
/html:messages
   
i don't get an error nor do i get any output
im using struts release candidate 1.1
   
   
-
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]
 

-
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: html:messages/ not displaying messages

2003-03-13 Thread Ian Hunter
I'm stumped.  Are you using something like Sun ONE where you can trace
through your code and examine variables?  I would just suggest following
along through everything, from the Action to the JSP, seeing what happens to
the message resources.  It looks like it should work to me... :(

- Original Message -
From: louis majanja [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 2:35 PM
Subject: Re: html:messages/ not displaying messages


 i am forwarding

 On Thu, 2003-03-13 at 11:14, Ian Hunter wrote:
  Are you redirecting or forwarding to your JSP from that Action?
  - Original Message -
  From: louis majanja [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, March 13, 2003 1:44 PM
  Subject: Re: html:messages/ not displaying messages
 
 
   that didn't work
  
   On Thu, 2003-03-13 at 10:18, Ian Hunter wrote:
Just to see if this gets you anywhere, do
   
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage
(message.login.confirmation));
saveMessages(request, response);
   
then use
   
html:messages id=message message=true
bean:write name=message/br
/html:messages
   
   
- Original Message -
From: louis majanja [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 1:03 PM
Subject: html:messages/ not displaying messages
   
   
 i have this in my actionForm:
 ActionMessages messages = new ActionMessages();

messages.add(message,
   new
ActionMessage(message.login.confirmation));
   saveMessage(request,messages);

 in my jsp i have

 html:messages /

 it doesn't work, i have tried the following options which don't
work
 either

 html:messages message=true/

 html:messages id=msg property=messages message=true
   c:out value=${msg}/
 /html:messages

 i don't get an error nor do i get any output
 im using struts release candidate 1.1

   
 -
 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]
 

 -
 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: html:messages/ not displaying messages

2003-03-13 Thread Rick Reumann
 

This sounds silly, but I can't tell you how many times I forgotten to
include the taglib on the page and wondered why things wouldn't
print:).., Have you checked that you have the bean tag lib defined
on your page?

%@ taglib uri=/WEB-INF/struts-bean-el.tld prefix=bean% 
(Your location maybe different)
 
-- 
Rick Reumann

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