Re: Simple ActionError question

2004-02-25 Thread Theodosios Paschalidis
Thanks a lot mate, that did the trick! - Original Message - From: "Carl Walker" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 25, 2004 4:01 PM Subject: Re: Simple ActionError question > You Actio

Re: Simple ActionError question

2004-02-25 Thread Carl Walker
You ActionError constructor takes additional parameters. Here's a sample from some code that passes two parameters to a message I'm working on. In my example, if the user tries to insert a group with the same name as one in the DB, an error is thrown and html:errors is used to d

Simple ActionError question

2004-02-25 Thread Theodosios Paschalidis
Hi all, just a newbie question. I have a PlaceOrderAction and I want to display as an ActionError the items that were out of stock. I would like to be able to pass a String to my ActionError. Is there a way to do this may using Format? Could somebody provide an example? Suppose I have a

ActionError inaction

2003-12-11 Thread Jerald Powel
Hi, I have: } catch (InitializationException e) { ActionMessage errorMessage = new ActionMessage("init_error", "Initialization Exception"); ActionErrors errors = new ActionErrors(); errors.add("init_error", new ActionEr

RE: ExceptionHandler to ActionError

2003-11-13 Thread Norm Deane
> Sent: Thursday, November 13, 2003 4:20 AM > To: Struts Users Mailing List > Subject: ExceptionHandler to ActionError > > > Hi > > I'd like to catch exceptions in an exception handler and then > re-use the > ActionMessage mechanism to relay messages to the fai

ExceptionHandler to ActionError

2003-11-13 Thread Nathan Coast
Hi I'd like to catch exceptions in an exception handler and then re-use the ActionMessage mechanism to relay messages to the failed input page. Is this possible? What do I have to do within the ExceptionHandler to invoke the ActionMessage mechanism? thanks Nathan

Re: ActionError.

2003-11-12 Thread Ovidiu EFTIMIE
In your default application.properties file you have errors.detail = {0} so using this, you can have new ActionError("errors.detail","deepak"); And the message shown will be deepak Ovidiu - Original Message - From: "deepaksawdekar" <[EMAIL PROTECTED

ActionError.

2003-11-12 Thread deepaksawdekar
Hi All, Please help me how to do this. I want to create a instance of ActionError, but i don't want to the messages to be taken from applicationresource.properties file. I have to give some other message which will be hard coded. sample code I want some thing like this, err = new Action

Re: Struts-config : forward to an "action.do" => How to retrieve an ActionError from this "action.do"

2003-10-20 Thread tcs 777
t;Florent LOTHON" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts" <[EMAIL PROTECTED]> Subject: Struts-config : forward to an "action.do" => How to retrieve an ActionError from this "action.d

Struts-config : forward to an "action.do" => How to retrieve an ActionError from this "action.do"

2003-10-20 Thread Florent LOTHON
LO I have to make a forward to an action : "action.do" In my action.do, i would like to retrieve an ActionError Probably from "request" object But how can i do this ? Flo -- Ce message est protege par les regles relatives au secret des corres

Re: Deprecating ActionError/ActionErrors

2003-10-18 Thread David Graham
--- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > I don't know if this work is still ongoing, but I notice that > ActionError and ActionErrors are deprecated, yet the validate method of > DynaValidatorForm still returns an ActionErrors object. Only ActionError is depreca

Re: Deprecating ActionError/ActionErrors

2003-10-17 Thread Saul Q Yuan
- Original Message - From: "Wendy Smoak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 6:42 PM Subject: Deprecating ActionError/ActionErrors > > I don't know if this work is still ongoing, but I notice that > ActionError

Deprecating ActionError/ActionErrors

2003-10-17 Thread Wendy Smoak
I don't know if this work is still ongoing, but I notice that ActionError and ActionErrors are deprecated, yet the validate method of DynaValidatorForm still returns an ActionErrors object. I looked at the validate method of DynaValidatorForm, and I'm confused. It doesn't seem to

No more ActionError?

2003-10-16 Thread Wendy Smoak
I'm confused, but that's what I get for playing with the nightly build. ActionError is deprecated, with a note to use ActionMessage instead. My old code in a DynaValidatorForm looks like this: public ActionErrors validate( ActionMapping mapping, HttpServletReque

ActionError in Action ?

2003-09-01 Thread Linus Nikander
ructure which I can fill with my errors and then display with the .jsp . Is there a comparable structure for errors that occurr within an action (although it is possible to create an ActionError collection within the Action, I've read that this is bad practice ) ? Or is there perhaps a &

FW: How to use ActionError with two keys?

2003-08-14 Thread Alex Shneyderman
st 06, 2003 9:55 AM > To: 'Struts Users Mailing List' > Subject: RE: How to use ActionError with two keys? > > > You can get the value for your key like this from within your action. > getResources().getMessage ("host.name") > > so your resources:

Re: How to use ActionError with two keys?

2003-08-14 Thread Prashanth.S
Hi i think u need to use positional parameter substitution instead of using another key like {0},{1} etc in actionerror and replace them with actual values in properties file.. HTH prashanth Zsolt Koppany <[EMAIL PROTECTED]> wrote: Hi, how can I use ActionError with two keys. The example

RE: How to use ActionError with two keys?

2003-08-14 Thread Alex Shneyderman
You can get the value for your key like this from within your action. getResources().getMessage ("host.name") so your resources: errors.required=Required {0} host.name=Hostname and the code: new ActionError("errors.required", getResources().getMessage ("host.name&qu

RE: How to use ActionError with two keys?

2003-08-07 Thread Mike Jasnowski
The name of the host would presumably be available from the actionform, or some bean in your action. Then you would create an ActionError like this: new ActionError("errors.required",hostName); I'm not sure I understand why the host name, which seems to be a variable would be r

Re: How to use ActionError with two keys?

2003-08-06 Thread Zsolt Koppany
And how can I do that? How can I get the string assigned to for example "errors.required"? Zsolt On Wed, 2003-08-06 at 15:36, Prashanth.S wrote: > Hi > i think u need to use positional parameter substitution instead of using another key > like {0},{1} etc in actionerror an

How to use ActionError with two keys?

2003-08-06 Thread Zsolt Koppany
Hi, how can I use ActionError with two keys. The example below show what I would like to do: new ActionError("errors.required", "host.name") Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

RE: Converting an ActionError to a string programmatically

2003-07-09 Thread Viacheslav Novgorodtsev, E-Commerce SO
!=null && !errors.isEmpty()) { Vector verr = new Vector(); for(Iterator er = errors.get();er.hasNext();) { ActionError err = (ActionError)er.next(); String message = MessageResources.getMessageR

Converting an ActionError to a string programmatically

2003-07-08 Thread Kornelis Sietsma
Hi all. I am looking for a good way to turn an ActionError into a string, without having a PageContext or anything else so useful (so I can't use the RequestUtils.message() function). Is there a simple way to do this? I can probably do it the hard way, by digging through the RequestUtils s

Re: [SOLUTION] RE: Default ActionError message...

2003-06-04 Thread John Nikolai
n has returned an error. Error code is {0} and in your Action have the following errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.verisign, resultCode)); -Original Message- From: John Nikolai [mailto:[EMAIL PROTECTED] Sent: Mon 6/2/2003 7:10 PM To: [EMAIL PROTECTED] Cc: Subjec

Re: [BULK] RE: Default ActionError message...

2003-06-03 Thread John Nikolai
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.verisign, resultCode)); -Original Message- From: John Nikolai [mailto:[EMAIL PROTECTED] Sent: Mon 6/2/2003 7:10 PM To: [EMAIL PROTECTED] Cc: Subject: Default ActionError message... Hi fellow Struts users! We are using Verisign to validate a us

RE: Default ActionError message...

2003-06-03 Thread Jivan, Rajiv
You can define a generic error message in ActionResources error.verisign=Verisign has returned an error. Error code is {0} and in your Action have the following errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(error.verisign, resultCode)); -Original Message- From: John Nikolai

Default ActionError message...

2003-06-03 Thread John Nikolai
at is returned from Verisign servers (at this point in the code, we know Verisign has returned an error so the resultCode will contain the error number) : String resultCode = result.getParameter(result.RESULT); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(resul

Re: ActionError using non-default resource properties

2003-03-21 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: > http://jakarta.apache.org/struts/userGuide/struts-html.html#errors > > David I knew that was coming, there is no time for lazyness on this list people ;) Dave will keep you straight, get that manual and do some light reading tonight! hehehee Dan --

Re: ActionError using non-default resource properties

2003-03-21 Thread David Graham
http://jakarta.apache.org/struts/userGuide/struts-html.html#errors David From: adam kramer <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: ActionError using non-default resou

ActionError using non-default resource properties

2003-03-21 Thread adam kramer
Is there currently a method to construct an action error that will eventually be used to draw a message key from the non-default resource properties file? Any workarounds? (im too busy/lazy to look at the code right now) But if not would it be a useful feature? thanks, adam k. --- http://adam.4

RE: ActionError not supporting bundle

2003-03-20 Thread David Gagnon
that ActionError should support specifying bundle since it's when you specify a key that you know where this key is coming from. I'll try to dig a solution on my own during next week and let know my solution as well. Just one question left .. is this limitation just because someone forgot

Re: ActionError not supporting bundle

2003-03-19 Thread Navjot Singh
won't be able to support multiple message resources for validators. regards navjot singh - Original Message - From: "David Gagnon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 19, 2003 9:04 PM Subject: ActionError not supporting bundle | Hi

RE: ActionError not supporting bundle

2003-03-19 Thread David Gagnon
Hi Thanks for your reply btw :-) > > I look into the RC1 code to find that ActionError > > doesn't allow to specify the bundle to search for a > > given error message. > > > > I my application I have multiple modules and > > multiple message ress

Re: ActionError not supporting bundle

2003-03-19 Thread James Mitchell
On Wed, 2003-03-19 at 10:34, David Gagnon wrote: > Hi all, > > I look into the RC1 code to find that ActionError > doesn't allow to specify the bundle to search for a > given error message. > > I my application I have multiple modules and > multiple messag

ActionError not supporting bundle

2003-03-19 Thread David Gagnon
Hi all, I look into the RC1 code to find that ActionError doesn't allow to specify the bundle to search for a given error message. I my application I have multiple modules and multiple message ressource files. How can I specify error messages coming from different bundles? The E

Re: Display error in JSP page with ActionError class

2003-02-26 Thread Brian Blignaut
Try this define a key in your resources.properties file like this foo.bar={0} errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("foo.bar", "My Problem"); This will place 'My Problem' at the place marked by {0} Then when you create

RE: Display error in JSP page with ActionError class

2003-02-26 Thread ROSSEL Olivier
t; Objet: Display error in JSP page with ActionError class > Importance: Haute > > > > I would like to display en error in a JSP page without define a > Key-Value > in the resources.properties file. > Because I retrieve the error message from a common > file

Display error in JSP page with ActionError class

2003-02-26 Thread Heligon Sandra
possible to add the error I tried errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ActionErrors.GLOBAL_ERROR, "My Problem")); but it doesn't work Does a key must exist for each error in the resources.

RE: Help: ActionError - does not expand the {0} placeholder

2003-02-23 Thread Robert Taylor
Please stop sending emails with 'Return receipt requested'. Its rather annoying. robert > -Original Message- > From: w i l l i a m b o y d [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 23, 2003 2:36 AM > To: Struts Users Mailing List > Subject: Re: Help

Re: Help: ActionError - does not expandthe{0}placeholder

2003-02-23 Thread Jeff Kyser
. which i've already clarified, is of no use to me and my setup. SHEESH!!! - Original Message - From: "Jeff Kyser" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 3:59 AM Subject: Re: Help: ActionE

RE: Help: ActionError - does not expand the {0} placeholder

2003-02-23 Thread Steve Armstrong
al Message- From: w i l l i a m b o y d [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 10:00 PM To: Struts Users Mailing List Subject: Help: ActionError - does not expand the {0} placeholder hello all, developing on w98 with tomcat 3.2.24, mysql 3.23.36, struts 1.0.2, jdk 1.3.1.,

Re: Help: ActionError - does not expand the {0} placeholder

2003-02-22 Thread w i l l i a m b o y d
l - Original Message - From: "w i l l i a m b o y d" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 7:14 AM Subject: Re: Help: ActionError - does not expand the {0} placeholder > thanks paul, > > yo

Re: Help: ActionError - does not expand the {0} placeholder

2003-02-22 Thread w i l l i a m b o y d
quot;Paul Linden" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 6:40 AM Subject: Re: Help: ActionError - does not expand the {0} placeholder > Your comment about the apostrophe is a clue - it's a special ch

Re: Help: ActionError - does not expand the {0} placeholder

2003-02-22 Thread Paul Linden
?) here is the appropriate line from my resource bundle: error.prefs.limit=Sorry! You've selected too many choices for {0}. here is a snip from my form's validate method: ... ActionErrors errors = new ActionErrors(); ... if ( isTooManyPrefs ) { ActionError prefMu

Re: Help: ActionError - does not expand the {0} placeholder

2003-02-22 Thread w i l l i a m b o y d
thanks, david i will give that a try. in the meantime, any more suggestions from others would be sincerely appreciated. - Original Message - From: "David M. Karr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 4:56 AM Subject: Re: Hel

Re: Help: ActionError - does not expand the {0} placeholder

2003-02-22 Thread David M. Karr
fs.limit=Sorry! You've selected too many choices for {0}. w> here is a snip from my form's validate method: w> ... w> ActionErrors errors = new ActionErrors(); w> ... w> if ( isTooManyPrefs ) { w> ActionErro

Re: Help: ActionError - does not expand the{0}placeholder

2003-02-22 Thread Chris Trawick
am i the only one scratching my head at this? did i miss something? - Original Message - From: "w i l l i a m b o y d" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, February 22, 2003 11:17 PM Subject: Re: Help: Ac

Re: Help: ActionError - does not expand the{0}placeholder

2003-02-22 Thread w i l l i a m b o y d
HEESH!!! - Original Message - From: "Jeff Kyser" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 3:59 AM Subject: Re: Help: ActionError - does not expand the{0}placeholder > Sorry, Will, I miss

Re: Help: ActionError - does not expand the{0}placeholder

2003-02-22 Thread Jeff Kyser
truts 1.0.2 used a validation.xml file. there is nothing like that anywhere on my system. besides, it's not the validation that is the problem. the validation is working fine. the problem is that the paramater being passed into the ActionError constructor isn't being include

Re: Help: ActionError - does not expand the {0}placeholder

2003-02-22 Thread w i l l i a m b o y d
thanks for your reply, jeff. i wasn't aware that struts 1.0.2 used a validation.xml file. there is nothing like that anywhere on my system. besides, it's not the validation that is the problem. the validation is working fine. the problem is that the paramater being passed into the A

Re: Help: ActionError - does not expand the {0}placeholder

2003-02-22 Thread Jeff Kyser
alidate method: ... ActionErrors errors = new ActionErrors(); ... if ( isTooManyPrefs ) { ActionError prefMusicError = new ActionError( "error.prefs.limit", "Preferred Music" ); errors.add( "prefMusic", prefMusicError );

Re: Help: ActionError - does not expand the {0}placeholder

2003-02-22 Thread Jeff Kyser
s(); ... if ( isTooManyPrefs ) { ActionError prefMusicError = new ActionError( "error.prefs.limit", "Preferred Music" ); errors.add( "prefMusic", prefMusicError ); } ... here are the results of me looping through prefMusicError.getV

Help: ActionError - does not expand the {0} placeholder

2003-02-22 Thread w i l l i a m b o y d
oo many choices for {0}. here is a snip from my form's validate method: ... ActionErrors errors = new ActionErrors(); ... if ( isTooManyPrefs ) { ActionError prefMusicError = new ActionError( "error.prefs.limit", "Preferred Music" ); errors.a

Re: Problem with ActionError in Templates

2003-02-17 Thread Cedric Dumoulin
Hi, I suppose that you use the "input" attribute of the action. The action forward to the url found in the "input" value when validation fail. Change the value of the input. Cedric Holger Danske wrote: Hello List. I have the following problem. I using two parts of struts. First at al

Problem with ActionError in Templates

2003-02-13 Thread Holger Danske
Hello List. I have the following problem. I using two parts of struts. First at all the Struts Templates to generate the side-make-up and than the Struts-Form for the forms in the pages. I don't use frames, i'm using a table instead. Now I have the following problem. I have a logon.jsp which is

Re: Repost: ActionError without message key (urgent)

2003-01-30 Thread Scott Seong
Excellient idea Thanks. - Original Message - From: "Neil Erdwien" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 12:54 AM Subject: Re: Repost: ActionError without message key (urgent) > Ho

Re: Repost: ActionError without message key (urgent)

2003-01-29 Thread Neil Erdwien
ationResources.properties is to have the messages in one place so that you can make them consistent, translate them, etc. Scott Seong wrote: > Can someone please help me with this??? Do I have to rewrite the > ActionError to do this? > > -- > Hi, > > Is there a way to add

Repost: ActionError without message key (urgent)

2003-01-29 Thread Scott Seong
Can someone please help me with this??? Do I have to rewrite the ActionError to do this? -- Hi, Is there a way to add an ActionError without using message key, and place it in the request via SaveErrors? I'm executing a shell script from an action, and would like to capture stderr and di

Fw: ActionError without message key

2003-01-28 Thread Scott Seong
Sorry if this is a duplicate, ... I've sent it but I have never received it through this mailing list. - Original Message - From: "Scott Seong" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, January 28, 2003

Using ActionError without text messages

2003-01-06 Thread Eric Jain
do something like errors.add("query", new ActionError(null)) but then how do I access the list off invalid fields in a JSP? -- Eric Jain -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Re: ActionError order

2002-11-28 Thread Gemes Tibor
orm! Check the "property" attribute of the html:errors tag. This might be what you need. But to use this you have to add the ActionError to the ActionErrors providing the "property" which caused the error eg you have a malformed email, then you have to use 'Ac

RE: ActionError order

2002-11-28 Thread Mouratidis, Georg
: Donnerstag, 28. November 2002 09:52 To: Struts Users Mailing List Subject: Re: ActionError order 2002. november 28. 09:36 dátummal Mouratidis, Georg ezt írtad: > Hi, > > how can i determine the order of the error appeareance. > i want to determine what error index schould come in which or

Re: ActionError order

2002-11-28 Thread Gemes Tibor
2002. november 28. 09:36 dátummal Mouratidis, Georg ezt írtad: > Hi, > > how can i determine the order of the error appeareance. > i want to determine what error index schould come in which order. > is it possible? They are listed in the order of assignment. For me it is usually enough to sort t

ActionError order

2002-11-28 Thread Mouratidis, Georg
Hi, how can i determine the order of the error appeareance. i want to determine what error index schould come in which order. is it possible? mit freundlichen Grüßen Georg XL. Mouratidis Web Application Developer Heiler|Software AG Mittlerer Pfad 9 D-70499 Stuttgart Tel: 0711-139 84-2

RE: can ActionError be returned by Action?

2002-09-27 Thread Andy Kriger
Subject: can ActionError be returned by Action? Is there any way that an ActionErrors object can be returned by Action.perform (in the same way it can be returned by ActionForm.validate)? I would like to use the html:errors tags in my JSP to handle output from exceptions received in the

RE: can ActionError be returned by Action?

2002-09-27 Thread Sri Sankaran
Invoke the Action class' saveErrors() method to save it to the request. The will find it. Sri -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 12:40 PM To: Struts Users Mailing List Subject: can ActionError be returned by Action?

can ActionError be returned by Action?

2002-09-27 Thread Andy Kriger
Is there any way that an ActionErrors object can be returned by Action.perform (in the same way it can be returned by ActionForm.validate)? I would like to use the html:errors tags in my JSP to handle output from exceptions received in the Action.perform method. But I'm not sure how to set the htm

Re: ActionError question

2002-09-10 Thread Dave Derry
You could have an entry in your properties file like "error.generic={0}" Then use "new ActionError( "error.generic", "The legacy error message" );" That what you were looking for? Dave Derry - Original Message - From: "Ashish Kulkarni&qu

ActionError question

2002-09-10 Thread Ashish Kulkarni
Hi, Does ActionError class read value from properties file?? what if i have an error message coming from some legacy application, can i still user ActionError, if yes how do i build a ActionError class with this message?? = A$HI$H __ Yahoo

Re: [ActionError] Incorrect Value Displayed on jsp

2002-08-01 Thread @Basebeans.com
Subject: Re: [ActionError] Incorrect Value Displayed on jsp From: "Selvamohan Neethiraj" <[EMAIL PROTECTED]> === You need to define the following properties in your ApplicationResources.properties: errors.footer= errors.header= These are the attributes that you are seeing as nu

[ActionError] Incorrect Value Displayed on jsp

2002-08-01 Thread Brad Jones
ion { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ActionErrors errors = new ActionErrors(); String webMessage = &q

ActionError messages

2002-07-23 Thread Jerry Jalenak
Is it possible to set an ActionError similar to the following? errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(myMessage)); where myMessage is a variable? Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This

ActionError() question

2002-07-09 Thread r2d2onsteroids
Hello, I have a question regarding the ActionError method. When I have a form used for creating a new user, I can use the ActionErrors method in the UserForm class for validating the inserted values for this new user. The UserAction class then actually creates a new user with the values

Re: ActionError strange behavior

2002-06-26 Thread Tim T. Young
Mailing List" Subject: Ac

Re: ActionError strange behavior

2002-06-26 Thread Barbara Post
check errors.header and errors.footer, they must be present even blank in your ApplicationResources.properties Babs - Original Message - From: Oren Gross <[EMAIL PROTECTED]> To: Struts User (E-mail) <[EMAIL PROTECTED]> Sent: Wednesday, June 26, 2002 6:17 PM Subject: ActionE

ActionError strange behavior

2002-06-26 Thread Oren Gross
Quick one pals: I'm using ActionError, and in my input form, when ever there is an error to present, and for instance I use , I am getting "null" string before and after the message, any ideas? TIA Oren - Ore

ActionError() placeholders: a new suggestion?

2002-04-18 Thread Elijah Jacobs
Hi All, Please tell me if this has already been suggested. Why not have a new contructor for ActionError such ActionError(java.lang.String key, java.util.Map) ? The key value pair for the Map can be placeholder/value. ie. In the ApplicationResources.properties file : instead of :You have

Re: Can't get ActionError back from Action class

2002-03-01 Thread Eddie Bush
2002 3:07 PM Subject: Can't get ActionError back from Action class I know it must be late on Friday or I would be able to see what is wrong with the following code. I am trying to display the exception error message via with no luck so far. == Action code snippet = public final

RE: Can't get ActionError back from Action class

2002-03-01 Thread MARK NICHOLS
ors(request, errors); before your return statement. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:07 PM To: [EMAIL PROTECTED] Subject: Can't get ActionError back from Action class I know it must be late on Friday or I would be able t

RE: Can't get ActionError back from Action class

2002-03-01 Thread Kanoza, Douglas (NCI)
Insert this: saveErrors(request, errors); before your return statement. -Original Message- From: MARK NICHOLS [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:07 PM To: [EMAIL PROTECTED] Subject: Can't get ActionError back from Action class I know it must be la

Can't get ActionError back from Action class

2002-03-01 Thread MARK NICHOLS
nipped >> // instantiate an ActionError collection to hold any messages ActionErrors errors = new ActionErrors(); try { << snipped >> }

ActionError in FormBeans -Redirect vs Forward

2002-02-06 Thread Mark Takacs
Hello, Im having what I hope is a misunderstand of the useage of struts. summary: Error pages are shown with the underlying servlet action URL instead of the JSP input URL I've constructed a simple 2-page test app with one servlet and one FormBeam. I've also defined the Struct

RE: ActionError problem

2002-01-29 Thread Phil Maher
4:19 PM To: Struts Users Mailing List Subject: RE: ActionError problem Alex- I do need to get the session object from the request, so that I can insure that an object has been set for the operation. It seems to make no difference if I use it or not - I tried just creating/populating the

RE: ActionError problem

2002-01-29 Thread Bryan P. Glennon
ubject: RE: ActionError problem Does this approach work for you? Make sure your messages are filled in ("eng.admin.group.error.groupname.required") etc. You should have no need to play with Request, the GET/SET methods should be populated. -Alex public ActionErrors validate(A

RE: ActionError problem

2002-01-29 Thread Brown, Alex
ng mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); try { if (this.group_name == null) { errors.add("group_name", new ActionError("eng.admin.group.error.groupname.required"));

ActionError problem

2002-01-29 Thread Bryan P. Glennon
tionErrors(); cat.debug("errors created"); Object o = request.getSession().getAttribute("currentObject"); o = null; // Force error for testing... if(o == null) { errors.add(ActionErrors.GLOBAL_ERROR, new Acti

Re: ActionError parameters syntax

2002-01-22 Thread Mark Woon
Olivier Dinocourt wrote: > I have a key/value pair for the error message in my > ApplicationResources.properties. Should I use the MessageFormat syntax (blah > {0} blah {1} blah) for the value, or another Struts-specific syntax ? Struts uses the MessageFormat syntax. There is no Struts-specific

ActionError parameters syntax

2002-01-22 Thread Olivier Dinocourt
hello list I want to include parameters in my ActionError messages, and I'm wondering which syntax I should use. I have a key/value pair for the error message in my ApplicationResources.properties. Should I use the MessageFormat syntax (blah {0} blah {1} blah) for the value, or another S

Re: What is the placeholder character for ActionError?

2001-12-13 Thread T. Wheeler
Errors(); // to report the first error (error.basic) errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.basic", e.toString())); // to report the second error (error.detailed) errors.add(ActionErrors.GLOBAL_ERROR,

RE: What is the placeholder character for ActionError?

2001-12-13 Thread Knee, Jeff
D] > Subject: What is the placeholder character for ActionError? > > > The doc for ActionError states: > "An encapsulation of an individual error message returned by > the validate() > method of an ActionForm, consisting of a message key (to be > used to look up >

What is the placeholder character for ActionError?

2001-12-13 Thread SHURTLEFF,ROBERT (HP-FtCollins,ex1)
The doc for ActionError states: "An encapsulation of an individual error message returned by the validate() method of an ActionForm, consisting of a message key (to be used to look up message text in an appropriate message resources database) plus up to four placeholder objects that can be

RE: ActionError Header/Foorters - can Global vs Non-Global be dif ferentiated

2001-12-05 Thread David Winterfeldt
suggesting below and that if I wanted to do this I > would have to make a > modification to the struts tag code? > > Cheers > Greg > > Original Message Follows > From: "Jon.Ridgway" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Maili

RE: ActionError Header/Foorters - can Global vs Non-Global be dif ferentiated

2001-12-05 Thread Greg Callaghan
that if I wanted to do this I would have to make a modification to the struts tag code? Cheers Greg Original Message Follows From: "Jon.Ridgway" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing

RE: ActionError Header/Foorters - can Global vs Non-Global be differentiated

2001-12-05 Thread Jon.Ridgway
user-defined exceptions from your code. Jon. -Original Message- From: Greg Callaghan [mailto:[EMAIL PROTECTED]] Sent: 05 December 2001 07:26 To: [EMAIL PROTECTED] Subject: ActionError Header/Foorters - can Global vs Non-Global be differentiated Hi, Noting that one may use an Action

ActionError Header/Foorters - can Global vs Non-Global be differentiated

2001-12-04 Thread Greg Callaghan
Hi, Noting that one may use an ActionError, and struts ErrorTag to display both GLOBAL and validation errors (non-GLOBAL). Currently the header/footer text I use is focused on the non-Global errors (ie validation errors in a form). Is there a way with struts to throw the errors back such

RE: ActionError() problem

2001-09-26 Thread Brett Porter
Title: ActionError() problem You have answered your own question :)   Use a message properties file, and have the property value as something like   error.lineError=error at line {0}   then call   new ActionError( "error.lineError", lineNo );   the {0} will be replaced w

ActionError() problem

2001-09-26 Thread Gao, Gang
Title: ActionError() problem Hi, How can I use ActionError() to construct the error message that is not define in the message property file? Who can give me a example. I want display a dynamic error message such as "ith line got some error !". Who can give me a explanation ab

Re: ActionError display and re-populate problem

2001-09-19 Thread Bill Pfeiffer
to see that this is what its doing. HTH, Bill Pfeiffer - Original Message - From: "Andras Balogh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 9:34 AM Subject: Re: ActionError display and re-populate problem > Hi, > > I wo

Re: ActionError display and re-populate problem

2001-09-19 Thread Andras Balogh
Hi, I would like you to ask to keep this thread on the list because i am experiencing the same problem: my action works only if is defined in scope="session" not as scope="request". Thank You, Andras. Ted Husted wrote: >Can you post the JSP and ActionForm source (or send it to me directly)

RE: ActionError display and re-populate problem

2001-09-19 Thread Kilmer, Erich
[mailto:archive@jab.org] Sent: Tuesday, September 18, 2001 7:09 PM To: [EMAIL PROTECTED] Subject: Re: ActionError display and re-populate problem "Kilmer, Erich" wrote: > I am working on a Struts prototype. I have the basic flow going between a > couple of pages. What I am trying to ge

  1   2   >