Re: Problem with URL-Rewriting in WebSphere
I'm using version 6.0.0.1. I'm sorry, I don't know how to do that. Can you point me to some manual or tutorial on these? 2007/1/17, Gary VanMatre [EMAIL PROTECTED]: From: Roberto Flores [EMAIL PROTECTED] If I manually take out the ;jsessionid=132mksvl213:-1 from the url the action is found (but the session is lost of course). There's something wrong with the URL parser but I don't know what it is or if it's a struts or websphere problem/ You must be going thru a webserver that dispatches to your application server? If so, I'd try republishing the config file the webserver plugin uses. In WAS 6 the server will push the config to the webserver but in WAS 5 you have to copy it to the server depending on the setup. If you are going directly to the application server, it might be a problem with the virtual host mappings. What port are you using ( http://myhost:9080/xxx/xxx.do)? What version of WAS are you using? Gary 2007/1/15, Gary VanMatre : From: Roberto Flores Greetings, I can't use cookies since this app is for cellphones. On Tomcat there's no problem, but in WebSphere enabling only url-rewriting causes 404 errors on every page transition. Upon further inspection, the jsessionid values generated by WebSphere are drastically different than the ones used by Tomcat: WebSphere (form) ...action=/mo/HT40121.do;jsessionid=XwB08FgkQm4GzTCmLGT7jU4:-1 The last part of the jsessionid :-1 represents the server you are pinned to if you have a clustered environment. The web-server plug-in will try to send you to the same server where your session was initially established. Tomcat (form) ...action=/mo/HT40121.do;jsessionid=CBDCF468D0874528995F835F16A2BF30 Clicking the submit button returns a 404. It seems the jsessionid is not being parsed at all. Can you tell me if this is a configuration problem in either the Struts side or WebSphere? Do you think the 404 is because it is unable to find an action or a JSP page that the action is forwarding to? My guess is that it is a relative path problem were you are missing a html:base tag in your header. Just a guess... Thanks for any help. Gary
[S2] S:Select Problem
/the tag s:select dont select the right index if the keyValue is an Integer insted primitive int... Regards, André Faria / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] S:Select Problem
The Tag s:combox works fine... What is the difference? André Faria escreveu: /the tag s:select dont select the right index if the keyValue is an Integer insted primitive int... Regards, André Faria - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nested:select to logic:iterate or nested:iterate
Nuwan, Infact I tried thisbut did not help. I could see a small select box, nothing is displayed in it. I Guess it expects only options to be provided inside nested:select Even after providing the value for bean:write it's the same Regards -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 3:29 AM To: Struts Users Mailing List Subject: Re: nested:select to logic:iterate or nested:iterate nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product bean:write name=product/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 19, 2007 7:20 PM Subject: nested:select to logic:iterate or nested:iterate Hello gurus I have struts tag in my jsp, which displays HTML select option box with selected (a String array in the bean) nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField html:options collection=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% property=id labelProperty=value/ /nested:select Instead HTML Select box I want to print the String array elements in text format. Could some one please help me how to use logic:iterate or nested:iterate Please suggest thanks - 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: nested:select to logic:iterate or nested:iterate
Hi, According to the code sample you have given below. i dont think the ArrayList you are iterating contains strings. it must be having some bean collction. in that bean there should be 2 attributes called id and value. so find the bean type that is in this ArrayList and then iterate those and see.. for eg:- nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product type=the class name of the bean that is in this list bean:write name=product property=value/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, January 20, 2007 4:02 PM Subject: RE: nested:select to logic:iterate or nested:iterate Nuwan, Infact I tried thisbut did not help. I could see a small select box, nothing is displayed in it. I Guess it expects only options to be provided inside nested:select Even after providing the value for bean:write it's the same Regards -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 3:29 AM To: Struts Users Mailing List Subject: Re: nested:select to logic:iterate or nested:iterate nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product bean:write name=product/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 19, 2007 7:20 PM Subject: nested:select to logic:iterate or nested:iterate Hello gurus I have struts tag in my jsp, which displays HTML select option box with selected (a String array in the bean) nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField html:options collection=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% property=id labelProperty=value/ /nested:select Instead HTML Select box I want to print the String array elements in text format. Could some one please help me how to use logic:iterate or nested:iterate Please suggest thanks - 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: nested:select to logic:iterate or nested:iterate
Omg.. what i am writeing here.., your are correct.. how could this code have displayed a option values for the select box. where is the options tag.. , its missing... try this and see nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product optionbean:write name=product//option /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Nuwan Chandrasoma [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, January 20, 2007 9:47 PM Subject: Re: nested:select to logic:iterate or nested:iterate Hi, According to the code sample you have given below. i dont think the ArrayList you are iterating contains strings. it must be having some bean collction. in that bean there should be 2 attributes called id and value. so find the bean type that is in this ArrayList and then iterate those and see.. for eg:- nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product type=the class name of the bean that is in this list bean:write name=product property=value/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, January 20, 2007 4:02 PM Subject: RE: nested:select to logic:iterate or nested:iterate Nuwan, Infact I tried thisbut did not help. I could see a small select box, nothing is displayed in it. I Guess it expects only options to be provided inside nested:select Even after providing the value for bean:write it's the same Regards -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 3:29 AM To: Struts Users Mailing List Subject: Re: nested:select to logic:iterate or nested:iterate nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product bean:write name=product/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 19, 2007 7:20 PM Subject: nested:select to logic:iterate or nested:iterate Hello gurus I have struts tag in my jsp, which displays HTML select option box with selected (a String array in the bean) nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField html:options collection=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% property=id labelProperty=value/ /nested:select Instead HTML Select box I want to print the String array elements in text format. Could some one please help me how to use logic:iterate or nested:iterate Please suggest thanks - 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: nested:select to logic:iterate or nested:iterate
Nuwan, Yes, with out option I con't go further in this. This did not serve the purpose. '%=dataFrom+Bean.prdIdsList%' is String array with ids in it. IConstants.SESSION_ATTR_SCR_PRODUCTS% has bean collection (bean has id and value). If the id matches in both I want to print the value of it in the plain text format on the page. Using select/options will not help here. Regards -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 4:53 PM To: Nuwan Chandrasoma; Struts Users Mailing List Subject: Re: nested:select to logic:iterate or nested:iterate Omg.. what i am writeing here.., your are correct.. how could this code have displayed a option values for the select box. where is the options tag.. , its missing... try this and see nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product optionbean:write name=product//option /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Nuwan Chandrasoma [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, January 20, 2007 9:47 PM Subject: Re: nested:select to logic:iterate or nested:iterate Hi, According to the code sample you have given below. i dont think the ArrayList you are iterating contains strings. it must be having some bean collction. in that bean there should be 2 attributes called id and value. so find the bean type that is in this ArrayList and then iterate those and see.. for eg:- nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product type=the class name of the bean that is in this list bean:write name=product property=value/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, January 20, 2007 4:02 PM Subject: RE: nested:select to logic:iterate or nested:iterate Nuwan, Infact I tried thisbut did not help. I could see a small select box, nothing is displayed in it. I Guess it expects only options to be provided inside nested:select Even after providing the value for bean:write it's the same Regards -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Saturday, January 20, 2007 3:29 AM To: Struts Users Mailing List Subject: Re: nested:select to logic:iterate or nested:iterate nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField logic:iterate name=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% id=product bean:write name=product/ /logic:iterate /nested:select Thanks, Nuwan - Original Message - From: Bhanu Valasa [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, January 19, 2007 7:20 PM Subject: nested:select to logic:iterate or nested:iterate Hello gurus I have struts tag in my jsp, which displays HTML select option box with selected (a String array in the bean) nested:select property='%=dataFrom+Bean.prdIdsList%' multiple=true size=3 styleId='%=dataFrom+prdIds+(index)%' styleClass=textField html:options collection=%=IConstants.SESSION_ATTR_SCR_PRODUCTS% property=id labelProperty=value/ /nested:select Instead HTML Select box I want to print the String array elements in text format. Could some one please help me how to use logic:iterate or nested:iterate Please suggest thanks - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why is struts2 called struts2 and not webworks2?
Hi, as far as I see struts2 has very little to do with struts1. Why is it called struts2 at all (and not webworks2)? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why is struts2 called struts2 and not webworks2?
On 1/20/07, Zsolt Koppany [EMAIL PROTECTED] wrote: as far as I see struts2 has very little to do with struts1. Why is it called struts2 at all (and not webworks2)? Essentially, Patrick Lightbody (of WebWork) suggested that instead of a WebWork 3, that we all work together on creating Struts 2, and the rest of us agreed. For a summary, see * http://www.oreillynet.com/onjava/blog/2006/10/my_history_of_struts_2.html For the nitty-gritty details, see * http://opensource.atlassian.com/confluence/oss/display/STRUTS2/Home -Ted. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form population and locale
Are you talking about prepopulating the form? Yes, a FormUtils method helps with that. I don't know if that qualifies as manually populating the form, though. The FormUtils method does a lot of the manual work, such as matching form fields with their POJO field counterparts, considering the locale, converting and parsing data as needed, possibly handling nested beans/nested forms as well. Hubert On 1/19/07, Zero [EMAIL PROTECTED] wrote: Hi, Thanks ! It is exactly what I need. I'm going to test it... Must I always populate manually all the forms (with FormUtils) ? Regard, Zero -- Initial Header --- From : Hubert Rabago [EMAIL PROTECTED] To : Struts Users Mailing List user@struts.apache.org Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero [EMAIL PROTECTED] wrote: Hi everybody, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (available with RequestUtils.getUserLocale(HttRequest)) with the form population process. In fact, I have many forms which have date field (with the java.util.Date type). I would format these fields according to the user locale (ie. /MM/dd for english users and dd/MM/ for french users). Also, I would like that the automatic form population do the same thing. I have a Struts extension [1] that allows you to do this. If you get the binary download, there's a sample app (locale.war) which demonstrates the form accepting dates (02/15/1999 vs. 15/02/1999) and numbers (40,000.50 vs. 40.000,50) formatted depending on the user's locale. Thanks a lot ! Regards, Zero - Hubert [1] https://formdef.dev.java.net/ - ALICE SECURITE ENFANTS - Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le contrôle parental d'Alice. http://www.aliceadsl.fr/securitepc/default_copa.asp - 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: [S2] Any hope to have ajax form submission working?
I tried to replicate this, so I added this to index.jsp on showcase under apps/showcase/src/main/webapp/ajax/remotelink: div id=target s:form id=form action=/AjaxTest.action input type=textbox name=data s:a theme=ajax targets=targetTry/s:a /s:form /div but it works on both IE 6 and FF 2. The anchor and the button share the same javascript code, so they should behave the same. They can be used inside a form, in which case they will submit the parent form or outside a form, using formId. Adding theme=ajax to the form should make no difference on this case. Can you try the above example and let me know if it works? thanks musachy Dariusz Wojtas wrote: Hi Musachy, Your question to prepare some test form/page gave some results. My problem was that I had problems submitting remote forms. Submitting with a button had problems, then I tried to submit it with the s:a/ element. And it worked in FF but not in IE. But I found something interesting after long testing :) Some pseudocode below: div id=myParentDIV form action=/namespace/my.action theme=ajax s:hidden name=id/ s:textfield name=name/ s:a theme=ajax targets=myParentDIVSave/s:a /form /div div id=mySecondDIV /div IE 6 In this case s:a makes request to '/app/namespace/my.action' ut does not attach params. If I switch s:a targets attribute to point to the second div - then it works and passes params The only difference that I see is that it is not it's parent div. Under FF it works in both cases. Is there any special reason of this behaviour? Can it be fixed? Now I can easily make workarounds - now I know the reason of failures, but can it be fixed? Or this is some bug in IE? Or maybe this is not allowed? In fact what I tried is that the 'myParentDiv' element is of type s:div id=myParentDIV theme=ajax href=%{someURL} ... and the form is loaded by the browser in a separate request. But I tried to make both div elements to be declared with s:div that preload their contents. It still works only if the target is not the parent div but the other div. Best Regards Dariusz Wojtas On 1/17/07, Musachy Barroso [EMAIL PROTECTED] wrote: Can you create a ticket with the scenarios that do not work? I'll probably have time to go over it on the weekend. thanks musachy Dariusz Wojtas wrote: Hi Musachy, This is probably lack of precision from my side. Saying ajax forms I thought about remote forms. Even having them working with inputs of type submit/image only (no anchors) - just to have one method of submission that works in all cases. Currently there are problems with both: anchor and input button submission. At least one submission method that works with remote forms in all scenarios Best regards Dariusz Wojtas On 1/17/07, Musachy Barroso [EMAIL PROTECTED] wrote: I think the problem is only with files right? On showcase there are several examples (not the remoting forms), like on the div, anchor, and button page which work. regards musachy Dariusz Wojtas wrote: Hi, Does the current form submission come from a problem in dojo? Or is this something else? What are the current conclusions about it? I do not want to be too annoying, this is just important for me. Any chance to have it working within a week or two? Best regards Dariusz Wojtas - 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: [S2] Any hope to have ajax form submission working?
I will try to send it in 30 minutes. I will try to separate some part of my app into 2 JSPs. I hope it shows the issue. Dariusz Wojtas On 1/20/07, Musachy Barroso [EMAIL PROTECTED] wrote: I tried to replicate this, so I added this to index.jsp on showcase under apps/showcase/src/main/webapp/ajax/remotelink: div id=target s:form id=form action=/AjaxTest.action input type=textbox name=data s:a theme=ajax targets=targetTry/s:a /s:form /div but it works on both IE 6 and FF 2. The anchor and the button share the same javascript code, so they should behave the same. They can be used inside a form, in which case they will submit the parent form or outside a form, using formId. Adding theme=ajax to the form should make no difference on this case. Can you try the above example and let me know if it works? thanks musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form population and locale
I believe you could try to do this in the form's constructor or reset() method? Hubert Rabago wrote: Are you talking about prepopulating the form? Yes, a FormUtils method helps with that. I don't know if that qualifies as manually populating the form, though. The FormUtils method does a lot of the manual work, such as matching form fields with their POJO field counterparts, considering the locale, converting and parsing data as needed, possibly handling nested beans/nested forms as well. Hubert On 1/19/07, Zero [EMAIL PROTECTED] wrote: Hi, Thanks ! It is exactly what I need. I'm going to test it... Must I always populate manually all the forms (with FormUtils) ? Regard, Zero -- Initial Header --- From : Hubert Rabago [EMAIL PROTECTED] To : Struts Users Mailing List user@struts.apache.org Cc : Date : Thu, 18 Jan 2007 09:52:57 -0600 Subject : Re: Form population and locale On 1/17/07, Zero [EMAIL PROTECTED] wrote: Hi everybody, I use Struts 1.2.9 and I would like to know if there is any way to link the user locale (available with RequestUtils.getUserLocale(HttRequest)) with the form population process. In fact, I have many forms which have date field (with the java.util.Date type). I would format these fields according to the user locale (ie. /MM/dd for english users and dd/MM/ for french users). Also, I would like that the automatic form population do the same thing. I have a Struts extension [1] that allows you to do this. If you get the binary download, there's a sample app (locale.war) which demonstrates the form accepting dates (02/15/1999 vs. 15/02/1999) and numbers (40,000.50 vs. 40.000,50) formatted depending on the user's locale. Thanks a lot ! Regards, Zero - Hubert [1] https://formdef.dev.java.net/ - ALICE SECURITE ENFANTS - Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, le contrôle parental d'Alice. http://www.aliceadsl.fr/securitepc/default_copa.asp - 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: [S2] Any hope to have ajax form submission working?
Hi Musachy, I have created an issue WW-1665 and attached 2 files Index.jsp and target.jsp. Place these files in 1 dir and open index.jsp. try to submit data, and switch the 'targets' attribute to point to different DIVs. I also get some javascript errors in IE - most likely something is not found: Could not load widget 'dojo.widget.html.Tooltip' last tried '__package__.js' Using struts 2.0.4 snapshot made 12 hours ago. These are requests logged by my filter when I open index.jsp on a fresh IE (reload with SHIFT after clearing browsers cache). /esu is my app prefix: /esu/ajax/index.jsp /esu/struts/xhtml/styles.css /esu/struts/dojo/dojo.js /esu/struts/dojo/src/browser_debug.js /esu/struts/dojo/src/debug.js /esu/struts/simple/dojoRequire.js /esu/struts/ajax/dojoRequire.js /esu/struts/CommonFunctions.js /esu/struts/dojo/src/widget/html/Tooltip.js /esu/struts/dojo/src/widget/html.js /esu/struts/dojo/src/widget.js /esu/struts/dojo/src/__package__.js /esu/struts/dojo/src.js /esu/struts/dojo/__package__.js It all works under FF 2.0 But I also get some 404s under FF: GET http://localhost:8080/esu/struts/dojo/src/widget/html/Tooltip.js GET http://localhost:8080/esu/struts/dojo/src/widget/html.js GET http://localhost:8080/esu/struts/dojo/src/widget.js GET http://localhost:8080/esu/struts/dojo/src/__package__.js GET http://localhost:8080/esu/struts/dojo/src.js GET http://localhost:8080/esu/struts/dojo/__package__.js Could not load 'dojo.widget.html.Tooltip'; last tried '__package__.js' [Break on this error] throw _13||Error(_12); Best regards Dariusz Wojtas On 1/21/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: I will try to send it in 30 minutes. I will try to separate some part of my app into 2 JSPs. I hope it shows the issue. Dariusz Wojtas On 1/20/07, Musachy Barroso [EMAIL PROTECTED] wrote: I tried to replicate this, so I added this to index.jsp on showcase under apps/showcase/src/main/webapp/ajax/remotelink: div id=target s:form id=form action=/AjaxTest.action input type=textbox name=data s:a theme=ajax targets=targetTry/s:a /s:form /div but it works on both IE 6 and FF 2. The anchor and the button share the same javascript code, so they should behave the same. They can be used inside a form, in which case they will submit the parent form or outside a form, using formId. Adding theme=ajax to the form should make no difference on this case. Can you try the above example and let me know if it works? thanks musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Any hope to have ajax form submission working?
Hi Musachy, One more word on the struts version. Because I was afraid I could break sth with the build, I have just downloaded a fresh set of JAR files from: http://people.apache.org/builds/struts/nightlies/2.0.x/ and used them (dated 19-Jan-2007). the same files are not found (404), the same issues under IE Thanks Dariusz Wojtas On 1/21/07, Dariusz Wojtas [EMAIL PROTECTED] wrote: Hi Musachy, I have created an issue WW-1665 and attached 2 files Index.jsp and target.jsp. Place these files in 1 dir and open index.jsp. try to submit data, and switch the 'targets' attribute to point to different DIVs. I also get some javascript errors in IE - most likely something is not found: Could not load widget 'dojo.widget.html.Tooltip' last tried '__package__.js' Using struts 2.0.4 snapshot made 12 hours ago. These are requests logged by my filter when I open index.jsp on a fresh IE (reload with SHIFT after clearing browsers cache). /esu is my app prefix: /esu/ajax/index.jsp /esu/struts/xhtml/styles.css /esu/struts/dojo/dojo.js /esu/struts/dojo/src/browser_debug.js /esu/struts/dojo/src/debug.js /esu/struts/simple/dojoRequire.js /esu/struts/ajax/dojoRequire.js /esu/struts/CommonFunctions.js /esu/struts/dojo/src/widget/html/Tooltip.js /esu/struts/dojo/src/widget/html.js /esu/struts/dojo/src/widget.js /esu/struts/dojo/src/__package__.js /esu/struts/dojo/src.js /esu/struts/dojo/__package__.js It all works under FF 2.0 But I also get some 404s under FF: GET http://localhost:8080/esu/struts/dojo/src/widget/html/Tooltip.js GET http://localhost:8080/esu/struts/dojo/src/widget/html.js GET http://localhost:8080/esu/struts/dojo/src/widget.js GET http://localhost:8080/esu/struts/dojo/src/__package__.js GET http://localhost:8080/esu/struts/dojo/src.js GET http://localhost:8080/esu/struts/dojo/__package__.js Could not load 'dojo.widget.html.Tooltip'; last tried '__package__.js' [Break on this error] throw _13||Error(_12); Best regards Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAS 6 error when deplyoing a struts application.
Hi All, I am getting this error when i try to access some actions in a struts based web application that is running on WSA6. does anybody have any idea about this error?.. SRVE0068E: Could not invoke the service() method on servlet action. Exception thrown : java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java(Compiled Code)) at java.util.HashMap$ValueIterator.next(HashMap.java(Compiled Code)) at java.util.AbstractCollection.toArray(AbstractCollection.java(Compiled Code)) at java.util.ArrayList.init(ArrayList.java:159) at com.ibm.ws.util.ClauseTable.getList(ClauseTable.java:84) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:106) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:110) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:110) at com.ibm.ws.util.URIMatcher.iterator(URIMatcher.java:116) at com.ibm.ws.util.URIMapper.targetMappings(URIMapper.java:68) at com.ibm.ws.webcontainer.webapp.WebApp.targets(WebApp.java:3332) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.flagWrapperToReloadClass(JSPExtensionProcessor.java:382) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:267) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:250) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) Thanks, Nuwan.
Re: WAS 6 error when deplyoing a struts application.
It appears you're trying to get the next element from a list which is empty, or doesn't have next element in the iterator. Did you use iterator.hasNext() to check first? Just a thought. Saul Nuwan Chandrasoma wrote: Hi All, I am getting this error when i try to access some actions in a struts based web application that is running on WSA6. does anybody have any idea about this error?.. SRVE0068E: Could not invoke the service() method on servlet action. Exception thrown : java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java(Compiled Code)) at java.util.HashMap$ValueIterator.next(HashMap.java(Compiled Code)) at java.util.AbstractCollection.toArray(AbstractCollection.java(Compiled Code)) at java.util.ArrayList.init(ArrayList.java:159) at com.ibm.ws.util.ClauseTable.getList(ClauseTable.java:84) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:106) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:110) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:110) at com.ibm.ws.util.URIMatcher.iterator(URIMatcher.java:116) at com.ibm.ws.util.URIMapper.targetMappings(URIMapper.java:68) at com.ibm.ws.webcontainer.webapp.WebApp.targets(WebApp.java:3332) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.flagWrapperToReloadClass(JSPExtensionProcessor.java:382) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:267) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:250) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) Thanks, Nuwan. Spam/Virus scanning by CanIt Pro For more information see http://www.kgbinternet.com/SpamFilter.htm To control your spam filter, log in at http://filter.kgbinternet.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAS 6 error when deplyoing a struts application.
Hi, I dont do anything like that., this same code is working in WebSphere Application Developer. i wonder is this something to do with WAS6 Thanks, Nuwan. - Original Message - From: Saul Qunming Yuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, January 21, 2007 3:37 AM Subject: Re: WAS 6 error when deplyoing a struts application. It appears you're trying to get the next element from a list which is empty, or doesn't have next element in the iterator. Did you use iterator.hasNext() to check first? Just a thought. Saul Nuwan Chandrasoma wrote: Hi All, I am getting this error when i try to access some actions in a struts based web application that is running on WSA6. does anybody have any idea about this error?.. SRVE0068E: Could not invoke the service() method on servlet action. Exception thrown : java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java(Compiled Code)) at java.util.HashMap$ValueIterator.next(HashMap.java(Compiled Code)) at java.util.AbstractCollection.toArray(AbstractCollection.java(Compiled Code)) at java.util.ArrayList.init(ArrayList.java:159) at com.ibm.ws.util.ClauseTable.getList(ClauseTable.java:84) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:106) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:110) at com.ibm.ws.util.ClauseNode.targets(ClauseNode.java:110) at com.ibm.ws.util.URIMatcher.iterator(URIMatcher.java:116) at com.ibm.ws.util.URIMapper.targetMappings(URIMapper.java:68) at com.ibm.ws.webcontainer.webapp.WebApp.targets(WebApp.java:3332) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.flagWrapperToReloadClass(JSPExtensionProcessor.java:382) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:267) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:250) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92) Thanks, Nuwan. Spam/Virus scanning by CanIt Pro For more information see http://www.kgbinternet.com/SpamFilter.htm To control your spam filter, log in at http://filter.kgbinternet.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]
[s2] Forms with map of beans with lists of beans...
...I think I stopped at the right place in the subject. I have a map of beans, the beans have a list of other different beans. I'm struggling to make this work with the auto-type conversions (various errors depending on how I set things up; currently getting an NPE, have gotten many other spectacularly long-winded stack traces). I'm wondering if this is doable or if I should just create accessors in my Action to get to this lists directly, or if there is some MyAction-conversion.properties magic I can do to make it all work. My current MyAction-conversion.properties file looks, more or less, like this: Key_exDataMap=java.lang.Long Element_exDataMap=foo.ExData Element_list1=foo.model.TheData CreateIfNull_list1=true In the JSP: s:textfield name=exDataMap[%{#exData.id}].list1[0].field1 / So I have exDataMap = MapLong, ExData ExData has list1 = ListTheData TheData has Long field1 Now I know the _list1 stuff is nested within the map, but something else I did several months ago led me to believe that it worked (but I might have solved that some other way; I no longer recall). TIA, Dave Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]