why do we need to create packages

2006-06-07 Thread vijay r
Hello, I was wondering why do we need to create packages to keep our ActionForms, Action classes. Can't we do without creating packages. I created the .class files in WEB-INF\classes directory and gave no package names in struts-config.xml file. It gave NullPoniterException - Error creating

RE: why do we need to create packages

2006-06-07 Thread Sharadha Yadav
Packages are created to avoid collision in namespace... Supposing you have two different classes with same name, you need to associate the class with a package to make clear that the class comes from a particular package... Thanks and Regards, Sharadha Yadav M.S. Infosys Technology

Re: why do we need to create packages

2006-06-07 Thread vijay r
That's fine. I know why packages are for. But why is it necessary to create packages to keep our ActionForm classes, Action classes. Name collision is the problem which the development team has to tackle. What if the development team decides to name classes starting with their Employee ID,

RE: [shale] extending clay

2006-06-07 Thread hermod.opstvedt
Hi What would be really nice is if you would make the plugin publically available. Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 5:11 AM To: Struts User Subject: [shale] extending clay I'm writing an eclipse plugin to create a

RE: why do we need to create packages

2006-06-07 Thread Sharadha Yadav
Problem could be that the class you are creating is of the same name as the packages that get included as part of API ..that's what comes to my mind Thanks and Regards, Sharadha Yadav M.S. Infosys Technology Ltd. -Original Message- From: vijay r [mailto:[EMAIL PROTECTED] Sent:

Re: why do we need to create packages

2006-06-07 Thread Antonio Petrelli
vijay r ha scritto: That's fine. I know why packages are for. But why is it necessary to create packages to keep our ActionForm classes, Action classes. Name collision is the problem which the development team has to tackle. What if the development team decides to name classes starting with

AW: Image change on error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
-Ursprüngliche Nachricht- Von: Samere, Adam J [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. Juni 2006 17:33 An: Struts Users Mailing List Betreff: RE: Image change on error The message attribute is a boolean indicated whether messages should be checked for under Globals.ERROR_KEY or

RE: why do we need to create packages

2006-06-07 Thread Sateesh Nelluri
Hi See this clarification from Will Hartung. http://marc.theaimsgroup.com/?l=tomcat-userm=104265745710637w=2 Hope this should clear the things.. -sateesh -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:23 PM To: Struts Users

Re: Format USDollars

2006-06-07 Thread Antonio Petrelli
Raghuveer ha scritto: How to format Money Data type(SQL server )by below format for USD. $x,xxx,xxx,xxx.xx If you mean formatting in JSP see: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/formatNumber.html Ciao Antonio

Re: How to terminate the uploading process of Struts?

2006-06-07 Thread Truong Xuan Tinh
My webserver is Tomcat 5.0.30, I've configured the maxFileSize in the controller of Struts, but Struts still upload all the file and then throw exception said that MaxFileSizeExceeded. This is the big problem of Struts, because a malicous user can upload a 1GB file to your webserver to consume the

RE: Action Mapping

2006-06-07 Thread David Friedman
James, Your ActionMapper question sounds like Webwork 2.2.2/Struts Action 2.0. I asked Patrick Lightbody (author: Webwork in Action) pretty much the same question when he was the speaker at the Boston Java User Group months ago (he came to talk about Struts Action 2.0). Anyway, you can set the

RE: why do we need to create packages

2006-06-07 Thread Sharadha Yadav
That's cool.. Thanks and Regards, Sharadha Yadav M.S. Infosys Technology Ltd. -Original Message- From: Sateesh Nelluri [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:49 PM To: Struts Users Mailing List Subject: RE: why do we need to create packages Hi See this

Re: why do we need to create packages

2006-06-07 Thread vijay r
Its not that I do not want to create any packages, I just wanted to check whether the ActionForms, Actions work without a package or not. http://marc.theaimsgroup.com/?l=tomcat-userm=104265745710637w=2 My ActionForm, Action have no packages and they are working. I made a silly mistake in

Re: Form reset()

2006-06-07 Thread vijay r
Suppose we have a page P1.jsp which has a corrosponding form bean, say, TestForm. If the scope of the bean is request, then whenever we access P1.jsp, the reset() method will be called. If the scope is session, reset() method will be called only for the first time, when the bean is actually

focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
Hi, I've got a form, that focuses on the first textbox when the page is loaded. When an error occurs, I want to focus on the textbox with the first error. How can that be achieved??? Thanks, Marcus - To unsubscribe, e-mail:

Re: focus on first error

2006-06-07 Thread Truong Xuan Tinh
Hi, you can use validation framework of Struts, it's a plugin of Struts, remember to set the property stopOnFirstError to true, this make the first error field focused. marcus biel (innoWake gmbh) wrote: Hi, I've got a form, that focuses on the first textbox when the page is loaded. When an

AW: focus on first error

2006-06-07 Thread marcus biel \(innoWake gmbh\)
Hi, you can use validation framework of Struts, it's a plugin of Struts, remember to set the property stopOnFirstError to true, this make the first error field focused. No, this just displays the first error - (on a side note, this did not even work for me...) but I want to display all errors,

Re: AW: focus on first error

2006-06-07 Thread Truong Xuan Tinh
Hi, AFAIK, Struts validation doesn't support this kind of behavior. It will: 1. Display all the errors (grouped by category) and focus the last error field. 2. Display the first error, focused on the first error field and stop validation. PS: You can make the error field's selected, just modify

Re: html:text inside a custom tag

2006-06-07 Thread Dave Newton
Hanmay Udgiri wrote: I could not get both Dave and Scott Can u explain more briefly ... really? Copy bean:message Use JSP two-oh tags JEE haiku Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Extending Struts with Spring

2006-06-07 Thread Julian Tillmann
Hello, I've read that you can use Spring to make your Struts Actions thread safe. Is someone using this or has experience with it? Are there other arguments for using Spring with Struts like, for example an easy implemented Interceptor that might improve the application and is not as easily

Re: why do we need to create packages

2006-06-07 Thread Dave Newton
vijay r wrote: But how come its working. My ActionForm is instantiated by some class in the struts package. How can that class see my ActionForm which is in an anonymous package. What? Because your class is on your classpath in an un-named package. Why do you think it shouldn't find it?!

Re: [WEB-SERVICES ]

2006-06-07 Thread Thomas Joseph
Web services. How web services are written in java. Are there any tutorials to understand the concept of web services? The J2EE Tutorial may be a good place to begin with.. Check out the latest version at http://java.sun.com/javaee/5/docs/tutorial/doc/. Or search for older versions in

Re: AW: focus on first error

2006-06-07 Thread Angelo zerr
If you want you can use FormView. It manage the first error returned by validation. See use case of formview for manage errors with your fields at http://formview.sourceforge.net/errors.html Regards Angelo 2006/6/7, Truong Xuan Tinh [EMAIL PROTECTED]: Hi, AFAIK, Struts validation doesn't

Re: Extending Struts with Spring

2006-06-07 Thread Wendy Smoak
On 6/7/06, Julian Tillmann [EMAIL PROTECTED] wrote: I've read that you can use Spring to make your Struts Actions thread safe. Is someone using this or has experience with it? It's covered in this article: http://www-128.ibm.com/developerworks/java/library/j-sr2.html Once you have your

Re: How to carry parameters to action: login.do?action=addid=123

2006-06-07 Thread M.Liang Liu
Thanks very much. Fixed it. On 6/4/06, Leon Rosenberg [EMAIL PROTECTED] wrote: On 6/4/06, M.Liang Liu [EMAIL PROTECTED] wrote: I just want to carry parameters to action :login.do I will make use of the url .../login.do?action=addid=123 in the other page as a link. And I want to get

Re: html:text inside a custom tag

2006-06-07 Thread Scott Van Wart
Hanmay Udgiri wrote: I could not get both Dave and Scott Can u explain more briefly I don't think I can get any more brief than my original post. Your issue seems to be that you're unable to use tags from your custom Java tag. My response was, don't use a custom Java tag. Use a JSP-based

can i use swings instead of jsp in struts

2006-06-07 Thread xavier prad
Heloo I am a new bee I am devloping a project in swings .I want to use swing as a view instead of jsp in strusts.Is there any possibilities Kindly help Regards Mano

Handling attribute values

2006-06-07 Thread Maya menon
Hi all, 1. I have an action class, DisplayAction which displays the records from database. Here I am setting a vector into the request scope and on success forwarding it to displayresults.jsp. 2. Display results.jsp displays all records with an option of delete to the users.

RE: Handling attribute values

2006-06-07 Thread manoj.tripathi
Maya, It seems you storing a list of records in request Set the attribute in session scope, and when you delete the record update the attribute in session when you are in editAction Or In Edit action again set the update attribute in request scope Cheers -Original Message- From: Maya

Problem in a action

2006-06-07 Thread José María Tristán
Hi: I have an error when i try launch an action of struts: No input attribute for mapping path /coffeenet/SeguimientoComercial/IndexSeguiComer The struts-config.xml: action path=/inicio type=seda.incidencias.struts.action.ActionInicio name=formInicio

Re: Extending Struts with Spring

2006-06-07 Thread Joe Germuska
At 2:05 PM +0200 6/7/06, Julian Tillmann wrote: Hello, I've read that you can use Spring to make your Struts Actions thread safe. Is someone using this or has experience with it? Wendy gave you the right pointer. Note that the Spring custom RequestProcessor which is part of the strategy

RE: Problem in a action

2006-06-07 Thread Samere, Adam J
Looks like your form is failing validation, and you do not have an input attribute on your action element. action path=/inicio type=seda.incidencias.struts.action.ActionInicio name=formInicio input=inputPage.jsp /action -Original Message- From: José María Tristán [mailto:[EMAIL

Re: Problem in a action

2006-06-07 Thread The Jasper
Validate requires an input attribute in order to know what page to return to when validation fails. mvg, Jasper On 6/7/06, José María Tristán [EMAIL PROTECTED] wrote: Hi: I have an error when i try launch an action of struts: No input attribute for mapping path

RE: Problem in a action

2006-06-07 Thread manoj.tripathi
Very limited information to comment But the first action forwards to the second action. The second action does not have input attribute (which is a tile/jsp or another action) action path=/coffeenet/SeguimientoComercial/IndexSeguiComer

Re: Extending Struts with Spring

2006-06-07 Thread Dave Newton
Julian Tillmann wrote: I've read that you can use Spring to make your Struts Actions thread safe. Is someone using this or has experience with it? Just out of curiosity, why do you want to do this? Dave - To

Re:Problem in a action

2006-06-07 Thread starki78
HOLA, I think you should try validate=false in the config of the action than your Form-Bean extends Validator-Form. If you would like to validate you need a jsp as in the error message! Could you tell if this was the solution? The best solution is not to use ValidatorForm because it causes

Re: Problem in a action

2006-06-07 Thread Leon Rosenberg
I think you're are missing the input param: action path=/coffeenet/SeguimientoComercial/IndexSeguiComer type=seda.coffeenet.SeguimientoComercial.struts.action.IndexSeguiComerActio n name=seguimientoComercialForm scope=session validate=true --

RE: Handling attribute values

2006-06-07 Thread Maya menon
Manoj, Yes, I am storing a vector in request attribute. Using session attribute, I am not feeling comfortable. Because the application can be accessed simultaneously by lots. So, In EditAction, is there a way to get the attribute from request ? [EMAIL PROTECTED] wrote: Maya,

RE: Problem in a action

2006-06-07 Thread José María Tristán
Hello; Yes, it's ok. I'm want use validate of struts because i thinking that it's a good idea and don't causes problems. Thank you very much. -Mensaje original- De: starki78 [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 07 de junio de 2006 16:21 Para: user

AW: can i use swings instead of jsp in struts

2006-06-07 Thread marcus biel \(innoWake gmbh\)
if you are a new bee, you should try to find your beehive!!! LOL! -Ursprüngliche Nachricht- Von: xavier prad [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. Juni 2006 15:51 An: user@struts.apache.org Betreff: can i use swings instead of jsp in struts Heloo I am a new bee I am

RE: Handling attribute values

2006-06-07 Thread manoj.tripathi
Maya, Vectors are synchronized. Any method that touches the Vector's contents is thread safe. ArrayList, on the other hand, is unsynchronized, making them, therefore, not thread safe. With that difference in mind, using synchronization will incur a performance hit. So if you don't need a

RE: [shale] - Dialog issues

2006-06-07 Thread Greg Allen
Craig, I was gonig to point you at the website page about Dialog, but I can see now it's not particularly helpful :-). There's only one sentence (the very last one) that contains the key bits. Basically, the only current way to enter a dialog is to have some action on a

RE: Handling attribute values

2006-06-07 Thread Maya menon
Manoj, In the vector I am storing a data object with 6 fields. I am using the iterate tag to iterate thru the vector and display the results. Thanks [EMAIL PROTECTED] wrote: Maya, Vectors are synchronized. Any method that touches the Vector's contents is thread safe. ArrayList,

RE: [shale] extending clay

2006-06-07 Thread Gary VanMatre
From: [EMAIL PROTECTED] Hi What would be really nice is if you would make the plugin publically available. +1 :-) Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 5:11 AM To: Struts User Subject: [shale]

JSP error using struts 1.1

2006-06-07 Thread Olivier Bex
Hi everyone, Using struts 1.1 with eclipse 3.1 and myeclipseIDE I have an error with a JSP page : Failed to load or instantiate TagExtraInfo class : org.apache.struts.taglib.bean.CookieTei. NOTE : No JSP line was available so line 1 was used for the marker. After searching through the

RE: [shale] - Dialog issues

2006-06-07 Thread Gary VanMatre
From: Greg Allen [EMAIL PROTECTED] Craig, I was gonig to point you at the website page about Dialog, but I can see now it's not particularly helpful :-). There's only one sentence (the very last one) that contains the key bits. Basically, the only current way to enter a dialog

struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi everyone, When I start Tomcat 5.0.28, it says that I have a parsing error in my struts-config.xml, but I think it's not. The log file throws a java.lang.NoSuchMethodException : bean has no property named loginRequired Regards, Olivier BEX

RE: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
Olivier, what version of Struts are you using? Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: [EMAIL PROTECTED] Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you

RE: struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
I'm using struts 1.1 with eclipse 3.1 and myeclipseIDE -Message d'origine- De : Frank W. Zammetti [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 juin 2006 18:39 À : Tomcat Users List Cc : user@struts.apache.org Objet : RE: struts-config xml file throws a java exception Olivier, what

Re: struts-config xml file throws a java exception

2006-06-07 Thread Ed Griebel
Hi Oliver- I'm going to guess that you have defined a form bean and properties in your form bean, and one of these properties is called loginRequired. I'm also going to guess that you don't have a setter method for this property with the method signature of 'public void setLoginRequired(String

RE: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
I didn't even think set-property was available on action mappings in 1.1, but maybe I'm not remembering right. Anyway, my understanding of set-property is that it is setting a property on the *ActionMapping*, and *not* on the Action. To use it, you need to subclass ActionMapping and declare that

RE: struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi Ed, You've guessed right for the definition of the form bean and the property loginRequired. Unfortunately for you, I do have a class implementing loginRequired, and do have setter and getter method. This is why I don't understand the exception thrown by tomcat. Regards, Olivier.

RE: struts-config xml file throws a java exception

2006-06-07 Thread Samere, Adam J
Can you post the form bean declaration from struts config and the ActionForm subclass? -Original Message- From: Olivier Bex [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:51 PM To: 'Struts Users Mailing List' Subject: RE: struts-config xml file throws a java exception Hi

Re: [shale] extending clay

2006-06-07 Thread Ryan Wynn
On 6/7/06, Gary VanMatre [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Hi What would be really nice is if you would make the plugin publically available. I was intending to make it available. I had intended to get some basic functionality working before I did so. Right now it is at

Re: [shale] - Dialog issues

2006-06-07 Thread Craig McClanahan
On 6/7/06, Greg Allen [EMAIL PROTECTED] wrote: Craig, I was gonig to point you at the website page about Dialog, but I can see now it's not particularly helpful :-). There's only one sentence (the very last one) that contains the key bits. Basically, the only current way to enter a

selectedItems of checkbox

2006-06-07 Thread fea jabi
I have added a column with html:multibox in a table. The values in the column are Fea's Car Joe's Car In the DispathAction when tried to see the values of the selected items. it's Fea#39;s -- why is the value different? I tried to use LabelValueBean in the multibox. Still it's the same.

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field. input type=hidden name=data value=bean:write name=data scope=request// where data is a vector which I have set into the request type. Now how will I retrieve it ? Maya menon [EMAIL PROTECTED] wrote: Manoj, In the

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field. input type=hidden name=data value=bean:write name=data scope=request// where data is a vector which I have set into the request type. Now how will I retrieve it ? Maya menon [EMAIL PROTECTED] wrote: Manoj, In the

RE: Retrieve values

2006-06-07 Thread manoj.tripathi
In the action where the form is submitted you call request.getAttributr(data) as the input hidden type's name is data -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: 07 June 2006 18:34 To: Struts Users Mailing List Subject: Retrieve values I tried storing vector

Re: [shale] extending clay

2006-06-07 Thread Gary VanMatre
From: "Ryan Wynn" [EMAIL PROTECTED] On 6/6/06, Gary VanMatre <[EMAIL PROTECTED]>wrote: From: "Ryan Wynn" <[EMAIL PROTECTED]> I have had to work around the use of private instance variables in acouple other scenarios in trying to build this plugin. I was justwondering if anyone was

RE: Retrieve values

2006-06-07 Thread Maya menon
Yes, regarding this: I want to get the value and again create a vector out of it. Also, I am going to the next page with a link, ahref=?data=/ Like String values = request.getParameter(data); //This gives objects. I get the string. Now I want to make a vector of it and then use

Re: [shale] extending clay

2006-06-07 Thread Gary VanMatre
From: Ryan Wynn [EMAIL PROTECTED] On 6/7/06, Gary VanMatre wrote: From: Hi What would be really nice is if you would make the plugin publically available. I was intending to make it available. I had intended to get some basic functionality working before I did so.

Re: selectedItems of checkbox

2006-06-07 Thread Scott Van Wart
fea jabi wrote: I have added a column with html:multibox in a table. The values in the column are Fea's Car Joe's Car In the DispathAction when tried to see the values of the selected items. it's Fea#39;s -- why is the value different? I tried to use LabelValueBean in the multibox. Still

Re: selectedItems of checkbox

2006-06-07 Thread fea jabi
Thankyou for your response. yes, it is displaying in correct form in the browser. I want to delete the selected values from the original list. In the Dispatch Action I am checking the selectedList which are String values with the originallist and doing string comparision to check if they

Re: selectedItems of checkbox

2006-06-07 Thread fea jabi
below is the code in the jsp. display:table name=${Form.map.runs} id=mgrRuns requestURI=PrepareAction.do defaultsort=7 defaultorder=descending pagesize=6 display:column titleKey=lbl.runname sortable=true href=PrepareAction.do headerClass=sortable c:set var=runBean

RE: Retrieve values

2006-06-07 Thread Maya menon
Can anyone please help here ? 1. request.setAttribute - sets a vector in Action class 1 2. In jsp, displays the values in vector using iterate tag and theres a hidden field with value as values in vector. In this jsp, the next .do is getting called like a href=...,do?data=bean:write

displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific messages. logic:messagesPresent message=true property=search /logic:messagesPresent I also need to display

Re: Retrieve values

2006-06-07 Thread Michael Jouravlev
Struts does not serialize and deserialize complex objects for you. If you need to serialize vector into string and to deserialize it back you need to do it yourself. Another approach is to keep the vector in the session instead of sending it to client and then back to server. On 6/7/06, Maya

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific messages. logic:messagesPresent message=true property=search

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Samere, Adam J
How about just: logic:messagesPresent message=true property=%= ActionMessages.GLOBAL_MESSAGE % . /logic:messagesPresent You don't want to tie your code to the actual key since that is an implementation detail, that's what the public constant is for. -Original Message- From: Joe

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
Yes, but I do not want to use a scriptlet. This value needs to be available outside of using a scriptlet (without having to write a JSP function to return that value). Which comes back to what Joe suggested. Unfortunately it looks like I'll be taking the cumbersome approach. Chris On 6/7/06,

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart
Joe Germuska wrote: technically, you would use logic:messagesPresent message=true property=org.apache.struts.action.GLOBAL_MESSAGE /logic:messagesPresent It has been observed that this is kind of cumbersome. A nice enhancement (that just about any willing volunteer could do, hint hint

Re: [shale] extending clay

2006-06-07 Thread Ryan Wynn
Shale ticket http://issues.apache.org/struts/browse/SHALE-187 created for this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cannot find global ActionForward for name welcome

2006-06-07 Thread Daoud Abdelmonem Faleh
Hello, This is my first post to this mailing list, Before exposing my troubles, I'd like to aknowlege Struts community about the good work theire doing. Thanks folks! Please notice that the two actions: welcome and listAllPays where working great before i add the two other actions showPaysDetails

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
I agree that scriptlets are undesirable, but IMHO when compared with the consequences of having to track down and modify the key in every page that referenced it directly it's the lesser of two evils. So the goal of the new attribute on the tags would be to display/test for only messages

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/7/06, Chris Cheshire [EMAIL PROTECTED] wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific messages. logic:messagesPresent message=true property=search

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
Is ActionMessages.GLOBAL_MESSAGE going to be deprecated? I use org.apache.struts.Globals.MESSAGE_KEY instead. No! Read the javadoc -- that constant is not used for the purpose of locating messages added to an ActionMessages object with no defined property. Instead, it's used to locate an

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart
Joe Germuska wrote: Is ActionMessages.GLOBAL_MESSAGE going to be deprecated? I use org.apache.struts.Globals.MESSAGE_KEY instead. No! Read the javadoc -- that constant is not used for the purpose of locating messages added to an ActionMessages object with no defined property. Instead, it's

Re: Passing parameters between chained actions.

2006-06-07 Thread Michael Jouravlev
Whenever you call an action via action mapping, the standard create/reset/populate/validate sequence is fired. You can avoid it by not associating OtherForm with OtherAction, but in this case Struts will not automatically populate OtherForm if you submit request from browser to OtherAction.

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Scott Van Wart
Scott Van Wart wrote: Wish Eclipse had a Search/Replace in Files... Wait, it does. Again, I didn't look hard enough. - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing parameters between chained actions.

2006-06-07 Thread Scott Van Wart
Michael Jouravlev wrote: The best way to avoid these problems is not to chain actions ;-) That was a great response, thank you. Just the kind of info I need (best practices type hints as opposed to here's what the docs say...) :). I still like the idea of chaining actions together, as it

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread George.Dinwiddie
Scott Van Wart moaned Wish Eclipse had a Search/Replace in Files... Search | File... | Replace... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
Niall Pemberton wrote: On 6/7/06, Joe Germuska [EMAIL PROTECTED] wrote: At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Michael Jouravlev
On 6/7/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 6/7/06, Chris Cheshire [EMAIL PROTECTED] wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search'). In my jsp I have a section to display the search specific

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
I like the second approach better as it means I only have to keep track of one message collection in each individual action. It just means that I don't use the GLOBAL_MESSAGE constant, but I think I can live with that. Thanks Niall :) Chris On 6/7/06, Niall Pemberton [EMAIL PROTECTED] wrote:

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Chris Cheshire
On 6/7/06, Michael Jouravlev [EMAIL PROTECTED] wrote: The first approach seems more logical to me. After all, the first parameter in ActionMessages.add() is supposed to be a property name. Hmmm that changes my perspective a little. Thanks for the comments Michael. Chris

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/8/06, Joe Germuska [EMAIL PROTECTED] wrote: AFAIK there is no actual processing related to ActionMessages.GLOBAL_MESSAGE in Struts and adding another attribute just adds confusion with global=true being an alias for property=org.apache.struts.action.GLOBAL_MESSAGE. Better for people to just

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/7/06, Adam Samere [EMAIL PROTECTED] wrote: Niall Pemberton wrote: On 6/7/06, Joe Germuska [EMAIL PROTECTED] wrote: At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or my own key (eg 'search').

Organizing action classes

2006-06-07 Thread chamal desilva
Hi, I have few action mapings. /get_admin_tasks /add_task /ass_user etc. /get_add_data /save_customer_data /save_account_data etc. Is it necessary to write Action classes for each of these actions or can we group several actions in to one Action class. What is the best way to

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Adam Samere
Niall Pemberton wrote: On 6/7/06, Adam Samere [EMAIL PROTECTED] wrote: Niall Pemberton wrote: On 6/7/06, Joe Germuska [EMAIL PROTECTED] wrote: At 12:47 PM -0700 6/7/06, Chris Cheshire wrote: In my actions I have messages stored in the session either under ActionMessages.GLOBAL_MESSAGE, or

Re: Organizing action classes

2006-06-07 Thread Adam Samere
Depending on what version of Struts you are using, you could check out org.apache.struts.actions.DispatchAction and it's subclasses. For the sake of maintainability and readability though I generally prefer to keep a 1 to 1 between action subclasses and path mappings, factoring common

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
On 6/8/06, Adam Samere [EMAIL PROTECTED] wrote: Niall Pemberton wrote: On 6/7/06, Adam Samere [EMAIL PROTECTED] wrote: This works fine if you handle it in the manner you described previously, but does not account for any messages added by the framework, other developers, etc. and forces

Re: Organizing action classes

2006-06-07 Thread Frank W. Zammetti
You ask a question that is frequently debated around here :) I can say with quite a bit of confidence that Michael Jouravlev will be around shortly to say DispatchActions are the ONLY way to go :) I'm in the same camp as Adam though... I find that code is better organized when each Action

Re: Organizing action classes

2006-06-07 Thread Michael Jouravlev
On 6/7/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: You ask a question that is frequently debated around here :) I can say with quite a bit of confidence that Michael Jouravlev will be around shortly to say DispatchActions are the ONLY way to go :) Not the only way, just the one preferred

Re: Organizing action classes

2006-06-07 Thread Suresh Babu S
I'll suggest wite a dispatch action and provide a actionmapping and call the corresponding method in the Your action class. On 6/8/06, chamal desilva [EMAIL PROTECTED] wrote: Hi, I have few action mapings. /get_admin_tasks /add_task /ass_user etc. /get_add_data