Re: ActionForm filled by several forms.

2002-11-28 Thread Gemes Tibor
> It seems that when 2.do was called, > it removed the Form already in the session > and added a new one. > It is correct? > Is it a feature? DynaActionForm does reset() itself on every request. In your case you should extend the DynaActionForm and override reset() Tib -- To unsubscribe, e-mail

[Struts Tip] #18 - Use EJBs with care

2002-11-28 Thread Ted Husted
Enterprise JavaBeans (EJBs) are designed to represent the model layer of an application. Developers often choose EJBs when building applications that will be distributed over several servers. Many developers also like to use EJBs because of the transparent way they handle transactions. Used pro

Re: Communication Between WebApps

2002-11-28 Thread Ken Fitzpatrick
I'm hearing more and more about real-world requirements for sharing information between WebApps -- not just the authentication thing, but entire business object graphs. Consider the user's choice for the web site Skin. Wouldn't it make sense for subsequently visited WebApps to honor the choice

theKB Example (prev: Complicated Web Interfaces?)

2002-11-28 Thread Affan Qureshi
Nested Tags really helped me in achieving what I had nightmares trying to accomplish otherwise. I have something similar to what we have at http://www.keyboardmonkey.com/StrutMonkey/MonkeyStruts_v2.jsp but in my case the Adding/Deleting object (corresponding to BunchBean ) is pretty dynaimc i.e you

Populating multiple forms from one action class

2002-11-28 Thread Curtney Jacobs
Greetings! is it possible to populate multiple forms on the same jsp page from only one action class? I have three forms (more may be added later on) on one jsp page. Each form is associated with its own action class for updating (submit) data. However, when I select an employee I would like

RE: Complicated Web Interfaces?

2002-11-28 Thread Jonathan Holloway
Ok in principle then it seems fine it's just I don't like the fact that a scripting language whether client or server side can be embedded in the presentation logic, it still seems like a bit of a workaround. I've wondered about whether the Model2X approach and the Model 2 approach for some whil

RE: JSP's under WEB-INF... or not

2002-11-28 Thread Wendy Cameron
Wouldnt it be easier and more portable to simply write a servlet filter that redirects to accessDenide.screen view? Regards Wendy -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: JSP's under WEB-INF... or not

2002-11-28 Thread Wendy Cameron
I have been trying out this concept of using a nobody role to close access to jsp and when I put a jsp page in I get the following error. Which wasnt quite what I had expected I had expected an access denied type error. Is this how it should behave? Or is there something wrong with what I have

Re: dynamically display buttons-footer

2002-11-28 Thread gus
Mouratidis, Georg schrieb: I never worked with roles. How can my buyer get the provider role. or my provider the buyer role. maybe this sounds a newbie question but i am a struts/java newbie. Roles are something the servlet container should provide - e.g. see tomcat-users.xml. You wrote about

Package Dependencies

2002-11-28 Thread Wendy Cameron
It occured to me that I would be useful to have a package dependancy map, so that if you use a given package you know what packages you need to add to your classpath in those circumstances Does anyone know if such a thing exists? Regards Wendy -- To unsubscribe, e-mail:

Re: display error message including dynamic data

2002-11-28 Thread Cathy Osekizoglu
Patrice and Sven, thank you very much!! You are very helpful. Have a good day. Cathy Patrice <[EMAIL PROTECTED]> wrote: Hi Cathy, You can use 4 dynamic data at the maximum, in an error message. The values can be defined in the ActionError constructor: errors.add(ActionErrors.GLOBAL_ERROR, new

Re: display error message including dynamic data

2002-11-28 Thread Patrice
Hi Cathy, You can use 4 dynamic data at the maximum, in an error message. The values can be defined in the ActionError constructor: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.myError", dynamicValue1, dynamicValue2, dynamicValue3, dynamicValue4)); and in you resources file: error

RE: display error message including dynamic data

2002-11-28 Thread Sven Frederik Pohl
Hi Cathy, up to 4 dynamic parameter are directly supported by the ActionError Konstruktors. Just take a look at the API documentation. An example: Action: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.kisstry", "Mike", "Lucy", "Martin", "telephone")); ApplicationResource.proper

Re: display error message including dynamic data

2002-11-28 Thread Cathy Osekizoglu
Hi, Patrice: That works. Thank you so much! One more question. If I have two or more dynamic data which I want to display them in the error message. How can I achieve that using the above approach? Thank you. Cathy Patrice <[EMAIL PROTECTED]> wrote:Hi, You can specify dynamic data in your er

Re: generate from javascript locally

2002-11-28 Thread Eric C. Hein
Sven, I am curious about your last statement. I am doing some volunteer work for a non-profit and I have a case where the user will select a "parent" from a dropdown box, and based on that selection I will need to load only the associated "children" to the next dropdown. I was planning to create

Newbie question

2002-11-28 Thread Paul Kavanagh
Hi there, I'm trying to get the attached Struts webapp (from Chapter Three of Mastering Struts) working with Tomcat 4.1.12. My understanding is that I should be able to just drop the attached (unzipped of course) into a webappname/ folder and then be able to access it via http://localhost/webappna

Re: Passing an argument from struts-config.xml to an action.

2002-11-28 Thread Craig R. McClanahan
On Thu, 28 Nov 2002, ROSSEL Olivier wrote: > Date: Thu, 28 Nov 2002 12:13:22 +0100 > From: ROSSEL Olivier <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: Passing an argument from struts-config.xml to an acti

Re: display error message including dynamic data

2002-11-28 Thread Patrice
Hi, You can specify dynamic data in your errors like this: errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.amount", dynamicAmount)); where dynamicAmount contains the amount you want to display in your error message. In your ApplicationResource.properties: error.amount=you can't retr

Is DynaActionForm extendable ??? - What's wrong with my approach?

2002-11-28 Thread Martin Kuhn
Hi STRUTS-experts! I have Value-Objects's with complicate structure's. This VO's have a generic structure and are ready for presentation and also for update. I don't want code many extra-layer's to handle my VO's with struts. I want a dynamic solution where I can use my VO's. Is it possible

Re: AccessControlException when plugging in Tiles with Struts 1.1b2

2002-11-28 Thread Craig R. McClanahan
On Wed, 27 Nov 2002, Philip Tsai wrote: > Date: Wed, 27 Nov 2002 20:01:45 -0800 > From: Philip Tsai <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: AccessControlException when plugging in Tiles with Struts 1.1b2 > > Hello list! > >

RE: Complicated Web Interfaces?

2002-11-28 Thread Craig R. McClanahan
(Waiting for the turkey to be ready ... :-) On Thu, 28 Nov 2002, Jonathan Holloway wrote: > Date: Thu, 28 Nov 2002 09:11:51 - > From: Jonathan Holloway <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]> > Subject

display error message including dynamic data

2002-11-28 Thread Cathy Osekizoglu
Hi: According to the result from my action class, I need to display message to user using the dynamic data. This is what I am doing: In my action class, I got the result that user can only retrieve maximum 50 dollars from his credit card. When user try to retrieve more than 50 dollars, I want

display error message including dynamic data

2002-11-28 Thread Cathy Osekizoglu
Hi: According to the result from my action class, I need to display message to user using the dynamic data. This is what I am doing: In my action class, I got the result that user can only retrieve maximum 50 dollars from his credit card. When user try to retrieve more than 50 dollars, I want

Re: generate from javascript locally

2002-11-28 Thread Patrice
I think you should use the to display your options: generate the collection, and place it as request attribute in an action. So, everywhere you want to display the options: Hope it helps Patrice - Original Message - From: "Sarath Chandra M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

RE: generate from javascript locally

2002-11-28 Thread Sven Frederik Pohl
Hello Sarath, it is possible to do this but i would not suggest to do so except for special reasons. To reuse the drop down menues you should better use instead of and read a property or xml file at init time which contains the menue data. That still does not reduce the traffic between server

how to handle empty form fields

2002-11-28 Thread Kevin HaleBoyes
I have a form field that is to represent a Date value. I input it using a tag and it corresponds to a String field in the form bean. It is an optional field and not usually filled in. In the business logic I call BeanUtils.copyProperties(lrdto, lrform); to copy from the form

ActionForm filled by several forms.

2002-11-28 Thread ROSSEL Olivier
I have a DynaActionForm: A (String) B (String) C (String) D (String) E (String) I want to fill it with 2 forms: 1.jsp: Form (action=1.do) A: ___ B: ___ D: ___ Submit 1.do has an actionMapping with a DynaActionForm in session scope,

RE: [Nested Tags] Frustration..Should this work? - Future?

2002-11-28 Thread Jeff_Mychasiw
Thank you, that makes things clearer. Arron Bates wrote: "The nested tags have an esoteric following (that I know of), no-one on this list goes out the their way to recommend them outside of the old list in lists problem, whatever (I'm curious to see if they even get a mention in any of these sp

Re: Re: Modules in struts 1.1

2002-11-28 Thread aduprat . struts
Hello Eddie, Im sorry. I did not send any response since last week. I was working on another subject :-( For my problem in actions not found in strut-moduel1.xml i'll try to invoque actions like this in my jsp : /module1/myaction.do Then I'll try to switch modules as you do. If you have any mo

[Tiles Controller] pagePattern bug(?)

2002-11-28 Thread Vincent PROSPER
Hi, When setting pagePattern="$P" in my subapp config, all are now without any prefix. Good! Unfortunately, this is not the case for (neither for , but this is another discussion). Can someone tell me if this is a controller configuration misunderstanding (org.apache.struts.tiles.TilesRequestP

generate from javascript locally

2002-11-28 Thread Sarath Chandra M
Dear group, I have a some jsp pages which have the same dropdown lists ( tags) like country lists, etc. Instead of generating them at serverside everytime, I would like to hav them stored in a javascript file and built on-the-fly whenever the page is served to the client. Can anybody suggest a bet

RE: Complicated Web Interfaces?

2002-11-28 Thread Edgar Dollin
Nested tags made struts work for me. Thanks Edgar -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 8:32 AM To: Struts Users Mailing List Subject: RE: Complicated Web Interfaces? > It solves my problem in theory at least : ) all I have t

RE: Complicated Web Interfaces?

2002-11-28 Thread Arron Bates
> It solves my problem in theory at least : ) all I have to > work out now is how to maintain a tree in Struts :( I don't think the > applet way is a very nice way of doing it. Mate, here at the keyboard of monkeys, we aim to please... http://www.keyboardmonkey.com/pilotlight ... and scroll to t

RE: Complicated Web Interfaces?

2002-11-28 Thread Jonathan Holloway
I guess it's also easy to swap objects between the two models as well, this would be a nice addition to the example to allow bananas to be swapped between bunches. I did notice the new banana before but I wanted it to take values from fields on the form but I guess this is very simple to do now

Re: Complicated Web Interfaces?

2002-11-28 Thread Arron Bates
> > I've also looked at the monkey-struts example as well but that seems to > > lack the > > creation of objects in these lists, which doesn't look to be a problem > > to implement > > but that might be an oversight on my part : ) please let me know if I'm > > wrong. Have another play, click on "n

RE: [Nested Tags] Frustration..Should this work?

2002-11-28 Thread Arron Bates
A really subtle problem. Remind me to make this advice available some place else when I'm done (like a mail archive?)... :) Trap one: It sounds like the bean reference is a collection itself. A little more background clarity... The nested tags never actually define references, they simply constr

Re: great error in struts! Include a JSP result of an Action in other JSP

2002-11-28 Thread Gemes Tibor
2002. november 28. 13:20 dátummal Carlos Grima ezt írtad: > For resolving this problem, I have printed the result > with JavaScript commands, but it is a botched solution :-S Have you tried the "filter" attribute of the tag as ? Tib -- To unsubscribe, e-mail: For

Re: great error in struts! Include a JSP result of an Action in other JSP

2002-11-28 Thread Carlos Grima
Hello Shirish :-) Thanks for your help. The problem in using for an Action is that the Action result has struts-tags. If the action would generate a static JSP (without struts-tags), then it would work perfectly. Regards :-) Carlos PD: Excuse me for my bad english :( CARLOS GRIMA · www.carl

Re: great error in struts! Include a JSP result of an Action in other JSP

2002-11-28 Thread Carlos Grima
Thanks Gemes, your help has been very good :-) It is true that "template" is deprecated in the new beta version... In the beta version, the new tags for this funcionality works perfectly (I have test it). Your solution in the latest stable version is very good. I proved it, and it works well. But

RE: Passing an argument from struts-config.xml to an action.

2002-11-28 Thread Míguel Ángel Mulero Martínez
Use the DispatchAction. See the documentation. > -Mensaje original- > De: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] > Enviado el: jueves, 28 de noviembre de 2002 13:08 > Para: 'Struts Users Mailing List' > Asunto: RE: Passing an argument from struts-config.xml to an action. > > > Sure. > F

RE: Passing an argument from struts-config.xml to an action.

2002-11-28 Thread ROSSEL Olivier
Sure. From a user point of view, I want to change slightly the bahviour of my Action depending on a parameter. I presume it is not possible. > -Message d'origine- > De: Gemes Tibor [mailto:[EMAIL PROTECTED]] > Date: jeudi 28 novembre 2002 13:03 > À: Struts Users Mailing List > Objet: Re: P

Re: Passing an argument from struts-config.xml to an action.

2002-11-28 Thread Gemes Tibor
2002. november 28. 12:13 dátummal ROSSEL Olivier ezt írtad: > I read on the list that it is impossible to pass a property from > struts-config.xml > to an Action. > > Example: > > > > > > > except if you overload the ActionMapping used for that statement. > > Is it still the case in

RE: [Subapps forward] contextRelative troubles (tiles pb?)

2002-11-28 Thread Vincent PROSPER
Hi, one thing I did not mention is that I use tiles... Does it have any incidence on the ContextPath??? Another thing: whether I specify ContextRelative="true" or "false", I always get: javax.servlet.include.context_path=/mywebapp even in subapp pages... Where can I find the variable that says

Passing an argument from struts-config.xml to an action.

2002-11-28 Thread ROSSEL Olivier
I read on the list that it is impossible to pass a property from struts-config.xml to an Action. Example: except if you overload the ActionMapping used for that statement. Is it still the case in Struts-1.1 ? ---cut here--- This e-mail is intended only for the above addressee. It may co

Re: Complicated Web Interfaces?

2002-11-28 Thread Affan Qureshi
Well. Depends on what logic you want to implement using your JavaScript. If it pertains to display logic I think there is no harm in using JS. But if it also specifies rules (like which node can go uder which tree and so on) then I guess you have a point and need to re-assess the maintainability of

Re: Quick Question: rtexprvalue for onclick event in

2002-11-28 Thread Patrice
All the attribute content must be in <%= ... %>: you can define a scripting variable like this: <% String onclick = "updateAchor('" + (String)pageContext.getAttribute("attributeId") + "', this.form)"; %> Hope it helps Patrice - Original Message - From: "Affan Qureshi" <[EMAIL PROTECTED]

Re: ActionError order

2002-11-28 Thread Gemes Tibor
2002. november 28. 10:03 dátummal Mouratidis, Georg ezt írtad: > So do i have to sort them by my own? > > Because i do not get ther errors in the order of assignment. > i get the errors in aplhabetical order although my validation > is made in the order of appeareance inside my form! Check the "pr

RE: Complicated Web Interfaces?

2002-11-28 Thread Jonathan Holloway
Ok fair enough but surely the issue of embedding all this javascript In my html is reversing the whole embedding presentation logic within business logic? Surely embedding javascript in a JSP is just as bad as embedding scriptlets in a JSP? Or am I missing the point here somewhere :) ? Jonat

RE: ActionError order

2002-11-28 Thread Mouratidis, Georg
So do i have to sort them by my own? Because i do not get ther errors in the order of assignment. i get the errors in aplhabetical order although my validation is made in the order of appeareance inside my form! -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Donners

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

/ /OREF:CPTE9EFA Re: / /OREF:CPT4AC2E Re: Running Struts on Wepshere 4.0

2002-11-28 Thread avasey
Yes but if you are interested you could check out the Resources page for a modified JAR and instructions on how to install Struts 1.0.2 on WebSphere 3.5 http://jakarta.apache.org/struts/doc-1.0.2/userGuide/resources.html

RE: dynamically display buttons-footer

2002-11-28 Thread Mouratidis, Georg
-Original Message- From: gus [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 28. November 2002 08:19 To: Struts Users Mailing List Subject: Re: dynamically display buttons-footer Hi Georg! Try this: Hi gus, I never

Re: [OT] Regular Expression help

2002-11-28 Thread Gemes Tibor
2002. november 28. 08:53 dátummal Stephen Ting ezt írtad: > I am new to regular expression. > In javascript, How to convert a number say in any format 0.0 or 0.000 or > 0.00 and it will format to 0.(for decimal places)? What about a javascript mailing list? Or a simple google search: htt

Re: / /OREF:CPT4AC2E Re: Running Struts on Wepshere 4.0

2002-11-28 Thread Matthew Donald
smime.p7m Description: application/pkcs7-mime