Re: why doesnt iterator tag provide 'next'
I wouldn't put Java in my HTML any more than I would use println statements in a Servlet to generate HTML. Scriplets are dead and should be left to rest in peace. If you can't find a way to do what you need with either the JSTL or Struts taglibs, I would suggest writing your own custom tag, it's fairly straightforward and totally reusable (unlike a Scriplet). (*Chris*) On Fri, May 29, 2009 at 10:33 PM, Bhaarat Sharma bhaara...@gmail.comwrote: so if there is a need to do something like this ...we are better off using good ole scritplets? % % On Sat, May 30, 2009 at 12:25 AM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [s2] strange (for me) OGNL behavior
Musachy, that sounds interesting. Can you tell me where I find information about configuring (in struts-config.xml? or programmatically?) the interceptor? Thanks Martin Musachy Barroso schrieb: You can configure the params interceptor to ignore those params. musachy On Fri, May 29, 2009 at 9:00 AM, kindl...@arcor.de wrote: Thanks Jim, that is the explanation I needed. I can't get rid of the name attribute, but I can live with the stack traces in my log file. Martin - Original Nachricht Von: Jim Kiley jhki...@summa-tech.com An: Struts Users Mailing List user@struts.apache.org Datum: 29.05.2009 14:45 Betreff: Re: [s2] strange (for me) OGNL behavior Whenever you click an HTML button with your mouse, the browser will submit the X and Y coordinates of the area that you clicked. This is to support image maps. By giving the submit button a name (I think), the browser tries to provide those X and Y coordinates with respect to the button's name (thus name.x and name.y). Struts is trying to parse those input parameters but because you probably don't have an object in your action class that has the name that your submit button has, it is lost. This error won't actually cause you any real problems, but if you want to get rid of it I think you'll want to get rid of the 'name' attribute on your submit button. jk On Fri, May 29, 2009 at 5:46 AM, kindl...@arcor.de wrote: Hi, OGNL is a great mystery for me. It does magic and - well - strange things. :-) Perhaps you can help me out. The situation: I have a S2 (2.16) site where I use on some pages a form like this: s:form action=SatImgWetterSWR acceptcharset=UTF-8 s:textfield id=plzs_searchterm name=plzs_searchterm value=PLZ/Ort eingeben cssClass=dimmedInput onfocus=setActiveClass();/ s:submit type=image src=pages/img/nav/dosearch.gif id=plzs_submit name=plzs_submit cssStyle=margin-left: 5px; / /s:form This works great. The problem: when pressing the Submit-button, Struts throws exceptions that it (OGNL) cannot set the properties x and y which do not exist. This does not stop my app from working, its just ugly. Looking a bit into the problem I found that the form tries to transfer plzs_submit.x and plzs_submit.y and this causes the problem. I am puzzled. Any explanation and hint for stopping this will be greatly appreciated. Martin +--- Dipl. inf. Martin Kindler Julius-Leber-Str. 8 D-76448 Durmersheim Tel. +49 (0)7245 80 48 774 GSM +49 (0)160 977 636 14 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: html:errors/ error validation error
please specify the taglib syntax. newton.dave wrote: coolsayan wrote: what to change please be specific The taglib URIs. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/%3Chtml%3Aerrors-%3E-error-validation-error-tp23765113p23791499.html Sent from the Struts - User mailing list archive at Nabble.com.
RE: why doesnt iterator tag provide 'next'
Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
RE: html:errors/ error validation error
please view this comprehensive explanation of dojo mapped functions by Ted http://struts.apache.org/2.1.6/docs/developing-ajax-widgets.html hth Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 01:47:39 -0700 From: coolsayan.2...@gmail.com To: user@struts.apache.org Subject: Re: html:errors/ error validation error please specify the taglib syntax. newton.dave wrote: coolsayan wrote: what to change please be specific The taglib URIs. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/%3Chtml%3Aerrors-%3E-error-validation-error-tp23765113p23791499.html Sent from the Struts - User mailing list archive at Nabble.com. _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
Re: html:errors/ error validation error
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: html:errors/ error validation error
Martin Gainty wrote: please view this comprehensive explanation of dojo mapped functions by Ted http://struts.apache.org/2.1.6/docs/developing-ajax-widgets.html Wrong thread. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: why doesnt iterator tag provide 'next'
I actually would like to make a custom tag out of this as I think it might be helpful to others as well. However, I cant find any good documentation on how to create one. I have 'Struts2 web 2.0 projects' book by Ian Roughly and it does not show how to create your own custom tags. I believe If I were to create a custom tag for this I will take most of the code from the iterator tag and just add a few bits to it? Can someone please just exaplain some steps that are involved in making a custom tag? Thanks -bhaarat On Sat, May 30, 2009 at 8:00 AM, Martin Gainty mgai...@hotmail.com wrote: Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
RE: [s2] strange (for me) OGNL behavior
WEB-INF/classes/struts-default.xml interceptors interceptor name=params class=com.opensymphony.xwork2.interceptor.ParametersInterceptor/ interceptor-stack name=paramsPrepareParamsStack interceptor-ref name=exception/ interceptor-ref name=alias/ interceptor-ref name=i18n/ interceptor-ref name=params param name=excludeParamsdojo\..*,^struts\..*/param /interceptor-ref add exclude param after ^struts\..* e.g. ^struts\..*,name does this help? Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Date: Sat, 30 May 2009 10:33:53 +0200 From: kindl...@arcor.de To: user@struts.apache.org Subject: Re: [s2] strange (for me) OGNL behavior Musachy, that sounds interesting. Can you tell me where I find information about configuring (in struts-config.xml? or programmatically?) the interceptor? Thanks Martin Musachy Barroso schrieb: You can configure the params interceptor to ignore those params. musachy On Fri, May 29, 2009 at 9:00 AM, kindl...@arcor.de wrote: Thanks Jim, that is the explanation I needed. I can't get rid of the name attribute, but I can live with the stack traces in my log file. Martin - Original Nachricht Von: Jim Kiley jhki...@summa-tech.com An: Struts Users Mailing List user@struts.apache.org Datum: 29.05.2009 14:45 Betreff: Re: [s2] strange (for me) OGNL behavior Whenever you click an HTML button with your mouse, the browser will submit the X and Y coordinates of the area that you clicked. This is to support image maps. By giving the submit button a name (I think), the browser tries to provide those X and Y coordinates with respect to the button's name (thus name.x and name.y). Struts is trying to parse those input parameters but because you probably don't have an object in your action class that has the name that your submit button has, it is lost. This error won't actually cause you any real problems, but if you want to get rid of it I think you'll want to get rid of the 'name' attribute on your submit button. jk On Fri, May 29, 2009 at 5:46 AM, kindl...@arcor.de wrote: Hi, OGNL is a great mystery for me. It does magic and - well - strange things. :-) Perhaps you can help me out. The situation: I have a S2 (2.16) site where I use on some pages a form like this: s:form action=SatImgWetterSWR acceptcharset=UTF-8 s:textfield id=plzs_searchterm name=plzs_searchterm value=PLZ/Ort eingeben cssClass=dimmedInput onfocus=setActiveClass();/ s:submit type=image src=pages/img/nav/dosearch.gif id=plzs_submit name=plzs_submit cssStyle=margin-left: 5px; / /s:form This works great. The problem: when pressing the Submit-button, Struts throws exceptions that it (OGNL) cannot set the properties x and y which do not exist. This does not stop my app from working, its just ugly. Looking a bit into the problem I found that the form tries to transfer plzs_submit.x and plzs_submit.y and this causes the problem. I am puzzled. Any explanation and hint for stopping this will be greatly appreciated. Martin +--- Dipl. inf. Martin Kindler Julius-Leber-Str. 8 D-76448 Durmersheim Tel. +49 (0)7245 80 48 774 GSM +49 (0)160 977 636 14 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
RE: why doesnt iterator tag provide 'next'
Bharaat did you get a change to read musachy's tag developer guide http://struts.apache.org/2.0.14/docs/tag-developers-guide.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 08:51:17 -0400 Subject: Re: why doesnt iterator tag provide 'next' From: bhaara...@gmail.com To: user@struts.apache.org I actually would like to make a custom tag out of this as I think it might be helpful to others as well. However, I cant find any good documentation on how to create one. I have 'Struts2 web 2.0 projects' book by Ian Roughly and it does not show how to create your own custom tags. I believe If I were to create a custom tag for this I will take most of the code from the iterator tag and just add a few bits to it? Can someone please just exaplain some steps that are involved in making a custom tag? Thanks -bhaarat On Sat, May 30, 2009 at 8:00 AM, Martin Gainty mgai...@hotmail.com wrote: Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009 _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
Re: convention plug-in question
I'd have to test to be sure but I don't thinl the plug in cares about the method. It will do action-return.jsp the way it does for normal processing. On 5/29/09, Jim Collings jlistn...@gmail.com wrote: So if I use dynamic method invocation, like so: /admin/change-wingding!change How will the result urls for that call be constructed? Jim C. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: why doesnt iterator tag provide 'next'
I would suggest you to write a new tag, as a patch to struts core (look at the other tags, all you need is 2 classes and a couple of annotations). What this break tag would need to do is find the parent iterator tag, and somehow let it know that the iteration is over. musachy On Sat, May 30, 2009 at 10:51 AM, Martin Gainty mgai...@hotmail.com wrote: Bharaat did you get a change to read musachy's tag developer guide http://struts.apache.org/2.0.14/docs/tag-developers-guide.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 08:51:17 -0400 Subject: Re: why doesnt iterator tag provide 'next' From: bhaara...@gmail.com To: user@struts.apache.org I actually would like to make a custom tag out of this as I think it might be helpful to others as well. However, I cant find any good documentation on how to create one. I have 'Struts2 web 2.0 projects' book by Ian Roughly and it does not show how to create your own custom tags. I believe If I were to create a custom tag for this I will take most of the code from the iterator tag and just add a few bits to it? Can someone please just exaplain some steps that are involved in making a custom tag? Thanks -bhaarat On Sat, May 30, 2009 at 8:00 AM, Martin Gainty mgai...@hotmail.com wrote: Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009 _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009 -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: why doesnt iterator tag provide 'next'
I will take a look at it when I have a chance, this would be very easy to implement. musachy On Sat, May 30, 2009 at 11:45 AM, Musachy Barroso musa...@gmail.com wrote: I would suggest you to write a new tag, as a patch to struts core (look at the other tags, all you need is 2 classes and a couple of annotations). What this break tag would need to do is find the parent iterator tag, and somehow let it know that the iteration is over. musachy On Sat, May 30, 2009 at 10:51 AM, Martin Gainty mgai...@hotmail.com wrote: Bharaat did you get a change to read musachy's tag developer guide http://struts.apache.org/2.0.14/docs/tag-developers-guide.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 08:51:17 -0400 Subject: Re: why doesnt iterator tag provide 'next' From: bhaara...@gmail.com To: user@struts.apache.org I actually would like to make a custom tag out of this as I think it might be helpful to others as well. However, I cant find any good documentation on how to create one. I have 'Struts2 web 2.0 projects' book by Ian Roughly and it does not show how to create your own custom tags. I believe If I were to create a custom tag for this I will take most of the code from the iterator tag and just add a few bits to it? Can someone please just exaplain some steps that are involved in making a custom tag? Thanks -bhaarat On Sat, May 30, 2009 at 8:00 AM, Martin Gainty mgai...@hotmail.com wrote: Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009 _ Insert movie times and more without leaving Hotmail®.
Re: html:errors/ error validation error
%...@page contentType=text/html% %...@page pageEncoding=UTF-8% %@ taglib uri=http://struts.apache.org/tags-html; prefix=bean % %@ taglib uri=http://struts.apache.org/tags-html; prefix=html % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head link rel=stylesheet type=text/css href=menu.css meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleLogin/title /head body jsp:include page=head.jsp/ div id=login h1Login Form/h1 html:form action=/login table border=0 cellpadding=10px cellspacing=10px width=400px tbody tr td register.jsp Register to login /td /tr tr tdEnter Your user name:/td tdhtml:text property=name //td /tr tr tdEnter Your Password:/td tdhtml:password property=password //td /tr tr tdhtml:submit value=Login //td tdhtml:reset value= //td td forgetpass.jsp Forget Password /td /tr /tbody /table html:errors property=error.name.required / /html:form /div /body /html no error out put still it is configured...what to do? Paul Benedict-2 wrote: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/%3Chtml%3Aerrors-%3E-error-validation-error-tp23765113p23796476.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: why doesnt iterator tag provide 'next'
Musachy, I think you have the wrong impression. This is not a 'break' tag...this would work same as in iterator tag BUT would also have a functionality where the user can go to the next element within the iteration. Thanks On Sat, May 30, 2009 at 11:46 AM, Musachy Barroso musa...@gmail.com wrote: I will take a look at it when I have a chance, this would be very easy to implement. musachy On Sat, May 30, 2009 at 11:45 AM, Musachy Barroso musa...@gmail.com wrote: I would suggest you to write a new tag, as a patch to struts core (look at the other tags, all you need is 2 classes and a couple of annotations). What this break tag would need to do is find the parent iterator tag, and somehow let it know that the iteration is over. musachy On Sat, May 30, 2009 at 10:51 AM, Martin Gainty mgai...@hotmail.com wrote: Bharaat did you get a change to read musachy's tag developer guide http://struts.apache.org/2.0.14/docs/tag-developers-guide.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 08:51:17 -0400 Subject: Re: why doesnt iterator tag provide 'next' From: bhaara...@gmail.com To: user@struts.apache.org I actually would like to make a custom tag out of this as I think it might be helpful to others as well. However, I cant find any good documentation on how to create one. I have 'Struts2 web 2.0 projects' book by Ian Roughly and it does not show how to create your own custom tags. I believe If I were to create a custom tag for this I will take most of the code from the iterator tag and just add a few bits to it? Can someone please just exaplain some steps that are involved in making a custom tag? Thanks -bhaarat On Sat, May 30, 2009 at 8:00 AM, Martin Gainty mgai...@hotmail.com wrote: Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's a simple iterator, just like Java's for (Type var : collection) construct or JSTL's forEach tag. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional
Re: why doesnt iterator tag provide 'next'
Bhaarat Sharma wrote: This is not a 'break' tag...this would work same as in iterator tag BUT would also have a functionality where the user can go to the next element within the iteration. IMO depending on ordering within a collection is an accident waiting to happen, but the functionality itself shouldn't be much more difficult. FWIW, this functionality could most likely be achieved via OGNL and a couple of collection operations or, less cleanly, via subset/decider. A break tag would be nice, though. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: html:errors/ error validation error
Paul we will need to see web.xml struts.xml struts-default.xml need to determine which action class '/login' is maps to then we'll need to see your java action class as well thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 12:10:12 -0700 From: coolsayan.2...@gmail.com To: user@struts.apache.org Subject: Re: html:errors/ error validation error %...@page contentType=text/html% %...@page pageEncoding=UTF-8% %@ taglib uri=http://struts.apache.org/tags-html; prefix=bean % %@ taglib uri=http://struts.apache.org/tags-html; prefix=html % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head link rel=stylesheet type=text/css href=menu.css meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleLogin/title /head body jsp:include page=head.jsp/ div id=login h1Login Form/h1 html:form action=/login table border=0 cellpadding=10px cellspacing=10px width=400px tbody tr td register.jsp Register to login /td /tr tr tdEnter Your user name:/td tdhtml:text property=name //td /tr tr tdEnter Your Password:/td tdhtml:password property=password //td /tr tr tdhtml:submit value=Login //td tdhtml:reset value= //td td forgetpass.jsp Forget Password /td /tr /tbody /table html:errors property=error.name.required / /html:form /div /body /html no error out put still it is configured...what to do? Paul Benedict-2 wrote: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/%3Chtml%3Aerrors-%3E-error-validation-error-tp23765113p23796476.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
Re: why doesnt iterator tag provide 'next'
I have not started on it yet. Dave, how would you do it with OGNL? can we write our own? I have something like this in mind s:iteratorNext value = myList s:property value=someMethodFirstItem/ s:property value=someMethodSecondItem nextNum=1/ s:property value=someMethodThirdItem nextNum=2/ /s:iteratorNext ...how would you do it? On Sat, May 30, 2009 at 8:34 PM, Dave Newton newton.d...@yahoo.com wrote: Bhaarat Sharma wrote: This is not a 'break' tag...this would work same as in iterator tag BUT would also have a functionality where the user can go to the next element within the iteration. IMO depending on ordering within a collection is an accident waiting to happen, but the functionality itself shouldn't be much more difficult. FWIW, this functionality could most likely be achieved via OGNL and a couple of collection operations or, less cleanly, via subset/decider. A break tag would be nice, though. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: why doesnt iterator tag provide 'next'
duh..I sometimes read the whole email, believe me :). I have had a couple of scenarios where break would be nice, but I always go around it using if, same thing for next, just more often. musachy On Sat, May 30, 2009 at 8:10 PM, Bhaarat Sharma bhaara...@gmail.com wrote: Musachy, I think you have the wrong impression. This is not a 'break' tag...this would work same as in iterator tag BUT would also have a functionality where the user can go to the next element within the iteration. Thanks On Sat, May 30, 2009 at 11:46 AM, Musachy Barroso musa...@gmail.com wrote: I will take a look at it when I have a chance, this would be very easy to implement. musachy On Sat, May 30, 2009 at 11:45 AM, Musachy Barroso musa...@gmail.com wrote: I would suggest you to write a new tag, as a patch to struts core (look at the other tags, all you need is 2 classes and a couple of annotations). What this break tag would need to do is find the parent iterator tag, and somehow let it know that the iteration is over. musachy On Sat, May 30, 2009 at 10:51 AM, Martin Gainty mgai...@hotmail.com wrote: Bharaat did you get a change to read musachy's tag developer guide http://struts.apache.org/2.0.14/docs/tag-developers-guide.html ? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 08:51:17 -0400 Subject: Re: why doesnt iterator tag provide 'next' From: bhaara...@gmail.com To: user@struts.apache.org I actually would like to make a custom tag out of this as I think it might be helpful to others as well. However, I cant find any good documentation on how to create one. I have 'Struts2 web 2.0 projects' book by Ian Roughly and it does not show how to create your own custom tags. I believe If I were to create a custom tag for this I will take most of the code from the iterator tag and just add a few bits to it? Can someone please just exaplain some steps that are involved in making a custom tag? Thanks -bhaarat On Sat, May 30, 2009 at 8:00 AM, Martin Gainty mgai...@hotmail.com wrote: Good Morning Bharaat struts tags have an extensible design which can be expanded for future requirements can you suggest a testcase to implement this functionality? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 30 May 2009 00:25:16 -0400 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: why doesnt iterator tag provide 'next' Bhaarat Sharma wrote: Iterator it = myList.iterator() while (it.hasNext()) { SomeClass ob1 = (SomeClass) it.next(); SomeClass ob2 = (SomeClass) it.next(); //do something } why can we not achieve the same with s:iterator tag. What was the reasoning behind not providing a 'next' or something similar? Because it's