Do the two action mappings share the same form bean? If yes, that might
be the problem. Try to use two separate form beans, see how it goes.
Saul
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 8:52 AM
To: Struts Users Mailing List
Thanks for the response.
No they don't..
They're completely different forms, with different actions.
Looks like going down the TileAction route.
On 4 Feb 2004, at 16:43, Saul Q Yuan wrote:
Do the two action mappings share the same form bean? If yes, that might
be the problem. Try to use two
Users Mailing List
Subject: Re: messages/errors 2 form's 1 page
Thanks for the response.
No they don't..
They're completely different forms, with different actions.
Looks like going down the TileAction route.
On 4 Feb 2004, at 16:43, Saul Q Yuan wrote:
Do the two action mappings share the same
ActionMessages, saveMessages and getResources oh my!
Back in the primordial ooze of Struts pre-1.1, people liked ActionErrors.
They started using them for tasks for which they were never intended. People
started using ActionErrors as a general-purpose way to display i18n-enabled
dynamic messages.
An easy way would be to have a field in the JSP that corresponds to a
field in your ActionForm.
The you just put your message into the form field.
For instance I often display debugging information using a hidden field
and I set write=true when I want to debug
eg I am running database
I just use ActionErrors for everything but I am guessing that it is
html:errors for errors
and html:messages for messages.
Mohan
-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: messages
I'm able
That means there is an ActionMessages ?
Otávio Augusto
On Wed, 7 Jan 2004 11:41:08 +0530
Mohan Radhakrishnan [EMAIL PROTECTED] wrote:
I just use ActionErrors for everything but I am guessing that it is
html:errors for errors
and html:messages for messages.
Mohan
-Original
There is an ActionMessage Package, If i remember correctly. I think
Action Errors maybe even Extends it.
Camron G. Levanger
The Dreamlab
www.dreamlabmedia.com
(866) 890-3705
On Jan 6, 2004, at 11:11 PM, Otávio Augusto wrote:
That means there is an ActionMessages ?
Otávio Augusto
On Wed, 7 Jan
Frank,
I believe you want to use the bean:messages ./ tag. There isn't an
html:messages tag.
-Richard
At 06:18 PM 12/5/2003, you wrote:
The messages tag supposed to display all the messages automatically ?
When I place this on the JSP, the messages do not display:
[EMAIL PROTECTED]
Frank,
Please disregard the last message. I wasn't paying attention and was
looking at the Struts 1.0 docs instead of Struts 1.1.
If you are using ActionMessages, then in your action, you'd have something
like this:
ActionMessages messages = new ActionMessages();
ActionMessage msg = new
in your html:message tag you need to set the message property to true.
You'd end up with something like this
html:messages id=message message=true
bean:write name=message/br
/html:messages
snip
html:messages id=error
bean:write name=error/br /
/html:messages
/snip
The html:messages tag looks by default to the ActionErrors queue. Try
adding the message=true attribute to the tag.
html:message id=error message=true
bean:write name=error/br/
I've just had a similar problem, recently. The docs seem to be a bit
misleading (or perhaps the docs are right and theres a bug somewhere?).
html:messages doesn't seem to do any actual writing, its just a form
of iterator that loops through the specified messages and puts them in a
page-scope
I was just running across this in something i was working on..
In the html tag, try
html:messages id=messages message=true
and see if that helps.
On Wed, Apr 02, 2003 at 12:25:52PM +0100, [EMAIL PROTECTED] wrote:
Hi everyone,
Is anybody knows how to use messages system of struts. I just
That is the internal message resources used by the framework.
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org
-Original Message-
From: kiuma [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 6:21 AM
To: Struts Users Mailing List
Subject:
I'm doing this right now, but not using the errors collection. I have a
request parameter that knows whether or not an object was added. My code
is:
logic:equal parameter=added value=true
bi
Entry AddedbrAdd Another?
/i/b
br
html:link
On Fri, 5 Jul 2002, Jan Vervecken wrote:
Date: Fri, 05 Jul 2002 11:41:19 +0200
From: Jan Vervecken [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: messages with parametric replacements and avoiding scriptlets
hi
Is there a way to
Hi
I think I could give you a little bit of clue
You need to import this file
import org.apache.struts.util.MessageResources;
And then in perform method write
MessageResources messages= getMessageResources();
Then you can retrieve messages like
messages.getMessage(Msgname in Property File
Yes, in fact, you're right. The errors tag does just that. You might try
looking at the source code for the tag. Once you have downloaded and
uncompressed the source distribution, change to the subdirectory:
src/share/org/apache/struts/taglib
which is located under the main directory created
Are you talking about a general message or an error
message? The below works with nightly builds or the
Validator project (in the Struts nightly source
contrib/validator directory or
http://home.earthlink.net/~dwinterfeldt) has tags to
do this if you aren't using nightly builds.
Hello Christophe,
Check if you have put portal-messages.properties
into WEB-INF/classes/com/oxiasoft.portal.presentation/ directory
Or this propertie is in some other direcotry in
the CLASSPATH variable.
Greetings Dragomir
Christophe Marchand wrote:
Hi
all !I've deployed
a struts-based
:
Dragomir Nikolov
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 7:43
PM
Subject: Re: messages resource-file
Hello Christophe, Check if you have put
portal-messages.properties into
WEB-INF/classes/com/oxiasoft.portal.presentation/ directory
Or this propertie is in some
Any Idea ?
- Original Message -
From:
Dragomir Nikolov
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 7:43
PM
Subject: Re: messages
resource-file
Hello Christophe, Check if you have
put portal-messages.properties into
WEB-INF/c
23 matches
Mail list logo