Re: Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long

2022-07-12 Thread Lukasz Lenart
wt., 12 lip 2022 o 21:44 Krishnaraj Viswanathan napisał(a): > > Hi, > We upgrade our dev environment from Struts 2.5.30 to Struts 6.0.0 > and we found that our "s:select" tag with a "list" attribute of time > intervals (list="#{'12:00&#

RE: Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long

2022-07-12 Thread Krishnaraj Viswanathan
: 12 July 2022 18:08 To: user@struts.apache.org Subject: [External] : Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long Hi, We upgrade our dev environment from Struts 2.5.30 to Struts 6.0.0 and we found that our "s:select" tag wi

Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long

2022-07-12 Thread Krishnaraj Viswanathan
Hi, We upgrade our dev environment from Struts 2.5.30 to Struts 6.0.0 and we found that our "s:select" tag with a "list" attribute of time intervals (list="#{'12:00':'12:00 PM', '12:30':'12:30 PM', '13:00':&#x

Re: How to reference the value of a List collection on s:select tag?

2022-02-21 Thread Lukasz Lenart
pon., 21 lut 2022 o 22:09 Burton Rhodes napisał(a): > > Nice - that was it. Thanks! > > Is that in the documentation anywhere? There is some reference here https://struts.apache.org/tag-developers/ognl-basics If you need more info I can try to extend the docs. Regards -- Łukasz + 48 606 323 1

Re: How to reference the value of a List collection on s:select tag?

2022-02-21 Thread Burton Rhodes
Nice - that was it. Thanks! Is that in the documentation anywhere? On Mon, Feb 21, 2022 at 2:27 PM Lukasz Lenart wrote: > pon., 21 lut 2022 o 20:38 Burton Rhodes > napisał(a): > > > > I am using the s:select tag and filling it with a List - pretty > > basic. However

Re: How to reference the value of a List collection on s:select tag?

2022-02-21 Thread Lukasz Lenart
pon., 21 lut 2022 o 20:38 Burton Rhodes napisał(a): > > I am using the s:select tag and filling it with a List - pretty > basic. However, I am wanting to change the value that is displayed by > adding a character before the String, but I can't figure out how to > reference th

How to reference the value of a List collection on s:select tag?

2022-02-21 Thread Burton Rhodes
I am using the s:select tag and filling it with a List - pretty basic. However, I am wanting to change the value that is displayed by adding a character before the String, but I can't figure out how to reference the item itself (since it's not an object with properties). The code bel

Re: How to display both selected key and value of s:select

2018-12-27 Thread albert kao
> foreach (c in countryList) if(c.countryId==selectedCountry) return c; > } > ... > } > > > > Thanks for using Struts. > > Kind Regards. > > >-Original Message- > >From: albert kao > >Sent: Saturday, December 22, 2018 6:39 PM > >To: Strut

RE: How to display both selected key and value of s:select

2018-12-24 Thread Yasser Zamani
t;From: albert kao >Sent: Saturday, December 22, 2018 6:39 PM >To: Struts Users Mailing List >Subject: How to display both selected key and value of s:select > >I want to display both selected key and value of s:select. >e.g. for the following codes, after I select key="2&qu

How to display both selected key and value of s:select

2018-12-22 Thread albert kao
I want to display both selected key and value of s:select. e.g. for the following codes, after I select key="2", value="Canada" and press the submit button. Only the key "Country: 2" is displayed in the registerResult.jsp as desired. How to make the value "Can

RE: Struts 2.5 S:Select tag with Multiple True

2018-07-15 Thread Yasser Zamani
selected items on each click and reselect all of them on each click too. Regards. >-Original Message- >From: Kiran Kongala >Sent: Saturday, July 14, 2018 3:32 PM >To: Struts Users Mailing List >Subject: Struts 2.5 S:Select tag with Multiple True > >Hi Guys,

Re: Struts 2.5 S:Select tag with Multiple True

2018-07-14 Thread Arjuna Bandara
Hi, kiran, Have you tried with "value" property? On Sat, Jul 14, 2018, 4:31 PM Kiran Kongala wrote: > Hi Guys, > > We are using Struts 2.5.13 in our Enterprise Java Application and one of > the jsp page has many Struts Select tags with multiple=true(s:select > mu

Struts 2.5 S:Select tag with Multiple True

2018-07-14 Thread Kiran Kongala
Hi Guys, We are using Struts 2.5.13 in our Enterprise Java Application and one of the jsp page has many Struts Select tags with multiple=true(s:select multiple=true) . I know that for selecting/deselecting multiple items in the list, we have to hold the Ctrl Key. But for the Users who are using

Re: s:select selected option from a list based on a condition

2017-11-20 Thread Lukasz Lenart
2017-11-20 14:30 GMT+01:00 heberr...@gmail.com : > list="students" listKey="sid" listValue="name" > value="defaultStudent.equals('true')" > /> > > I have a select tag as above. The Student object has a boolean value > defaultStudent with getter isDefaultStudent. How to pre-select the default >

Re: s:select selected option from a list based on a condition

2017-11-20 Thread Yasser Zamani
On 11/20/2017 5:00 PM, heberr...@gmail.com wrote: >list="students" listKey="sid" listValue="name" > value="defaultStudent.equals('true')" > /> > > I have a select tag as above. The Student object has a boolean value > defaultStudent with getter isDefaultStudent. How to pre-select the defa

s:select selected option from a list based on a condition

2017-11-20 Thread heberr...@gmail.com
I have a select tag as above. The Student object has a boolean value defaultStudent with getter isDefaultStudent. How to pre-select the default student based on this boolean value. Value accepts only static value, not condition.

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-03 Thread Kiran
Thank you Lucasz for looking into this. Yes I Have all the setter and getter for all the properties. Its working now. I just need to give the whole path of the property in the s:select value attribute. Like value="%{diseasetracking.diagnosisDTO.primaryDiagnosis}" Because I have the p

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-03 Thread Lukasz Lenart
2017-04-03 16:04 GMT+02:00 Kiran Kongala : > > listKey=*"dstLookupTypeId"* > Do you have a getter for this value? getDstLookupTypeId() ? > listValue=*"lookupValue"* > Same here, do you have a getter? getLookupValue() ? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ PS. Do not inl

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-03 Thread Kiran Kongala
vice in action and if I assign that value to 'diagnosisDTO.primaryDiagnosis' name in the action model, I thought it will pick that value as selected. If I remove the listKey and list Value from the s:select tag, I am getting the complete object in the drop down as below

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-03 Thread Lukasz Lenart
s.But the value > doesnt set the value back to the s:select drop down list.* > If you are comparing Strings why do use listKey and listValue? These attributes are used to fetch an object's property and compare it with value pointed by the "name" attribute. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Kiran Kongala
aryDiagnosis? If you do not get a value, then check to > > make sure the path is right or that something is not wrong in your action > > that is populating it. Also verify that the key property in your list is > > the same type as the value being set, both Integer for exa

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Kiran Kongala
Hi Lulasz, *I am not comparing the same objects.I am trying to compare the String to a constant String.Still do I need to override the equals and hashCode methods.* *I added a tag in the jsp and I see the values.But the value doesnt set the value back to the s:select drop down list.* *The

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Paul Zepernick
is not wrong in your action > that is populating it. Also verify that the key property in your list is > the same type as the value being set, both Integer for example. > > On Apr 1, 2017 7:38 PM, Kiran Kongala wrote: > Hi, > > I am trying to use the Struts2 s:select tag b

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-02 Thread Lukasz Lenart
e a s:property to evaluate >> diagnosisDTO.primaryDiagnosis? If you do not get a value, then check to >> make sure the path is right or that something is not wrong in your action >> that is populating it. Also verify that the key property in your list is >> the same type as the

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-01 Thread Kiran Kongala
7 7:38 PM, Kiran Kongala wrote: > Hi, > > I am trying to use the Struts2 s:select tag but the drop down value coming > from the db is not being set to the drop down as selected value and the > screen always shows the default first value in the list. > > Can some one please h

Re: Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-01 Thread Paul Zepernick
value being set, both Integer for example. On Apr 1, 2017 7:38 PM, Kiran Kongala wrote: Hi, I am trying to use the Struts2 s:select tag but the drop down value coming from the db is not being set to the drop down as selected value and the screen always shows the default first value in the list

Issue with Struts2 s:select tag with Object inside a Model Object

2017-04-01 Thread Kiran Kongala
Hi, I am trying to use the Struts2 s:select tag but the drop down value coming from the db is not being set to the drop down as selected value and the screen always shows the default first value in the list. Can some one please help me. *JSP Code* *Action Class Code* *I have Disease

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-17 Thread Lukasz Lenart
2014-12-16 18:01 GMT+01:00 Roger Varley : > No - that marks it for auto-scanning. In the meantime I've gone back to > 2.3.16.1 and everything is working again :( That won't help ;-) Can you share more details about your application configuration? Or prepare a small demo app that behaves the same w

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
No - that marks it for auto-scanning. In the meantime I've gone back to 2.3.16.1 and everything is working again :( Regards On 16 December 2014 at 18:00, Lukasz Lenart wrote: > > 2014-12-16 15:23 GMT+01:00 Roger Varley : > > import org.springframework.stereotype.Service; > > > > @Service > > Doe

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
2014-12-16 15:23 GMT+01:00 Roger Varley : > import org.springframework.stereotype.Service; > > @Service Doesn't this annotation define Singleton? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
2014-12-16 16:37 GMT+01:00 Sreekanth S. Nair : > Hi Lukasz, > Could it be the same problem what i was facing about rest > plugin ? Nope, your problem was missing configuration for coexisting normal web app with rest endpoints Regards -- Łukasz + 48 606 323 122 http://www.lenart

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Sreekanth S. Nair
Hi Lukasz, Could it be the same problem what i was facing about rest plugin ? Hi Roger, Don't know if you are using rest plugin, if so can remove that plugin and try again ? -- Thanks & Regards Sreekanth S Nair Java Developer --

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
Oh bugger :( I've got actions failing all over the place - but strangely, not all of them. The config-browser plugin see's my configured namespaces, but lists no actions in any of them. Regards On 16 December 2014 at 16:23, Roger Varley wrote: > > Yes, I do. I've checked - and calling the action

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
Yes, I do. I've checked - and calling the action directly from the browser gives the same response. The action code is below. Regards package com.blackbox.x.actions.admin; import java.util.List; import org.springframework.stereotype.Service; import com.blackbox.entities.db.Platform; import com

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
2014-12-16 15:03 GMT+01:00 Roger Varley : > Referring to the log file, the dump was preceded by the following few lines; > > 16 Dec 2014 15:44:09 ERROR ActionComponent,"http-bio-8080"-exec-5:42 - > Could not execute action: /admin/list-platforms > There is no Action mapped for namespace [/admin

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
Referring to the log file, the dump was preceded by the following few lines; 16 Dec 2014 15:44:09 ERROR ActionComponent,"http-bio-8080"-exec-5:42 - Could not execute action: /admin/list-platforms There is no Action mapped for namespace [/admin] and action name [list-platforms] associated with

Re: 2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Lukasz Lenart
Can you post the whole log? Maybe there are some warnings 2014-12-16 14:48 GMT+01:00 Roger Varley : > Hi > > After upgrading to 2.3.20 from 2.3.16.1 the following .jsp snippet fails to > compile. Reverting back to 2.3.16.1 and it starts to work again. > > > listValue=

2.3.20 Bug with s:action or s:select tag

2014-12-16 Thread Roger Varley
Hi After upgrading to 2.3.20 from 2.3.16.1 the following .jsp snippet fails to compile. Reverting back to 2.3.16.1 and it starts to work again. org.apache.jasper.JasperException: tag 'select', field 'list', name 'platformId': The requested list key '#list.platforms' could not be re

Re: Required attribute on s:select & s:file

2014-03-27 Thread Lukasz Lenart
required was renamed to requiredLabel https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.12.0 2014-03-26 22:37 GMT+01:00 : > We upgraded from struts 2.3.8 to 2.3.16. > Now any page that has a s:select or s:file tag with required="true" does not > display. &g

Required attribute on s:select & s:file

2014-03-27 Thread sirajka
We upgraded from struts 2.3.8 to 2.3.16. Now any page that has a s:select or s:file tag with required="true" does not display. s:textfield works fine We are running Websphere 8 Can anyone corroborate? Stacktrace follows: [3/26/14 15:43:10:599 CDT] 0185 SystemOut O WebCont

s:select detail question for preselected

2013-08-02 Thread john lee
for following jsp, i can retrieve the data from KeywordcategoryAction for no problem,     the contents of retrieved list is   Motor   Electrical   Temperature       but, the default value(why) as defined from KeywordcategoryAction did not wor

Re: s:select - option appears with no displayed value w/html brackets

2013-08-01 Thread Lukasz Lenart
2013/7/31 CRANFORD, CHRIS : > We just discovered that if a Map gets passed to a select-tag > where the entry's key/value pair are ""/"" that the > option's value attribute contains "" as one would have expected, > but the body of the option-tag is empty as seen here > > > > There isn't

s:select - option appears with no displayed value w/html brackets

2013-07-31 Thread CRANFORD, CHRIS
We just discovered that if a Map gets passed to a select-tag where the entry's key/value pair are ""/"" that the option's value attribute contains "" as one would have expected, but the body of the option-tag is empty as seen here There isn't a clean way to scrub this data to eliminat

Re: How to set the name parameter on a multiple s:select

2013-05-30 Thread Dale Newfield
On May 30, 2013, at 5:42 AM, Miguel Almeida wrote: > That's an alternative, yes. I do tend to prefer having the model objects > in my actions though, to keep the number of objects to a minimum - it > makes more sense to have a List objects than an Integer[] > ids, but maybe that's personal prefere

Re: How to set the name parameter on a multiple s:select

2013-05-30 Thread Miguel Almeida
ks as expected (as evidenced by the test case [1]). The challenge is to create an s:select that generates that request parameters! Miguel [1] Unit Test snippet request.setParameter("entity.entity2List[0].entity3.id", "2"); request.setParameter("e

Re: How to set the name parameter on a multiple s:select

2013-05-29 Thread Dale Newfield
ntity has a List entity2List > - Entity2 has a Entity3 entity3 > > Now, you need an s:select with multiple="true" to populate entity3. This > corresponds to having a request in the form > entity.entity2List[n].entity3.id (n=0,1,2...depending on how many items > are selected). >

Re: How to set the name parameter on a multiple s:select

2013-05-29 Thread Miguel Almeida
eida wrote: > Imagine you have the following scenario: > - a property in your action: private Entity entity; > > - Entity has a List entity2List > - Entity2 has a Entity3 entity3 > > Now, you need an s:select with multiple="true" to populate entity3. > This &

How to set the name parameter on a multiple s:select

2013-05-29 Thread Miguel Almeida
Dear all, Imagine you have the following scenario: - a property in your action: private Entity entity; - Entity has a List entity2List - Entity2 has a Entity3 entity3 Now, you need an s:select with multiple="true" to populate entity3. This corresponds to having a request i

RE: s:select rendering

2012-11-26 Thread Martin Gainty
à 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. > From: lukaszlen...@apache.org > Date: Mon, 2

Re: Re: s:select rendering

2012-11-26 Thread Lukasz Lenart
2012/11/21 Omar Colombari : > I'm using >org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter > > Regarding WebSphere 6.x I'm not able to find any documentation on the > problem. As I said, it's really hard to debug your problem as I don't have access to WebSphere 6.1 :\ But i

Re: Re: s:select rendering

2012-11-21 Thread Omar Colombari
I'm using org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter Regarding WebSphere 6.x I'm not able to find any documentation on the problem. Omar.

Re: s:select rendering

2012-11-20 Thread Lukasz Lenart
2012/11/20 Omar Colombari : > Server is Websphere 6.1 > Struts2 2.3.1.2 I suspected that it will be WebSphere :\ I think this will not help http://struts.apache.org/2.x/docs/websphere.html Do you use the new Filter or still base on FilterDispatcher ? The problem is that I cannot test on WebSphe

Re: s:select rendering

2012-11-20 Thread Omar Colombari
Server is Websphere 6.1 Struts2 2.3.1.2 The jar list: asm-3.3.jar asm-commons-3.3.jar commons-beanutils-1.7.0.jar commons-codec-1.2.jar commons-collections-3.1.jar commons-digester-2.0.jar commons-fileupload-1.2.2.jar commons-io-1.3.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-loggin

Re: s:select rendering

2012-11-19 Thread Lukasz Lenart
2012/11/19 Omar Colombari : > The "s:select" component sometime has a wrong rendering. In the html page > is shown as value of the options the object references (like @package.bean) > or > for the "s:select" component using fixed list value sometime is rendering

RE: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Marcus Bond
aps an ... Marcus -Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: 11 August 2011 16:41 To: Struts Users Mailing List; em...@encs.concordia.ca Subject: Re: how to make onchange in s:select to submit a form and call a specific method in one action class > O

Re: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Christian Grobmeier
> Or someone could provide more info will "sj:select" help satisfy the > following requirement? > > (1) > (2) > (3) > > Actually, I prefer not to use complex javascript code to do change select1, > select2 is updated, change select2, and select3 is updated. No chance without javascript. There i

Re: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Emi Lu
lues from a.jsp database actions ... ... return a.jsp; } I'd like to know: === When values changed in s:select, how to submit the form and call change() method in Process.java Thanks lot! Emi - To

RE: how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Biesbrock, Kevin
To: Struts Users Mailing List > Subject: how to make onchange in s:select to submit a form > and call a specific method in one action class > > Good morning, > > In struts2.2.3, how to submit a form to a predefined action? > > For example, > > (1) a.jsp >

how to make onchange in s:select to submit a form and call a specific method in one action class

2011-08-11 Thread Emi Lu
ed in s:select, how to submit the form and call change() method in Process.java Thanks lot! Emi - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: s:select dropdown box problem: cannot locate list

2011-04-05 Thread Kushan Jayathilake
When you invoking the page through the browser, you will be typing something similar to this right? *http://localhost:/app_name/action_name* So it will be as *http://localhost:/app_name/Register.* and i'm not sure whether mentioning *method="{1}"* will call the *populate *method there. try by p

s:select dropdown box problem: cannot locate list

2011-04-05 Thread Jeff Huang
Hi All, I need urgent help on this! help greatly appreciated..been stuck on this for a LONG time! it is not able to locate conditionList Servlet.service() for servlet jsp threw exception tag 'select', field 'list', name 'bookCondition': The requested list key 'conditionList' could not be resolv

Re: unicode breaks s:select?

2010-12-16 Thread Alex Rodriguez Lopez
Have you got this on top of JSPs? <%@ page contentType="text/html; charset=UTF-8" %> Patrick Cosmo, 15-12-2010 17:40: Hi! When using "s:select", if the list of data returned by my java class contains strings that have unicode characters in them, "s:select&qu

Re: unicode breaks s:select?

2010-12-15 Thread Maurizio Cucchiara
I'm not aware of such behavior (I am Italian, and we use the accented characters more than anything else). Did you get some more details?(like struts version, stack trace) Maurizio Cucchiara Il giorno 15/dic/2010 18.40, "Patrick Cosmo" ha scritto: Hi! When using "s:select&q

unicode breaks s:select?

2010-12-15 Thread Patrick Cosmo
Hi! When using "s:select", if the list of data returned by my java class contains strings that have unicode characters in them, "s:select" fails to generate the entire tag, it dies at the unicode character. For example, this tag: When "userTypeList" ha

Re: s:textfield or s:select with button

2010-10-31 Thread Dave Newton
On Sunday, October 31, 2010, Li Ying wrote: > Try put them in same row of a table: This will only work if you're not using a theme that renders layout, as the default "xhtml" theme does. Dave - To unsubscribe, e-mail: user-unsub

Re: s:textfield or s:select with button

2010-10-31 Thread Li Ying
Try put them in same row of a table: 2010/11/1 cellterry : > > Dear all, > > I have a question about s:textfield or s:select with a command button just > following it. > > For example, I have tried this: > > > > > I found th

Re: s:textfield or s:select with button

2010-10-31 Thread Dave Newton
On Sun, Oct 31, 2010 at 2:27 PM, cellterry wrote: > For example, I have tried this: > > > > > [...] the button "..." is not following the [text field] but is on the next > line. What theme are you using? If you're using the default theme "xhtml" this is what it should be doing; please notice th

s:textfield or s:select with button

2010-10-31 Thread cellterry
Dear all, I have a question about s:textfield or s:select with a command button just following it. For example, I have tried this: I found that the button "..." is not following the selection box but is on the next line. Do anyone know how to correct the position so that it is j

Re: s:select help

2010-05-05 Thread Upasana Sharma
i am too trying to do the same thing using checkbox but the key value is not passed to getText() if you come up with some way to achieve this please let us know thanks in advance On Tue, May 4, 2010 at 6:33 PM, RogerV wrote: > > > > Upasana Sharma wrote: > > > > listValue="%{getText('myCat

Re: s:select help

2010-05-04 Thread Alex Rodriguez Lopez
Maybe using OGNL along with #this or #attr . Haven't checked that out but it should work some of these ways: http://struts.apache.org/2.0.14/docs/ognl-basics.html http://www.opensymphony.com/ognl/html/LanguageGuide/varref.html Em 04-05-2010 14:03, RogerV escreveu: Upasana Sharma wrote: li

Re: s:select help

2010-05-04 Thread RogerV
Upasana Sharma wrote: > > listValue="%{getText('myCategory.'+toString())}" > > this way i can change the select display value from .properties file > > in .properties i have to use > > myCategory.ELECTRIC= Electric > Neat. I'm trying to do the same thing with the tag. http://old.nabble.c

Re: s:select help

2010-05-04 Thread Upasana Sharma
is some function called ordinal() in enum. can > anyone suggest how can i use it in s:select tag > > > > On Tue, May 4, 2010 at 12:01 PM, Upasana Sharma wrote: > >> Hi I am using s:select and populating it with enum . >> >> >> the enum is like >> >&g

Re: s:select help

2010-05-03 Thread Upasana Sharma
I have also seen that there is some function called ordinal() in enum. can anyone suggest how can i use it in s:select tag On Tue, May 4, 2010 at 12:01 PM, Upasana Sharma wrote: > Hi I am using s:select and populating it with enum . > > > the enum is like > > public e

s:select help

2010-05-03 Thread Upasana Sharma
Hi I am using s:select and populating it with enum . the enum is like public enum EComplaintType { CLUB_HOUSE(0), ELECTRIC(1); } In the jsp the select is formed as CLUB_HOUSE ELECTRIC Here both the key and value for the select are the same as the Name i have given in enum

Re: Setting selected with s:select tags

2010-04-26 Thread Kartik Kumar
Hi Martin, Thanks for the reply. I apologize if I was not clear earlier. Let me try to rephrase my question again. The 'selected' value of the auto-select comes from another bean property. The iterator is used to iterate over an action specific bean property. The s:select is u

RE: Setting selected with s:select tags

2010-04-24 Thread Martin Gainty
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: Fri, 23 Apr 2010 17:11:24 -0700 > Subject: Setting selected with s:select tags > F

Re: Setting selected with s:select tags

2010-04-24 Thread Denis Cabasson
Hi Kartik, Remove the attribute value from your s:select tag, and in your action, preset the value of your attribute actionStatus (on your Action class) to "OPEN" or "CLOSED". At least, it is working in my case. Let us know if it is not working for you that way, and I

Re: Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
Kumar wrote: > Hi Struts gurus, > > I am have an object level attribute that is selected from the s:select tag. > > list="#{'': 'Select One', > 'bean.attributeValue':'bean.attributeValue', 'abc':'abc'}" &

Setting selected with s:select tags

2010-04-23 Thread Kartik Kumar
Hi Struts gurus, I am have an object level attribute that is selected from the s:select tag. If I want to set 'abc' to selected, then how do do that ? Any advice would be welcome. Thanks, Kartik

Re: Populate s:select with a Map

2010-04-13 Thread Stephane Cosmeur
I forgot (again) to say that the s:select tag is even not displayed on the jsp. That's why i think it's a problem of populating, but i don't really understand how the s:select will provide the Integer key to my class company who is waiting for an Integer after the submit. Anyway

Re: Populate s:select with a Map

2010-04-12 Thread Stephane Cosmeur
I tried this as well : Regards, On Tue, Apr 13, 2010 at 12:51 PM, Stephane Cosmeur wrote: > Hello > > I know my problem is quite common but i can't figure out by google and > myself, although many people had the same problem. > > I try to populate a s:select with a ma

Populate s:select with a Map

2010-04-12 Thread Stephane Cosmeur
Hello I know my problem is quite common but i can't figure out by google and myself, although many people had the same problem. I try to populate a s:select with a map (Map, but i got the (well known) following error : tag 'select', field 'list', id 'typeCompanyENUM

Re: How to get s:select id and name under struts2 action?

2010-03-23 Thread Alex Rodriguez Lopez
Long like so in your action: private List test = new ArrayList(); plus the getters and setters (getTest(), setTest()). test is the name you gave in the select (). Struts2 will polulate the list with the selected ids. Em 23-03-2010 02:43, red phoenix escreveu: I have a jsp,it contains a s:select

Re: How to get s:select id and name under struts2 action?

2010-03-23 Thread Alex Rodriguez Lopez
-03-2010 02:43, red phoenix escreveu: I have a jsp,it contains a s:select,like follows: When this jsp submit,it will submit to a struts2 action,I want to know how to get all id and name of s:select and how to get selected id and name of s:select ? How to do it? An example is better. Thanks

How to get s:select id and name under struts2 action?

2010-03-22 Thread red phoenix
I have a jsp,it contains a s:select,like follows: When this jsp submit,it will submit to a struts2 action,I want to know how to get all id and name of s:select and how to get selected id and name of s:select ? How to do it? An example is better. Thanks!

Re: s:select and indents

2010-02-12 Thread DustFrog
Would using the optgroup tag in conjunction with the select tag meet your needs? Refer to the HTML documentation: http://struts.apache.org/2.0.14/docs/optgroup.html -- View this message in context: http://old.nabble.com/s%3Aselect-and-indents-tp27568708p27570656.html Sent from the Struts - Use

s:select and indents

2010-02-12 Thread CRANFORD, CHRIS
Is it possible to use the s:select tag in order to render a list of values by allowing spaces to be used to indent the options in a tree-like hierarchy or is there another preferenced way of doing this? I found in the select.ftl template where I could change "${itemValue?html}" to &q

Re: Can s:select multiple have a object.someList as name?

2010-02-12 Thread wild_oscar
wild_oscar wrote: > > > I am trying to pass the multple selected items on a s:select onto a > List that I have on an "some" object: > > Some{ > List seriousness; ...} > > I am using spring to inject "some" in my action: >

s:select escape

2009-12-10 Thread CRANFORD, CHRIS
How can I use the tag in order to display a Map pair without the displayed value being escaped? I am needing to indent portions of the dropdown list like a parent/child and it appears the default behavior is to escape my ampersand. I can use an and combination to create the dropdown but loo

Re: Re: Help with S:Select

2009-12-04 Thread aruna . hcu
the below code works to make the select option required. If nothing is selected displays the provided message. In validation.xml !(user.department).equals("1") Please select a department. -- This message was sent on behalf of aruna

Can s:select multiple have a object.someList as name?

2009-11-12 Thread wild_oscar
I am trying to pass the multple selected items on a s:select onto a List that I have on an "some" object: Some{ List seriousness; ...} I am using spring to inject "some" in my action: Using a: I'm facing an issue: the some.seriousness is being injec

Re: Localized key values in s:select

2009-11-12 Thread Brian Thompson
Try this: 2009/11/12 Ignacio de Córdoba > > Hello, > I wonder if it is possible to make s:select tag localize the content of > option elements. I am using: > > list="%{categories}" listKey="id" listValue="name" emptyOption="true"/&

Re: Localized key values in s:select

2009-11-12 Thread Paweł Wielgus
acio de Córdoba escribió: > > Hello, > I wonder if it is possible to make s:select tag localize the content of > option elements. I am using: > > list="%{categories}"  listKey="id" listValue="name" emptyOption="true"/> > > I'd like

Localized key values in s:select

2009-11-12 Thread Ignacio de Córdoba
Hello, I wonder if it is possible to make s:select tag localize the content of option elements. I am using: I'd like attribute listValue="name" property value if the objects iterated not to be shown "as is" but to be used as a key to the language property fi

Re: Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-25 Thread Anandkris
Hi Musachy, Thanks for the reply. I debugged and just found that the select tag could not render "children[i]" as a list element.As I mentioned before if I change children[i] to children(i), just to try whats happening, the page loads fine. Since we work on Agile and had a deadline of an hr or so,

Re: Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-22 Thread Musachy Barroso
can you debug it and see what is actually null? It seems like a bug. That being said, I am building 2.1.8 as we speak, so if you are planning to upgrade, it might be worth waiting a bit. musachy On Tue, Sep 22, 2009 at 3:44 PM, Anandkris wrote: > OgnlValueStack -- "Hey you! Would you help me

Nullpointerexception s:select tag on name="alist[#status.index].something"

2009-09-22 Thread Anandkris
t. In the following code s:textfield tag works fine but the s:select tag throws a nullpointer exception. /// children[%{#stat.index}] works great here children[%{#stat.index}].beginAge throws null pointer And the exception is : SEVERE: Servlet.ser

Re: s:select populate error

2009-08-07 Thread Mileidys Gonzalez Prieto
ok... I found the way: in the Action class, the list need to be create on the getter... thats all Mileidys Gonzalez Prieto wrote: Hi... I'm getting an error when I run a page that contains a select tag and the list call an element of type Map... I been searching on internet and trying so many

s:select populate error

2009-08-07 Thread Mileidys Gonzalez Prieto
Hi... I'm getting an error when I run a page that contains a select tag and the list call an element of type Map... I been searching on internet and trying so many things without any success.. error info: tag 'select', field 'list', name 'relation.relGender': The requested list key 'rsGender'

Re: getting listValue back to actionclass from s:select tag

2009-07-27 Thread musomesa
listValue back to actionclass from s:select tag I have a s:select tag which is working fine. html code made out of that is: Reason1* Reason2 Reason3* when user selects stuff from this select box and submits what is sent back is listKey. Is there

  1   2   3   >