Re: Cannot find global ActionForward for name welcome

2006-06-07 Thread Suresh Babu S
Hi You written code like in your JSP.By default it will try to find Welcome in global forward section. Since it is not there it will throw an exception like thst open following like,hope it will give clear idea on logic:forward http://struts.apache.org/struts-doc-1.1/userGuide/struts-logic.html#f

Re: Organizing action classes

2006-06-07 Thread Frank W. Zammetti
Michael Jouravlev wrote: Chamal, if you decide to use a dispatch action, I suggest EventDispatchAction, or ActionEventDispatcher if your action class must inherit from your custom class. See these links: Definitely agreed there... this is, to me at least, clearly the best alternative if you go

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 /save_customer

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: [shale] extending clay

2006-06-07 Thread Craig McClanahan
On 6/7/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: >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

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 ser

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 f

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 functiona

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_M

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 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 (e

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 peopl

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
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 use their own simpler property names to achiev

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 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 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 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 se

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: 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 ma

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Niall Pemberton
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 specific messages.

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 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. Since

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: 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 Ac

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. I also need to display the global messages

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 store

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: [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]

Re: displaying ActionMessages.GLOBAL_MESSAGE messages only

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

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Joe Germuska
At 4:37 PM -0400 6/7/06, Samere, Adam J wrote: How about just: . 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. Another rationale for making the tags smart enough to handle that for you, while keeping sc

Passing parameters between chained actions.

2006-06-07 Thread Scott Van Wart
Hi All, I'm having trouble forwarding one action to another and sending properties on through. Let's say I have two actions, "SomeAction" and "SomeOtherAction", and two form beans, "SomeForm" (with property "someProp") and "SomeOtherForm" (with property "someOtherProp"). If I want one actio

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, Sa

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Samere, Adam J
How about just: . 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 Germuska [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 3:55 PM To: Chris Cheshire; Struts Use

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. I also need to display the global messages at t

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 men

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. I also need to display the global messages at the top of the page, however this displays everyth

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 3. In the next action class

Re: selectedItems of checkbox

2006-06-07 Thread fea jabi
below is the code in the jsp. requestURI="PrepareAction.do" defaultsort="7" defaultorder="descending" pagesize="6"> href="PrepareAction.do" headerClass="sortable"> property="value"/> not su

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 matc

Re: selectedItems of checkbox

2006-06-07 Thread Scott Van Wart
fea jabi wrote: I have added a column with 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's -- why is the value different? I tried to use LabelValueBean in the multibox. Still it's the same.

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 functional

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 the

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 a > > > couple other scenarios in trying to build this plugin. I was just > > > wondering

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 va

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field. "/> 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 vector I am storing a data object with 6 fields. I am using the iterate

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field. "/> 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 vector I am storing a data object with 6 fields. I am using the iterate

selectedItems of checkbox

2006-06-07 Thread fea jabi
I have added a column with 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's -- why is the value different? I tried to use LabelValueBean in the multibox. Still it's the same. How to fix this?

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 ente

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

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 E

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. -Mess

RE: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
I didn't even think was available on action mappings in 1.1, but maybe I'm not remembering right. Anyway, my understanding of 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 subclass using the class

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 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 versi

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 don't

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: [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 ent

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 I

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:

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, on

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 non

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 thread-

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 devlopin

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 Asunt

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, I

Re: Problem in a action

2006-06-07 Thread Leon Rosenberg
I think you're are missing the input param: scope="session" validate="true" --> input="NameOfTheJSPTheFormisIn.jsp"<-- > path="/tiles/pages/coffeenet/SeguimientoComercial/SolicitarSeguimientoComerc ial.jsp" /> regards Leon On 6/7/06, José María Tristán <[EMAIL PROTEC

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 (almos

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 unsubsc

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) -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: 07 June 2006 15:02 To: 'Str

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 /cof

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. mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 10:02 AM To: 'Struts Users Mailing List' Subject: Problem in a action Hi: I have an error when i try launch an actio

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 poi

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: The best of it is th

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 meno

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. 3

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

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 tag

user@struts.apache.org

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=add&id=123 in the other > page as a link. > And I want

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: 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 sup

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 th

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?!

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 a

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, e-m

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 the

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 error

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

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: 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 loade

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-user&m=104265745710637&w=2 My ActionForm, Action have no packages and they are working. I made a silly mistake in str

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 clarificatio

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 A

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: 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: 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-user&m=104265745710637&w=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 Mail

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 o