RE: ActionMessages

2003-10-16 Thread Matt Toni Willis
Would you be so kind as to send me some example code in which you
utilize ActionMessages and the html:message custom tag?

I'm having a little difficulty getting mine to work.

Thanks,

Matt

[EMAIL PROTECTED]

-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 2:13 PM
To: Struts Users Mailing List
Subject: ActionMessages

Today I discovered ActionMessages!

I had developed my own bean for doing the same thing in Struts 1.0, but
now
that ActionMessages are available with Struts 1.1, I have less code to
develop and maintain.

Thanks guys!

Wiebe de Jong
http://frontierj.blogspot.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]



RE: ActionMessages

2003-10-16 Thread Wiebe de Jong
I found some nice examples online. 

Check today's blog entry at http://frontierj.blogspot.com

Wiebe de Jong
http://frontierj.blogspot.com


-Original Message-
From: Matt  Toni Willis [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 7:26 PM
To: 'Struts Users Mailing List'
Subject: RE: ActionMessages

Would you be so kind as to send me some example code in which you
utilize ActionMessages and the html:message custom tag?

I'm having a little difficulty getting mine to work.

Thanks,

Matt

[EMAIL PROTECTED]

-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 2:13 PM
To: Struts Users Mailing List
Subject: ActionMessages

Today I discovered ActionMessages!

I had developed my own bean for doing the same thing in Struts 1.0, but
now
that ActionMessages are available with Struts 1.1, I have less code to
develop and maintain.

Thanks guys!

Wiebe de Jong
http://frontierj.blogspot.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]


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



RE: ActionMessages problem

2003-01-21 Thread Pani, Gourav
logic:messagesPresent message=true
  html:messages id=message message=true
bean:write name=message/
  /html:messages
/logic:messagesPresent

-Original Message-
From: Vinay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 12:32 PM
To: Struts Users Mailing List
Subject: ActionMessages problem


Hi all,
I have a very peculiar problem with ActionMessages. I am trying to
display to JSP successful action messages using ActionMessages.I am able to
display error messages using ActionErrors in JSP.How can I display or use
ActionMessages in JSP.


I use the following code in my Action Class

String message = ;
  ActionErrors errors = new ActionErrors();
  ActionMessages messages=new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage(global.message.general,action successful));
saveMessages(req,messages);


Thanks in advance
help appreciated

Vinay



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




Re: ActionMessages problem

2003-01-21 Thread Vinay
Thanks a Lot Gaurav ,that worked
- Original Message -
From: Pani, Gourav [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 12:35 PM
Subject: RE: ActionMessages problem


 logic:messagesPresent message=true
   html:messages id=message message=true
 bean:write name=message/
   /html:messages
 /logic:messagesPresent

 -Original Message-
 From: Vinay [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 21, 2003 12:32 PM
 To: Struts Users Mailing List
 Subject: ActionMessages problem


 Hi all,
 I have a very peculiar problem with ActionMessages. I am trying to
 display to JSP successful action messages using ActionMessages.I am able
to
 display error messages using ActionErrors in JSP.How can I display or use
 ActionMessages in JSP.


 I use the following code in my Action Class

 String message = ;
   ActionErrors errors = new ActionErrors();
   ActionMessages messages=new ActionMessages();
 messages.add(ActionMessages.GLOBAL_MESSAGE, new
 ActionMessage(global.message.general,action successful));
 saveMessages(req,messages);


 Thanks in advance
 help appreciated

 Vinay



 --
 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: ActionMessages throwing NullPointer and message is in properties??

2001-09-20 Thread steven . valin

First idea...
   ensure that neither messages nor aTimesheetDO is null

On Thu, 20 September 2001, Matt Raible wrote:

 
 I am getting a NullPointerException on the following code:
 
 messages.add(new ActionMessage(timesheetManage.reset.success,
 aTimesheetDO.getEmployeeName()));
 
 And in my ApplicationResources.properties file, I have the following entry:
 
 timesheetManage.reset.success=Timesheet for \{0}\ re-generated successfully
 from holidays and work profile (if applicable).
 
 Any ideas?
 
 Thanks,
 
 Matt
 
 __
 Terrorist Attacks on U.S. - How can you help?
 Donate cash, emergency relief information
 http://dailynews.yahoo.com/fc/US/Emergency_Information/

--
Steven Valin
[EMAIL PROTECTED]



Re: ActionMessages throwing NullPointer and message is in properties??

2001-09-20 Thread Matt Raible

I was setting messages to null in previous code - thanks for the tip!

Matt

--- [EMAIL PROTECTED] wrote:
 First idea...
ensure that neither messages nor aTimesheetDO is null
 
 On Thu, 20 September 2001, Matt Raible wrote:
 
  
  I am getting a NullPointerException on the following code:
  
  messages.add(new ActionMessage(timesheetManage.reset.success,
  aTimesheetDO.getEmployeeName()));
  
  And in my ApplicationResources.properties file, I have the following entry:
  
  timesheetManage.reset.success=Timesheet for \{0}\ re-generated
 successfully
  from holidays and work profile (if applicable).
  
  Any ideas?
  
  Thanks,
  
  Matt
  
  __
  Terrorist Attacks on U.S. - How can you help?
  Donate cash, emergency relief information
  http://dailynews.yahoo.com/fc/US/Emergency_Information/
 
 --
 Steven Valin
 [EMAIL PROTECTED]


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/