Re: html:messages

2009-01-19 Thread m.harig
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

Re: html:messages

2009-01-19 Thread dusty
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

html:messages

2009-01-19 Thread m.harig
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

Re: Common Resource bundles across web projects, ActionMessage and html:messages

2006-03-16 Thread Niall Pemberton
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":

Common Resource bundles across web projects, ActionMessage and html:messages

2006-03-16 Thread gudny.hauknes
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

Re: html:messages or html:errors???

2006-03-14 Thread Niall Pemberton
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

Re: html:messages or html:errors???

2006-03-13 Thread Jubin Kuriakose
ueue"> > name="msgQueue"/> > > > > > > jubs On 3/13/06, fea jabi <[EMAIL PROTECTED]> wrote: > > Using struts 1.2.

Re: html:messages or html:errors???

2006-03-13 Thread Wendy Smoak
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

html:messages or html:errors???

2006-03-13 Thread fea jabi
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

html:messages

2005-08-16 Thread glenn . deschenes
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

html:messages not displaying all messages

2005-07-29 Thread Jeff Beal
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Daniel Henrique Ferreira e Silva
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Brad Balmer
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">

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Yan Hu
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

Re: html:messages help

2005-07-12 Thread Ross Gibb
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

Re: html:messages help

2005-07-12 Thread Yan Hu
> > if (!messages.isEmpty()) > saveMessages(request, messages); use addMessages(). saveMessages has been deprecated. > > > > > You left out the "message" attribute. Set it to "true". ---

html:messages help

2005-07-12 Thread Ross Gibb
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

RE: Html:messages vs html:errors

2005-04-06 Thread Fogleson, Allen
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-06 Thread Niall Pemberton
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

RE: Html:messages vs html:errors

2005-04-06 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
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

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
- 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

RE: Html:messages vs html:errors

2005-04-05 Thread Michael Oliver
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

Re: Html:messages vs html:errors

2005-04-05 Thread Niall Pemberton
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&

RE: Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
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

Re: Html:messages vs html:errors

2005-04-05 Thread Hubert Rabago
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

Re: Html:messages vs html:errors

2005-04-05 Thread Riyaz Mansoor
> 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

Html:messages vs html:errors

2005-04-05 Thread Fergal O'Shea
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

Re: Indentation using html:messages tag

2004-07-30 Thread Nathan Maves
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

RE: Indentation using html:messages tag

2004-07-30 Thread Suresh S
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

RE: Indentation using html:messages tag

2004-07-30 Thread Suresh S
> 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

RE: Indentation using html:messages tag

2004-07-30 Thread Erdem Ergin
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

Indentation using html:messages tag

2004-07-30 Thread Suresh S
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

Re: Html:messages tag (Resolved)

2004-06-16 Thread Niall Pemberton
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

RE: Html:messages tag (Resolved)

2004-06-16 Thread Betty Koon
, 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

Re: Html:messages tag (Resolved)

2004-06-16 Thread Niall Pemberton
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

Re: Html:messages tag (Resolved)

2004-06-16 Thread Chris Cranford
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&#

RE: Html:messages tag (Resolved)

2004-06-16 Thread Betty Koon
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

Re: Html:messages tag

2004-06-16 Thread Chris Cranford
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

RE: Html:messages tag

2004-06-16 Thread Betty Koon
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

Re: Html:messages tag

2004-06-16 Thread Chris Cranford
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

Html:messages tag

2004-06-16 Thread Betty Koon
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

Precompile JSP error with html:messages

2004-06-09 Thread J Jones
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

html:messages ..bean:write not displaying.urgent

2004-05-07 Thread ganesh g
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