Re: Updating a config(.ini) file in Action class
On 12/6/06, Venkata Phani Kumar [EMAIL PROTECTED] wrote: Hi, You can get any resource path wich is under context path using ServeletContext.getRealPath(). The usage of this method is here, String iniFilePath = request.getSession().getServletContext().getRealPath(test.ini); you can use the 'iniFilePath' to instatiate FileOutStream, and do what ever you want. that helps a lot Thanks and appreciate that! :)
[S2] Is there a modal dialog component in the current impl?
Hi, Is there a component in the current code to show a modal dialog or 'Accordion' (as shown on the DojoTooklit website)? If not - I could try to help in this area. Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Map backed properties
Hi Yep, and it works for the html:... tags. But when I try to use them with other tags such as c:if... it can't find them. I've used scriptlets for now (urgh) but I may try again some time even though I'm sure I've tried every possible combination. Thanks Richard -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Tuesday, December 05, 2006 11:20 PM To: user@struts.apache.org Subject: Re: Map backed properties Did you try adding a public Map getChecklistItemNoteIds() method to your form bean, and access it with the JSTL syntax Paul provided? L. Gundersen, Richard wrote: Hi Thanks for replying. I have tried that actually and it didn't work. In fact that particular example wont work for me unfortunately because my property isn't part of a map inside a DynaActionForm - it's just a normal member variable of a class that extends ActionForm. I don't think the problem is getting hold of the values - they are there and I can write scriptlets to extract them. I think the problem is that EL isn't capable of accessing these types of properties. But, I could be wrong (I hope so because I hate having scriptlets in my JSPs) Thanks Richard -Original Message- From: Strachan, Paul [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 11:23 PM To: Struts Users Mailing List Subject: RE: Map backed properties try something like: c:if test=${formname.map.checklistItemNoteIds[120] == 7} /c:if -Original Message- From: Gundersen, Richard [mailto:[EMAIL PROTECTED] Sent: Monday, 4 December 2006 11:00 PM To: user@struts.apache.org Subject: Map backed properties Hi I've been happily working with map based properties in my forms for a while now, but I've come across something that I really can't figure out. I started off with a DynaValidatorForm, and in the mapping, I had this: form-property name=checklistItemNoteIds type=java.util.HashMap/ I was able to use this nicely, by populating it in the action class, and storing it as a hidden field in my JSP like so: html:hidden property=checklistItemNoteIds(${checklistItem.id})/ That results in a nice: input type=hidden name=checklistItemNoteIds(120) value=7 But, I need to access the value of the property now to do some extra processing, something along the lines of c:if test=${checklistItemNoteIds(120) == 7}) // do this /c:if And it doesn't work. I've even made my own concrete ActionForm class with these kinds of methods: public Object getChecklistItemNoteId(String key) { return checklistItemNoteIds.get(key); } With no success. Has anyone got this working? Thanks Richard *** Disclaimer *** This electronic communication is confidential and for the exclusive use of the addressee. It may contain private and confidential information. The information, attachments and opinions contained in this E-mail are those of its author only and do not necessarily represent those of London Scottish Bank PLC or any other members of the London Scottish Group. If you are not the intended addressee, you are prohibited from any disclosure, distribution or further copying or use of this communication or the information in it or taking any action in reliance on it. If you have received this communication in error please notify the Information Security Manager at [EMAIL PROTECTED] as soon as possible and delete the message from all places in your computer where it is stored. We utilise virus scanning software but we cannot guarantee the security of electronic communications and you are advised to check any attachments for viruses. We do not accept liability for any loss resulting from any corruption or alteration of data or importation of any virus as a result of receiving this electronic communication. Replies to this E-mail may be monitored for operational or business reasons. London Scottish Bank PLC is regulated by the Financial Services Authority. __ This email has been scanned by the MessageLabs Email Security System. ** This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit
Comparing dates
Hi, Is it possible to compare dates with logic equals tag. My form bean has a property called addedDate. I need to compare it with date 2006-12-24 how should I write the equals tag logic:equals name=FormBeanName property=addedDate value=What should I put here Thanking You, Chamal. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with validation of nested properties - indexedListProperty?
John Tangney johnt at jdtangney.com writes: Hi all, I have memorized the docs, scoured the archives, googled 'till my eyes were crossed, experimented at great length, but have not been able to solve this riddle. I have a JSP that looks like this: nested:iterate property=allUsers tr tdnested:text property=userName//td tdnested:text property=email//td /tr /nested:iterate My form bean has public List getAllUsers() { return this.allUsers; } Which returns a collection of... public static class Info { // an inner class of the form bean, FWIW private String email; private String userName; public void setEmail(String string) { email = string; } public String getEmail() { return email; } ... } Hi John (and others) I read your article with great interest since I encounter this exact problem! I read the posted answers too that come to the conclusion that the wrong js is generated. So far so good, but how do we solve the problem? I tried (as in one of the answers) addressing the first elelement of the List directly by its index in validation.xml . That works fine... BUT... I have a variable size List on the jsp :-( Any suggestions? Thanks in advance!! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Comparing dates
Hi Chamal, Try logic:equals name=FormBeanName property=addedDate value=%=thedate % where thedate is a date Obj... Best regards, Mano -Original Message- From: chamal desilva [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 3:00 PM To: user@struts.apache.org Subject: Comparing dates Hi, Is it possible to compare dates with logic equals tag. My form bean has a property called addedDate. I need to compare it with date 2006-12-24 how should I write the equals tag logic:equals name=FormBeanName property=addedDate value=What should I put here Thanking You, Chamal. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Query
thanks to you.. lemme know if any other details are there i am going through the lesson 1 Ed Griebel [EMAIL PROTECTED] wrote: Start here, it doesn't get much clearer than this, and google for unfamiliar terms: http://www.learntechnology.net/struts-lesson-1.do On 12/5/06, Jagaran Bubai Das wrote: I hav done that... but how to install and run the sample application i am not clear.. it would be great if could get some simple steps and some simple application Narayanaswamy, Mohan wrote: First download the struts from http://struts.apache.org/downloads.html and play with the sample programs. -Original Message- From: Jagaran Das [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 5:04 PM To: user@struts.apache.org Subject: Query Hi all, How to install a simple application in Struts? I am new to this field. Please let me know what is good way to start exploring STRUTS. Thanks in Advance Jagaran CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
STRUTS 2 . Populating values in Action
Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m.
RE: [S2/Tiles] Multiple tile def files w/ S2 Tiles listener?
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. The snapshot you're using may still use the parameter name 'definitions-config' instead of org.apache.tiles.DEFINITION_CONFIG Grr. . .lesson learned, don't release with a snapshot! ;) Not a problem; I knew I'd be pushing the boundaries of maintainability w/ the rapid flux. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
From: Juan Espinosa [mailto:[EMAIL PROTECTED] Anyone knows how to populate this kinds of values. I don't know if Preparable has any negative interactions with ModelDriven (haven't even looked at it yet :( but it may do what you want. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: STRUTS 2 . Populating values in Action
Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope
Hi folks, I have problem with the scenario Indexed Properties, BeanUtils and Form on REQUEST scope. When I select a a value from (1 or 2) from the dropdownlist and submit the form, I get an exception from BeanUtils.populate method about some getter which can be found!?? IF change the scope of myForm to Session in my struts configuration, then I don't have a problem with beanutils. But I want my form on request scope! I have described below my problem scenario. Is there a solution to this problem?? (form on request scope) I have looked in diffenrent aspects but I am not sure what is happening here with BeanUtils: - commons BeanUtil JAR version issue? - scope (request/session) issue? - JRE/Beanutil issue? - program issue of in my scenario? - array issue? Thanks Urso Wieske Scenario abstraction of my problem: 1.PrepareAction/myForm {forward} 2.viewJSP -{submit}--- 3.ProcessAction/myForm Action Mapping Configuration relevant settings: 1) myForm (MyForm class) is on request scope 3) myForm(MyForm class) is on request scope MyForm considerations: I have a property someWrappers of type array of SomeWrapper (thus, not a List type!) properties: - SomeWrapper [] getSomeWrappers() { return someWrappers;} - void getSomeWrappers(SomeWrapper [] someWrapper) {this.someWrappers = someWrapper;} - SomeWrapper getSomeWrapper(int index) {return someWrappers[index];} - void setSomeWrapper(int index, SomeWrapper someWrapper) {this.someWrappers[index] = someWrapper;} I have changed the name of the indexed property from plural to single noun (someWrapper,... to bypass the JRE1.3/1.4 - JavaBeans specs - BeanUtils issue. My Target runtime is JRE5. viewJSP is a JSP file which has the following structure: html:form action=/someAction . logic:notEmpty name=myForm property=someWrappers logic:iterate property=someWrappers id=someWrapper html:select name=someWrapper property=propA indexed=true html:option value=11/html:option html:option value=22/html:option /html:select logic:iterate /logic:notEmpty . /html:form
RE: STRUTS 2 . Populating values in Action
Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
I thought that was just what Andrew did? :) If I'm not mistaken, Struts2 showcase has some examples of conversion. Hth, Peter -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: den 6 december 2006 14:57 To: 'Struts Users Mailing List' Subject: RE: STRUTS 2 . Populating values in Action Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope
Typo: When I select a a value from (1 or 2) from the dropdownlist and submit the form, I get an exception from BeanUtils.populate method about some getter which can NOT be found!?? Sorry -Oorspronkelijk bericht- Van: Urso Wieske Verzonden: woensdag 6 december 2006 13:44 Aan: user@struts.apache.org Onderwerp: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope Hi folks, I have problem with the scenario Indexed Properties, BeanUtils and Form on REQUEST scope. When I select a a value from (1 or 2) from the dropdownlist and submit the form, I get an exception from BeanUtils.populate method about some getter which can be found!?? IF change the scope of myForm to Session in my struts configuration, then I don't have a problem with beanutils. But I want my form on request scope! I have described below my problem scenario. Is there a solution to this problem?? (form on request scope) I have looked in diffenrent aspects but I am not sure what is happening here with BeanUtils: - commons BeanUtil JAR version issue? - scope (request/session) issue? - JRE/Beanutil issue? - program issue of in my scenario? - array issue? Thanks Urso Wieske Scenario abstraction of my problem: 1.PrepareAction/myForm {forward} 2.viewJSP -{submit}--- 3.ProcessAction/myForm Action Mapping Configuration relevant settings: 1) myForm (MyForm class) is on request scope 3) myForm(MyForm class) is on request scope MyForm considerations: I have a property someWrappers of type array of SomeWrapper (thus, not a List type!) properties: - SomeWrapper [] getSomeWrappers() { return someWrappers;} - void getSomeWrappers(SomeWrapper [] someWrapper) {this.someWrappers = someWrapper;} - SomeWrapper getSomeWrapper(int index) {return someWrappers[index];} - void setSomeWrapper(int index, SomeWrapper someWrapper) {this.someWrappers[index] = someWrapper;} I have changed the name of the indexed property from plural to single noun (someWrapper,... to bypass the JRE1.3/1.4 - JavaBeans specs - BeanUtils issue. My Target runtime is JRE5. viewJSP is a JSP file which has the following structure: html:form action=/someAction . logic:notEmpty name=myForm property=someWrappers logic:iterate property=someWrappers id=someWrapper html:select name=someWrapper property=propA indexed=true html:option value=11/html:option html:option value=22/html:option /html:select logic:iterate /logic:notEmpty . /html:form - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: STRUTS 2 . Populating values in Action
Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
Ok andrew i will search in that forum...Thanks for your help... Juan -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 10:13 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
Webwork in action have a 20-page chapter on Type conversion. -Original Message- From: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Sent: den 6 december 2006 14:13 To: Struts Users Mailing List Subject: Re: STRUTS 2 . Populating values in Action Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: STRUTS 2 . Populating values in Action
Following Andrew advices i search in the forums, i find some posibble solutions 1)having a properties file, who specified how the objects are created ActionName-conversion.properties 2) if you are using java 5, using generics, if this is the case the jar xwork-tiger.jar must be addedd Thanks to all for helping me -Mensaje original- De: Wesslan [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 10:22 a.m. Para: 'Struts Users Mailing List' Asunto: RE: STRUTS 2 . Populating values in Action Webwork in action have a 20-page chapter on Type conversion. -Original Message- From: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Sent: den 6 december 2006 14:13 To: Struts Users Mailing List Subject: Re: STRUTS 2 . Populating values in Action Hello, there is also a lot of posts on Type Conversion subject in the WebWork forum: http://forums.opensymphony.com/forum.jspa?forumID=1 AFAIK, type conversion belongs to XWork which WebWork and Struts2 use, so you may find the answer in WW forum too. Regards, Andrew On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Yes i see this but its hard to understandmaybe if you know something that i can read... Hel!!! -Mensaje original- De: Andrew Stepanenko [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 06 de Diciembre de 2006 09:38 a.m. Para: Struts Users Mailing List Asunto: Re: STRUTS 2 . Populating values in Action Hello, have you looked at Type Conversion mechanism: http://cwiki.apache.org/WW/type-conversion.html ? Regards, Andrew Stepanenko, http://unf.tane.edu.ua On 12/6/06, Juan Espinosa [EMAIL PROTECTED] wrote: Hi to all, i have a cuestion about populatin values in an action. I have an action that implements the interface ModelDriven. The object CUSTOMER has some string properties and a collection of users class MyAction implements ModelDriven{ Customer customer = null public Object getModel(){ return new Customer(); } } And a form with some text boxes s:textbox name=age/ s:textbox name=address/ s:textbox name=users(0).userName/ s:textbox name=users(0).password/ The problem that im having is that i want to populate a user in the collection of users, like the framework populates the value string i want also populate in the collection a object of type User with the values userName and password in it Anyone knows how to populate this kinds of values. Regards, Juan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 04:07 p.m. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] First try : failed to run mailreader-2.0.1
Hello, I'd like to install Struts 2.0.1 apps as a live-demo to Struts 2. I'm using Tomcat 4.1.30 on Java5 (jrockit). When running mailreader app, I get : TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found Seems there is some dependency to Xalan. I added xalan-2.7.0 in tomcat common-lib and got a NoSuchMethodError : nextSibling. What version is used by struts ? Nico.
Help in css with struts2
Hi I'm new to Struts2. Can any one help me in letting me know, How can we override the default css for various widgets provided by struts 2 ? Like if I want to specify my own style for s:textfield how can I do that ?? Regards, Pranav -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.15.9/573 - Release Date: 12/5/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
test
Please ignore ... just testing my gMail account.
Re: test
You had a question if it would work ? On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: Please ignore ... just testing my gMail account.
Re: test
It seems to work ! Just was curious not getting messages I send to the list in my mail box. 2006/12/6, Adam K [EMAIL PROTECTED]: You had a question if it would work ? On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: Please ignore ... just testing my gMail account.
Re: [s2] First try : failed to run mailreader-2.0.1
it works with xalan 2.6.0. If this lib is required, why isn't it in the war WEB-INF/lib ? 2006/12/6, nicolas de loof [EMAIL PROTECTED]: Hello, I'd like to install Struts 2.0.1 apps as a live-demo to Struts 2. I'm using Tomcat 4.1.30 on Java5 (jrockit). When running mailreader app, I get : TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found Seems there is some dependency to Xalan. I added xalan-2.7.0 in tomcat common-lib and got a NoSuchMethodError : nextSibling. What version is used by struts ? Nico.
RE: Problem with re displaying optionsCollection
Thanks Paul, Putting Bean in scope and manually calling validate worked for me. Appreciate your help. Thanks Prakash -Original Message- From: Paul Benedict [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Sunday, December 03, 2006 2:12 PM To: Struts Users Mailing List Subject: Re: Problem with re displaying optionsCollection If you put the list in request scope, it disappears when the request is finished. That's why you're probably getting the error: the second request (failed validation) is trying to re-display the collection, but it no longer exists. You should either (1) put the list in sesssion scope or (2) turn off automatic validation, and put the list back into request scope before calling form.valdiate() Paul Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) wrote: Hi, I am having an issue with select list and not able to figure out a resolution. Any help is greatly appreciated. Here is the scenario. I have 2 action classes. One (Approve.do) for displaying the form with prepopulated values from database. A second Action(SaveApprove.do) to take the form values and do validations and then do further business process. The first action populates all select lists fine. But when I submit the screen with new values and if any validation fails, it gives me an error Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot find bean: agreeStatus in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935) at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsC ol lectionTag.java:173) Code snapshots are below ApproveAction class labelvaluePairs2.add(new LabelValueBean(Select One, Select One)); while(iter.hasNext()){ //this is a result set from database String val = (String) iter.next(); labelvaluePairs2.add(new LabelValueBean(val, val)); } //aForm.setAgreeStatus(labelvaluePairs2); -- this did not help where aForm is the form instance and agreeStstus is list in Form. request.setAttribute(agreeStatus, labelvaluePairs2); return (mapping.findForward(approve)); SaveApproveAction class if (!errors.isEmpty()) { return (mapping.getInputForward()); } //save the form values to database And I am repeating the labelvaluePairs2 code above.(I started without it but thought doing this would put it in scope, but it did not help) return (mapping.findForward(success)); Struts-config.xml action path=/Approve name=ApproveForm type=approve.ApproveAction scope=request validate=false forward name=approve path=exs.approve/forward /action action path=/SaveApprove name=ApproveForm type=approve.SaveApproveAction parameter=methodToCall scope=request input=exs.approve forward name=success path=exs.success/forward /action Approve.jsp bean:define id=appr name=approveInfo property=approveDetails ///This is a bean with list of classes html:select property=agreementStatus name=appr html:optionsCollection name=agreeStatus value=value label=label/ /html:select For good measure I added this in Action Form with getter and setter methods List agreeStatus = null; public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { //request.setAttribute(agreeStatus, agreeStatus); -- This did not help //return super.validate(mapping, request); ActionErrors errors = new ActionErrors(); return errors; } I have no idea how to redisplay the form when validations fail. Any advise would be a great help. Thanks in advance. Thanks Prakash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: test
That's because GMail doesn't send you your own postings. On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: It seems to work ! Just was curious not getting messages I send to the list in my mail box. 2006/12/6, Adam K [EMAIL PROTECTED]: You had a question if it would work ? On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: Please ignore ... just testing my gMail account. -- James Mitchell 678.910.8017
Re: test
It's a bit annoying, but I suppose it's to try and avoid mail loops/excess inbox junk. It's not that difficult to search your inbox or bcc yourself though. On 12/6/06, James Mitchell [EMAIL PROTECTED] wrote: That's because GMail doesn't send you your own postings. On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: It seems to work ! Just was curious not getting messages I send to the list in my mail box. 2006/12/6, Adam K [EMAIL PROTECTED]: You had a question if it would work ? On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: Please ignore ... just testing my gMail account. -- James Mitchell 678.910.8017
Re: test
My fiulter automatically place my sent message under struts tag, so my contribs to the list are not lost, and does not get duplicated, so this is a nice feature. Nico. 2006/12/6, Adam K [EMAIL PROTECTED]: It's a bit annoying, but I suppose it's to try and avoid mail loops/excess inbox junk. It's not that difficult to search your inbox or bcc yourself though. On 12/6/06, James Mitchell [EMAIL PROTECTED] wrote: That's because GMail doesn't send you your own postings. On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: It seems to work ! Just was curious not getting messages I send to the list in my mail box. 2006/12/6, Adam K [EMAIL PROTECTED]: You had a question if it would work ? On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: Please ignore ... just testing my gMail account. -- James Mitchell 678.910.8017
Re: [s2] First try : failed to run mailreader-2.0.1
On 12/6/06, nicolas de loof [EMAIL PROTECTED] wrote: it works with xalan 2.6.0. If this lib is required, why isn't it in the war WEB-INF/lib ? snip/ I agree it should work out of the box, but dropping in WEB-INF/lib isn't the ideal solution either. Cross-JDK JAXP has gotten a tad trickier [1] (and that reference covers only Sun JDKs). -Rahul [1] http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html 2006/12/6, nicolas de loof [EMAIL PROTECTED]: Hello, I'd like to install Struts 2.0.1 apps as a live-demo to Struts 2. I'm using Tomcat 4.1.30 on Java5 (jrockit). When running mailreader app, I get : TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found Seems there is some dependency to Xalan. I added xalan-2.7.0 in tomcat common-lib and got a NoSuchMethodError : nextSibling. What version is used by struts ? Nico. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NPE in TagUtils.getStack after upgrading to 2.0.1
Root cause follows. java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56) I had this problem intermittently, and finally figured out its source and how to quash it for good. It has to do with when struts2 cleans up after itself to prevent memory leaks (after which the ValueStack is gone, thus NPE). Check the order of your filter stack. If you add a struts-cleanup filter you can determine where in the stack processing struts2 does this. http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ActionContextCleanUp.html -Dale -- View this message in context: http://www.nabble.com/Re%3A-NPE-in-TagUtils.getStack-after-upgrading-to-2.0.1-tf2708127.html#a7724423 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] s:iterator/c:forEach
Hi, s:iterator works over various collections; yesterday I had a need to do a simple iteration using an S2-style scope param. I did the s:set/c:forEach thing but I thought that was kind of ugly; any likelihood that s:iterator will be expanded or there will be an s:loop kinda thang? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 general availability release date?
Hello All, Can anyone comment on what is the release date for struts2 - general availability. I am planning on using it for one of company projects. I played with Struts 2.0.1 beta release. Struts2 appears to be the best thing that happened since 1.x release. But I am little hesitant to put beta release in production. thanks, - Everyone is raving about the all-new Yahoo! Mail beta.
OT: file download without opening a window
Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = Save target as Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513
RE: file download without opening a window
add a header Content-Disposition attachment; filename=myFile.xml using response.addHeader() -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 4:56 PM To: Struts Users Mailing List Subject: OT: file download without opening a window Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = Save target as Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file download without opening a window
Thanks. How can I add a header without opening a new window or redirect? - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, December 06, 2006 11:02 PM Subject: RE: file download without opening a window add a header Content-Disposition attachment; filename=myFile.xml using response.addHeader() -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 4:56 PM To: Struts Users Mailing List Subject: OT: file download without opening a window Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = Save target as Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: file download without opening a window
Can you restate what you want? It's not exactly clear what you are asking. -- James Mitchell 678.910.8017 On Dec 6, 2006, at 4:56 PM, Søren Blidorf wrote: Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = Save target as Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ArrayI ndex OutOfBoundsException when page refresh
I have an action which uses the following form-bean below. All works fine when the page is first displayed. In addition to user submit. For example AccessRequest[] can initially contain a list of requests lets say 5. The user can then modify request by updating info. For example he may update 2 of the 5. Then hit submit. Once requests are modified they are removed from the list. The page is refreshed and there will only be 3 requests. All works fine. However if user hits refresh on the browser I get the error below. Its very strange if I simply update one request it works fine. If user updates more than one it throws error when refresh is hit. I have placed break points throughout and it gets to the reset() method in MyDynaActionForm which obtains the correct array size. It then exits reset() and error is thrown. It never reaches the action. Thank you all for your time. I have the following form in struts-config code: form-bean name=dynamicArrayForm type=...MyDynaActionForm form-property name=entityList type=Entity[]/ form-property name=access type=AccessRequest[]/ /form-bean I have the following. /setupForm is initially called to display the data. setuppage.jsp will call /processForm. code: action path=/setupForm type=SetupFormAction name=dynamicArrayForm scope=session validate=false forward name=success path=/setuppage.jsp/ /action action path=/processForm type=ProcessFormAction name=dynamicArrayForm scope=session validate=false forward name=success path=/setupForm.do/ /action I get the following error ArrayIndexOutOfBoundsException: 0 at reflect.Array.get(Native Method) at org...DynaActionForm.get(DynaActionForm.java:250) -- View this message in context: http://www.nabble.com/ArrayI-ndex-OutOfBoundsException-when-page-refresh-tf2772149.html#a7732461 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 general availability release date?
We can't comment on a release date because its not the decision of any one person. Each time a milestone distribution is made, each of the committers test the distribution, and, ideally, put it into production ourselves. Then, based on that experience, we decide whether the distribution is ready for prime time, and, if so, we mark it General Availability. The general feeling is that we are very close, and some of us are thinking that a GA would make a nice Chrismas present, but only if it's actually up to production standards. -Ted. On 12/6/06, carty mc2 [EMAIL PROTECTED] wrote: Hello All, Can anyone comment on what is the release date for struts2 - general availability. I am planning on using it for one of company projects. I played with Struts 2.0.1 beta release. Struts2 appears to be the best thing that happened since 1.x release. But I am little hesitant to put beta release in production. thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Displaying a JSP in a pop-up window
Hi, all ! wilson wong xrote : can you simply use javascript window.open(your_url_for_jsp) ? Yes, it does work. But I realize that my problem is a bit more complicated. I would like to : - open a popup when clicking on a link into a JSP (done) - which would give, as a link parameter, a value - taken itself from a bean property which is a collection. Here's what I've got : *** CODE *** logic:iterate id=choix name=mainCouranteForm property=allAgents bean:define id=thisAgent name=choix property=idAgent/ script language=JavaScript function popup() { window.open(/initSupprimerAgent.html?myAgent=%= thisAgent %); return false; } /script a href= onclick=return popup()supprimer/a /logic:iterate *** / CODE *** And this all works but not as I would like. What happens is that the link is created and the popup is dispayed when clicking it but in the link, the parameter (myAgent) gives me always the same value, which is the last one of the collection (or the first one, I don't know). It seems that the bean is instantiated only once. So I thought what I would need would be a way to give a number to the bean. So I used indexId=xxx of logic:iterate and bean:define id=thisAgent%= xxx % and it compiles. But I can't figure out a way to give the xxx to the javascript because inside it there's already a %= %. Can someone help, a way or another ? If my method is bad, just tell me ! Else just give me the missing syntax. Thanx in advance ! Regards, Pierre -- L'une des raisons pour lesquelles la vie est complexe C'est qu'elle a une partie réelle et une partie imaginaire.
Re: OT: file download without opening a window
What I need is for system users to be able to download a specifik xml file on my server. The download should start when the user clicks on a button. The click on the button should copy the action of right-clicking on a link to the xml file and choosing Save target as. I dont want a new window to open or a redirect off the page. Please let me know if I need to explain againg Br. Soren - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 07, 2006 2:30 AM Subject: Re: OT: file download without opening a window Goddag Søren forsøge- http://upload.thinfile.com/put/ med venlig hilsen Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Mitchell James [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, December 06, 2006 7:23 PM Subject: Re: OT: file download without opening a window Can you restate what you want? It's not exactly clear what you are asking. -- James Mitchell 678.910.8017 On Dec 6, 2006, at 4:56 PM, Søren Blidorf wrote: Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = Save target as Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]