Thanks for replying me. am using struts 1.2 . how do i do it in struts 1.2
dusty wrote:
>
> In your action method use addActionMessage. Then in the jsp page use
> to display the message(s) in the list.
>
> You will be using the MessageStoreInterceptor. If you are using 2.1.6
> make sur
In your action method use addActionMessage. Then in the jsp page use
to display the message(s) in the list.
You will be using the MessageStoreInterceptor. If you are using 2.1.6 make
sure the "store" interceptor is in your stack in struts.xml. If you are
using an earlier version you need t
hello all
i've a new-user page (say new_user.jsp) . am inserting a new
user into db. after inserting am mapping my page to new_user.jsp . what my
doubt is i've to display a message "User created successfully". how do i do
it? help me out of this please.
note : am se
When you use messages from an alternate (i.e. non default) message
resources you need to specify the "bundle" attribute in the
tag.
So if you have something like this in your struts-config,xml:
Then to use your "'GeneralMessages" in your jsp you specify bundle="common":
Title: Common Resource bundles across web projects, ActionMessage and html:messages
Hi all,
We are using the ActionMessage-s with replacement values.
We want to divide the resource bundles so that we have a 'common-layout-jar' which contains common m
t;
>
>
jubs
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
>
>
> I am using
ueue">
> name="msgQueue"/>
>
>
>
>
>
>
jubs
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
>
> Using struts 1.2.
On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Using struts 1.2.7
>
> which one to use? html:messages or html:errors??
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
--
Wendy
-
To unsu
Using struts 1.2.7
which one to use? html:messages or html:errors??
I am using html:errors now and displaying errors for each property i.e using
Just wondering why html:messages is available? when this tag can be used?
Thanks
Greetings,
I am unable to find a solution... even after searching... and waiting for
the espresso to kick in.
I have messages and would like to determine the number of messages in the
bean.
If there is more than one message format the output as a list or else just
display the message.
Unable t
I have the following in an action class:
msgs.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("This is an Action-inserted error",false));
msgs.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("So is this",false));
addErro
me a long time
to figure that out. To save me even more time what was your
solution? The global forward I am forwarding to looks like the
following in struts-config.xml:
I want to display a message at the top using html:messages.
I seem to recall needing the redirect set to true but I
html:messages.
I seem to recall needing the redirect set to true but I can't remember
why. Is that affecting it?
Thanks,
Ross
Daniel Henrique Ferreira e Silva wrote:
Hi Ross,
I know this maybe can't make any sense but i got this problem once due
to some mistakes handling scope
Hi Ross,
I know this maybe can't make any sense but i got this problem once due
to some mistakes handling scopes.
Let me explain:
I had an Action instance that did some stuff and in case of errors,
put them all in the request and forward to the next view. But my next
view was a forward action (a
This could be something. I do have the taglib definition but I am using
the el version, so mine looks like this:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html"%>
Would that make a difference? I will try it the other way.
Brad Balmer wrote:
Any chance tha
Any chance that you are missing the include for struts-html?
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
Granted I'm using 1.2, but I'm still using the saveMessages(request,
messages) and using this to display messages and errors:
footer="message.footer">
Hi,
Thanks again but still not working. I tried as you suggested. I don't
think it is a problem with the tag anyway because when I look at
what the browser gets I see
And not
Anyway, I will get the struts source and step through the html:messages
code, perhaps the
Try the following... Don't forget to import struts-bean.tld
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
I think it is better to use struts-tags when possible since they were designed
for Struts.
-
To
Hi,
Thanks for the response, but no dice, still doesn't work. I changed the
jsp to the following:
I am using Struts 1.1 so I don't have access to addMessages().
Any other suggestions?
Thanks,
Ross
Yan Hu wrote:
if (!messages.isEmpty())
saveMessages(request, messa
>
> if (!messages.isEmpty())
> saveMessages(request, messages);
use addMessages(). saveMessages has been deprecated.
>
>
>
>
>
You left out the "message" attribute. Set it to "true".
---
Hi,
I am having trouble getting messages to display using the html:messages
tag. I have tried to help myself and followed the struts docs but I
can't seem to get this to work. The html:errors tag works fine. Here's
what I am trying to do:
I have an action that is trying to ad
at if
logic:messagesPresent needs to know if you are looking for
message="true" so then the html:messages might need message="true" as
well.
So back to the grindstone, thanks again.
Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(702
member the exact text) and sorry I cant see your entire text. Can you
forward the applicationResources file and the jsp mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 2:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Html:messages vs html:errors
Thanks,
But ARG That w
ubject: Re: Html:messages vs html:errors
The problem is with how you've configured your messages resources.
Because
you've specified a key your message resources are not being stored under
the
"default" messages resources key. There being stored under the bundle
key
"Application
The problem is with how you've configured your messages resources. Because
you've specified a key your message resources are not being stored under the
"default" messages resources key. There being stored under the bundle key
"ApplicationResources". You just need to remove that (and the id, its
unn
at can I check next?
Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005
One cause of this is if it can't find the message key in your application
resources and you have your message resources configured with null="true".
If you change your message resources config to null="false" in your
struts-config.xml
Then if it can't find the message for some reason, you s
-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 12:28 PM
To: Struts Users Mailing List
Subject: Re: Html:messages vs html:errors
>From this and other messages I think you've got the wrong end of the
stick
regarding the tag. You can use either or
with
This seems to be one of the biggest problems for Struts users, I am
still on 1.1 but had so much trouble with that I am sure
moving to html:messages will be better, I too want to do that, but not
finding what to do.
Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV
ECTED]>; "'Struts Users Mailing List'"
Sent: Tuesday, April 05, 2005 5:21 PM
Subject: RE: Html:messages vs html:errors
>
> We don't seem to have struts-examples.war readily available here at work.
>
> Does anyone have an example of overriding an ActionForm&
We don't seem to have struts-examples.war readily available here at work.
Does anyone have an example of overriding an ActionForm's validate() method,
but using ActionMessage instead of ActionError (I presume you still have to
use a Collection of ActionErrors), and using html:messages
Here are wiki topics that discuss this:
http://wiki.apache.org/struts/StrutsDeprecatedActionErrors
http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Hubert
On Apr 5, 2005 8:18 AM, Fergal O'Shea <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm a Struts newbie. A lot of the books and documen
> I'm a Struts newbie. A lot of the books and documentation I have on Struts
> is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is
> deprecated, I'd like to use ActionMessages for some new JSPs I'm writing.
the usage is the same.
actionerrors are dependent on certain keys suc
Hi,
I'm a Struts newbie. A lot of the books and documentation I have on Struts
is pre 1.2 and uses html:errors and ActionErrors. Given ActionErrors is
deprecated, I'd like to use ActionMessages for some new JSPs I'm writing.
Does anyone know of links to more up-to-date articles or documentatio
e-
From: Suresh S [mailto:[EMAIL PROTECTED]
Sent: Fri 7/30/2004 10:38 AM
To: Struts Users Mailing List
Subject: Indentation using html:messages tag
hi friends,
I have a problem in displaying validation messages in using
messages> tag can some one help me on this? this is the problem i
nee
essages
> >
> > Detailed example can be found at:
> > http://javaboutique.internet.com/tutorials/excep_struts/index-2.html
> >
> > Erdem
> >
> > -Original Message-
> > From: Suresh S [mailto:[EMAIL PROTECTED]
> > Sent: Fri 7/30/2
> Erdem
>
> -Original Message-
> From: Suresh S [mailto:[EMAIL PROTECTED]
> Sent: Fri 7/30/2004 10:38 AM
> To: Struts Users Mailing List
> Subject: Indentation using html:messages tag
>
> hi friends,
>
> I have a problem in displaying validation messages i
he messages
Detailed example can be found at:
http://javaboutique.internet.com/tutorials/excep_struts/index-2.html
Erdem
-Original Message-
From: Suresh S [mailto:[EMAIL PROTECTED]
Sent: Fri 7/30/2004 10:38 AM
To: Struts Users Mailing List
Subject: Indentation using html:messages tag
hi frie
hi friends,
I have a problem in displaying validation messages in using tag can some one help me on this? this is the problem i need
to display the validation messages in following format.
Title 1
* error1
* error 2
Title 2
* error1
* error2
Title n
* error1
* error2
uot; <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 3:19 AM
Subject: RE: Html:messages tag (Resolved)
> I am sorry but I am not clear on what suggestion? Can you elaborate your
> suggestion in code snippnet. Thanks.
> In my case, I am sure, I will only have 1 message set up fo
, 2004 7:18 PM
To: Struts Users Mailing List
Subject: Re: Html:messages tag (Resolved)
This isn't the correct way to use .
It iterates over either all the messages (if you don't specify a property)
or all messages for a property storing each message as a page scope
variable. The way your u
Niall
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 1:33 AM
Subject: RE: Html:messages tag (Resolved)
> I didn't know I have to do the fo
Yup :-) ... that is correct ... :-)
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 8:33 PM
Subject: RE: Html:messages tag (Resolved)
> I didn
I didn't know I have to do the following:
Msg=
-Betty
-Original Message-
From: Betty Koon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:31 PM
To: 'Struts Users Mailing List'
Subject: RE: Html:messages tag
I did, it doesn't help. Nothing ge
How are you creating the message inside your action? Can you post that code
snippet?
- Original Message -
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 8:30 PM
Su
I did, it doesn't help. Nothing get printed out at all.
-Betty
-Original Message-
From: Chris Cranford [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:27 PM
To: Struts Users Mailing List
Subject: Re: Html:messages tag
Have you tried removing "property" fr
s Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 8:19 PM
Subject: Html:messages tag
> Hi All,
>
> I seem not to be able to get html:message print out the message I set up
in
> the action at all.
> I have looked at the request attribute, it does c
Hi All,
I seem not to be able to get html:message print out the message I set up in
the action at all.
I have looked at the request attribute, it does contain the ActionMessages
and I was able to retrieve the message for a particular property in my JSP,
but the tag just doesn't work.
Here is the
I have the following JSP:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
test
When I deploy an ear file into either WSAD or WebSphere admin console and check
the precompile JSP
Hi Friends!
i'm using tiles where i want to get html:errors from properties file.
But i'm not getting.
i'm adding and saving errors in action class only.And errors are not specific to any
property but those are global using GLOBAL_MESSAGE.
i'm sure that messages are available in properties fi
50 matches
Mail list logo