Re: struts 1.2 html:select and submit button

2011-07-06 Thread hijayanth
Hi, Can you please let how did you address your requirement of having multiple action classes? Thanks and regards, jayanth -- View this message in context: http://struts.1045723.n5.nabble.com/struts-1-2-html-select-and-submit-button-tp3477760p4558693.html Sent from the Struts - User mailing li

Re: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread Dave Newton
t in it.  Can you help me with this? > > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] > Sent: Wednesday, January 12, 2011 3:06 PM > To: Struts Users Mailing List > Subject: Re: retaining the values in html:select multiple="true&quo

RE: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread vikram.g.byali
Mailing List Subject: Re: retaining the values in html:select multiple="true" in jsp + collection + struts Here it the mail content: Just to confirm, I dont need to place the following In my pages? It is cool not to see these repeated lines in all my pages -Dan 2011/1/12

Re: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread Maurizio Cucchiara
:13 PM > To: Struts Users Mailing List; lukasz.len...@gmail.com > Subject: Re: retaining the values in html:select multiple="true" in jsp + > collection + struts > > Lukasz, > I'm afraid he is using struts 1. > Anyway, I think that when user goes back using

RE: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread vikram.g.byali
hiara [mailto:maurizio.cucchi...@gmail.com] Sent: Wednesday, January 12, 2011 2:13 PM To: Struts Users Mailing List; lukasz.len...@gmail.com Subject: Re: retaining the values in html:select multiple="true" in jsp + collection + struts Lukasz, I'm afraid he is using struts 1. Anyway, I think that

Re: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread Lukasz Lenart
2011/1/12 Maurizio Cucchiara : > Lukasz, > I'm afraid he is using struts 1. You're right, I missed that out ;-) Kind reagds -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia http://javarsovia.pl - To uns

Re: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread Maurizio Cucchiara
Lukasz, I'm afraid he is using struts 1. Anyway, I think that when user goes back using the browser's arrow, the page is loaded from cache. So It shouldn't be a matter of Struts. My suggest is that you should find a way to avoid http caching [1] (I don't know if it works, I usually use header-bas

Re: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread Lukasz Lenart
2011/1/12 > Could some one help me on this please with some example? Please read a bit about Preparable interface http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html http://struts.apache.org/2.2.1.1/docs/prepare-interceptor.html Regards -- Łukasz + 48 606 3

RE: retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-12 Thread vikram.g.byali
Could some one help me on this please with some example? Thanks, Vikram _ From: Byali, Vikram G. Sent: Tuesday, January 11, 2011 3:48 PM To: 'user@struts.apache.org' Subject: retaining the values in html:select multiple="true" in jsp + collection + struts

retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-11 Thread vikram.g.byali
Hi, I have a multiple selection box in one of the jsp: Select  Level :

retaining the values in html:select multiple="true" in jsp + collection + struts

2011-01-11 Thread vikram.g.byali
Hi, I have a multiple selection box in one of the jsp: Select  Level :

Using html:select with string arrays -> multiple options selected

2009-09-27 Thread Lau
When I am iterating through string arrays in my JSP, I am seeing the resulting HTML having multiple options selected for one drop down box instead of rendering multiple drop down boxes. The JSP:

disabling html:select and html:text by the value in another html:select

2009-07-16 Thread Odelya YomTov
Hi! i have these components: i would like that when the user chooses a specific value in data.payingType - it would disable/enable the other html:select and html:text. i wrote this function:

Re: html:select problem

2008-12-30 Thread sourav biswas
It seems to me the syntax is wrong .. try this # Use <%=genreIds[0]%> insteed of <%="genreIds[0]"%> Just remove the quotes ... --- On Sun, 28/12/08, Gordian Yuan wrote: > From: Gordian Yuan > Subject: Re: html:select problem > To: &quo

Re: html:select problem

2008-12-28 Thread Tanb81
Thanks a lot Gordian Yuan :clap: Thanks for giving such useful links. I found solution for my problem :jumping: Thanks :handshake: -- View this message in context: http://www.nabble.com/html%3Aselect-problem-tp21183393p21199660.html Sent from the Struts - User mailing list archive at Nabble.

Re: html:select problem

2008-12-28 Thread Gordian Yuan
http://www.theserverside.com/discussions/thread.tss?thread_id=35726 or you can search it use google http://www.google.com/search?hl=zh-CN&q=select+default+option+struts&btnG=Google+搜索&lr=

html:select problem

2008-12-27 Thread Tanb81
hi, I am developing a project on struts. I have a drop down like :- Now I need a value of this dropdown to be automatically selected based on a value which is coming from previous page. The problem is I am not able to do this because I am new to Struts. Please he

Re: html:select for a string list

2008-12-10 Thread elyes sallem
Thanks a lot Mark, It works like this Best Regards Elyes 2008/12/10 Mark Shifman <[EMAIL PROTECTED]> > Try using html:options instead of optionsCollection. > > elyes sallem wrote: > > Hello, > > i have a html:select in a html:form > > this select is build

Re: html:select for a string list

2008-12-10 Thread Mark Shifman
Try using html:options instead of optionsCollection. elyes sallem wrote: > Hello, > i have a html:select in a html:form > this select is build from a List valLis, defined in an actionForm > i used the html:select in a list of object , it work > but now it is a list of string, so i

html:select for a string list

2008-12-10 Thread elyes sallem
Hello, i have a html:select in a html:form this select is build from a List valLis, defined in an actionForm i used the html:select in a list of object , it work but now it is a list of string, so i have not value and label i need just to recuperate the value and set the list of string what must i

Re: html:select in firefox

2008-09-18 Thread Jeffrey Born
tribution to any party other than intended recipient. > Sender does not necessarily endorse content contained within this > transmission. > > >> Date: Thu, 18 Sep 2008 11:02:27 -0400 >> From: [EMAIL PROTECTED] >> To: user@struts.apache.org >> Subject: html:sele

RE: html:select in firefox

2008-09-18 Thread Martin Gainty
400 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: html:select in firefox > > I'm trying to use a JavaScript function getElementById to access the > selectedIndex property of an HTML select tag that is generated via a > struts html:select tag. The JavaScrip

Re: html:select in firefox

2008-09-18 Thread Antonio Petrelli
2008/9/18 Jeffrey Born <[EMAIL PROTECTED]>: > I could override the html:select tag to output an Id attribute, but > there has to be a more elegant solution to this? Or it was solved > some other way? Use the "styleId" at

html:select in firefox

2008-09-18 Thread Jeffrey Born
I'm trying to use a JavaScript function getElementById to access the selectedIndex property of an HTML select tag that is generated via a struts html:select tag. The JavaScript function is failing because the Id attribute is missing. IE works with the name attribute which is generated.

RE: html:select javascript onchange passing parameter problem

2008-05-19 Thread Sindhu C R
ssage- From: Mahawilai [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 9:26 AM To: user@struts.apache.org Subject: Re: html:select javascript onchange passing parameter problem I have the same problem, Please tell me how to fix it if you know how. thank you very much Mahawilai Benz

Re: html:select javascript onchange passing parameter problem

2008-05-19 Thread Mahawilai
I have the same problem, Please tell me how to fix it if you know how. thank you very much Mahawilai Benz wrote: > > this is my part of jsp: > > > > > ... > > ... > > ... > > I get the html result: > ... > > ... > > The '<%=idx%>' text in jsp should be rendered as the

Re: struts 1.2 html:select and submit button

2008-03-18 Thread Antonio Petrelli
2008/3/18, Sonu S <[EMAIL PROTECTED]>: > 1) there is one submit button on that page and one action is associated with > that submit button. i can call the associated action class once the user > finish the form and click the submit button. When user select from list i > need to call another act

Re: struts 1.2 html:select and submit button

2008-03-17 Thread Sudhan Maharjan
You can simply call a struts action through AJAX. A little bit of AJAX can help to do your task. If you know AJAX, you can call struts action while sending request as req.open("GET", someaction.do, true); On Tue, Mar 18, 2008 at 9:20 AM, Sonu S <[EMAIL PROTECTED]> wrote: > HI, > > I am using st

struts 1.2 html:select and submit button

2008-03-17 Thread Sonu S
HI, I am using struts 1.2 in my web application. I have to display one list list will be build dynamically. User can select any option. base on the user's selection page will be refreshed (need to hit the database and display information in other fields on same page.) I need to know two th

nested object on form / html:select / pre selected value in option list

2008-02-27 Thread CrackheadMillionaire
way to do is incorporate my index value into a struts html:select tag; I could then use a html:optionsCollection tag which would do the job of finding a value to preselect nicely for me. Any insight is greatly appreciat

Re: Help with html:select multiple="true"

2007-11-28 Thread john feng
is my issue. > > Goal: > I would like to be able to select multiple fields from the drop down > box, retrieve them in my servlet, and use them elsewhere. > > I have tried using html:select multiple="true" and I continue to > receive an output > that I am not expect

Re: Help with html:select multiple="true"

2007-11-26 Thread Paul Benedict
Something totally goofy is going on in your example. You showed a form in XML and then a form in Java. You can only do one, not both together. Paul On Nov 26, 2007 12:58 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > I thought you were defining your form in your XML > file. > > Why won't you derefe

Re: Help with html:select multiple="true"

2007-11-26 Thread Dave Newton
I thought you were defining your form in your XML file. Why won't you dereference it *again* and see what data is there? --- amarr003 <[EMAIL PROTECTED]> wrote: > > Isn't dereferencing the array equivalent to: > attr[0]? > If it is then the data I get is not what I expect, > it is > Ljava.lang.

Re: Help with html:select multiple="true"

2007-11-26 Thread amarr003
Isn't dereferencing the array equivalent to: attr[0]? If it is then the data I get is not what I expect, it is Ljava.lang.String;@57125f92. Which is the problem that I am having. My form is defined as follows: private String [] selectedAttributes; public String [] getSelectedAttributes() { retur

Re: Help with html:select multiple="true"

2007-11-26 Thread Dave Newton
> > --- Adrian Marrero <[EMAIL PROTECTED]> > wrote: > > > >> Hi, > >> > >> Sorry about reposting this topic and forgetting > to > >> put a subject the first time. > >> > >> Here is my issue. > >> > >>

Re: Help with html:select multiple="true"

2007-11-26 Thread amarr003
> >> Here is my issue. >> >> Goal: >> I would like to be able to select multiple fields >> from the drop down >> box, retrieve them in my servlet, and use them >> elsewhere. >> >> I have tried using html:select multiple="true"

Re: Help with html:select multiple="true"

2007-11-21 Thread Adrian Marrero
d my issue better and that we can work together to find a solution. Thank you and anyone else in advance. Adrian -- Forwarded message -- From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List Date: Wed, 21 Nov 2007 08:03:52 -0800 (PST) Subject: Re: Help with html

Re: Help with html:select multiple="true"

2007-11-21 Thread Dave Newton
i, > > Sorry about reposting this topic and forgetting to > put a subject the first time. > > Here is my issue. > > Goal: > I would like to be able to select multiple fields > from the drop down > box, retrieve them in my servlet, and use them > elsewhere. >

Help with html:select multiple="true"

2007-11-21 Thread Adrian Marrero
Hi, Sorry about reposting this topic and forgetting to put a subject the first time. Here is my issue. Goal: I would like to be able to select multiple fields from the drop down box, retrieve them in my servlet, and use them elsewhere. I have tried using html:select multiple="true&q

Re: html:select javascript onchange passing parameter problem

2007-10-10 Thread Benz
which part do you mean? Is this? ... ... ... ... ... ... var validStatus = new Array ("PCB","PCS","PCK","RC"); function checkStsCombo(combobox, fieldName, idx) { var index = combobox.selectedIndex; var select

Re: html:select javascript onchange passing parameter problem

2007-10-09 Thread Ravindar T
where are getting the values for select either from bean or request attribute. On 10/10/07, Benz <[EMAIL PROTECTED]> wrote: > > > this is my part of jsp: > > > > > ... > > ... > > ... > > I get the html result: > ... > > ... > > The '<%=idx%>' text in jsp should be render

html:select javascript onchange passing parameter problem

2007-10-09 Thread Benz
this is my part of jsp: ... ... ... I get the html result: ... ... The '<%=idx%>' text in jsp should be rendered as the value of idx valu which is such as '0','1',etc. Can anybody tell me why it doesn't works? Best Regards, Benz -- View this message in context: http://

Re: html:select / DIV / document.getElementById(why).innerHTML

2007-09-16 Thread Martin Gainty
M-- - Original Message - From: "john lee" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Cc: <[EMAIL PROTECTED]> Sent: Saturday, September 15, 2007 1:08 PM Subject: Re: html:select / DIV / document.getElementById(why).innerHTML > Dave, > >

Re: html:select / DIV / document.getElementById(why).innerHTML

2007-09-15 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > my jsp just have struts property="studentname"> and value="john"/> and only. HTML input element tags are only valid inside an tag. Your fragment does not have a containing tag; since you are returning it with an Ajax call that won't work. That's wh

Re: html:select / DIV / document.getElementById(why).innerHTML

2007-09-15 Thread john lee
struts and and only. tks so much john Dave Newton <[EMAIL PROTECTED]> wrote: --- john lee wrote: > after calling document.getElementById(why).innerHTML, > the output of "html:select" why can not be recognized > by struts? IIRC the S1 form tags rely on there

Re: html:select / DIV / document.getElementById(why).innerHTML

2007-09-15 Thread Dave Newton
--- john lee <[EMAIL PROTECTED]> wrote: > after calling document.getElementById(why).innerHTML, > the output of "html:select" why can not be recognized > by struts? IIRC the S1 form tags rely on there being an and will break w/o it (I could definitely be wrong on thi

html:select / DIV / document.getElementById(why).innerHTML

2007-09-15 Thread john lee
i have 2 html:select, second html:select display corrspondent result after first html:select element is selected, the selection will trigger customried ajax on fly. second html:select can generate and displayed results, but cannot generate selection box(dropdown list), why? or limition

struts 1.X html:select/DIV /document.getElementById.innerHTML=response

2007-09-15 Thread john lee
i have 2 html:select, second html:select display corrspondent result based upon first html:select selection by calling customized ajax. However, second html:select generate results and displayed results, but cannot generate selection box, but why? or limition of struts for the html:select

Re: struts 1.x / html:select option value=

2007-09-14 Thread Laurie Harper
john lee wrote: Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matte

RE: bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread john lee
Tim, tks for your input, but after i change to html-el:option, it show "null" in the list box on screen, after i change html:select to html-el:select, the value just show on screen, but the list box is gone. do u know why? tks u so much john "Slat

RE: bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread Slattery, Tim - BLS
> You can't nest tags in this way. It's not a Struts limitation, it's an XML thing. You can makme it work by using the EL version of the html tags: Or is it agent.myselection? I'm not terribly familiar with the bean tags. -- Tim Slattery [EMAIL PROTECTED] ---

bugs? or limition of struts 1.x? html:select html:option value=

2007-09-14 Thread john lee
Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matter i use single quote or double quote around,

struts 1.x / html:select option value=

2007-09-14 Thread john lee
Could any expert tell me why? has the value of "illinois" . but, the following code do not set value="illinois', still literal string of "", or this is the limition of Struts 1.x? no matter i use single q

two html:select tags in a jsp file creating problem

2007-07-24 Thread Ravikanth BV
Hi, In my jsp I need to use two html:select tags. If I use one tag, its working fine. But the moment I inserted the code for second tag, all the jsp code after the first tag is not appearing in the browser. I am using a proprietary taglibrary. Any light on this ? Thanks, Ravikanth

Re: How to set default value in the html:select which is populated with html:optionsCollection tag?

2007-05-06 Thread Chirag
/struts.apache.org/1.2.9/userGuide/struts-html.html#select > > Thanks, > > Nuwan > > > > > - Original Message - > From: "Chirag" <[EMAIL PROTECTED]> > To: "Nuwan Chandrasoma" <[EMAIL PROTECTED]>; > > Sent: Sunday, May

Re: How to set default value in the html:select which is populated with html:optionsCollection tag?

2007-05-06 Thread Chirag
m: "Chirag" <[EMAIL PROTECTED]> > To: "Nuwan Chandrasoma" <[EMAIL PROTECTED]>; > > Sent: Sunday, May 06, 2007 9:45 AM > Subject: Re: How to set default value in the > html:select which is populated > with html:optionsCollection tag? > > >

Re: How to set default value in the html:select which is populated with html:optionsCollection tag?

2007-05-06 Thread Chirag
: Sunday, May 06, 2007 9:23 AM > Subject: How to set default value in the html:select > which is populated with > html:optionsCollection tag? > > > >I am a little newbie type in Struts > > > > I already have the following code > > property="location"> &

Re: How to set default value in the html:select which is populated with html:optionsCollection tag?

2007-05-06 Thread Nuwan Chandrasoma
AM Subject: How to set default value in the html:select which is populated with html:optionsCollection tag? I am a little newbie type in Struts I already have the following code All Now I want to modify this code in such a way that it selects a default value . How to do that T

How to set default value in the html:select which is populated with html:optionsCollection tag?

2007-05-06 Thread Chirag
I am a little newbie type in Struts I already have the following code All Now I want to modify this code in such a way that it selects a default value . How to do that Thanks in advance CSJakharia Subscribe to bermudaEmail: [input] [input] Browse Archives at groups.google.com

Re: html:select 1.2.9

2007-01-27 Thread Laurie Harper
Justin Chin wrote: I am trying to maintain which item was selected in a html:select dropdown that is not "multiple" after the validation occurs in the Form and I need to return to the jsp because something was missing. Here is my code snippet f

html:select 1.2.9

2007-01-22 Thread Justin Chin
I am trying to maintain which item was selected in a html:select dropdown that is not "multiple" after the validation occurs in the Form and I need to return to the jsp because something was missing. Here is my code snippet f

RE: html:select and sorting

2007-01-05 Thread Bolutiwi, Olu
Thanks much appreciated -Original Message- From: Puneet Lakhina [mailto:[EMAIL PROTECTED] Sent: 04 January 2007 19:47 To: Struts Users Mailing List Subject: Re: html:select and sorting On 1/4/07, Bolutiwi, Olu <[EMAIL PROTECTED]> wrote: > > Hi all, I have the same iss

Re: html:select and sorting

2007-01-04 Thread Ranjan Kumar Baisak
om the database) and HashMap messes up the sort order. How can I use a collection that supports key & value, keep it sorted and use it in my html:select without messing up the sort order. I suppose you are looking for LinkedHashMap http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedHashMap.htm

Re: html:select and sorting

2007-01-04 Thread Puneet Lakhina
messes up the sort order. How can I use a collection that supports key & value, keep it sorted and use it in my html:select without messing up the sort order. I suppose you are looking for LinkedHashMap http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedHashMap.html It keeps the keys in

RE: html:select and sorting

2007-01-04 Thread Dave Newton
> > How can I use a collection that supports key & value, keep it sorted > and use it in my html:select without messing up the sort order. Use a different Comparator when you instantiate your TreeMap. Html:select is just a thin wrapper around the standard HTML tags... Sorting must

RE: html:select and sorting

2007-01-04 Thread Manos Batsis
Quoting "Bolutiwi, Olu" <[EMAIL PROTECTED]>: > How can I use a collection that supports key & value, keep it sorted > and > use it in my html:select without messing up the sort order. You can make your keys comparable [1] or put your results in a collection that

RE: html:select and sorting

2007-01-04 Thread Bolutiwi, Olu
supports key & value, keep it sorted and use it in my html:select without messing up the sort order. Cheers -Original Message- From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] Sent: 04 January 2007 15:30 To: Struts Users Mailing List Subject: html:select and sorting Hi, Is there

Re: html:select and sorting

2007-01-04 Thread Ranjan Kumar Baisak
Dave Newton wrote: From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] Is there any way to sort all the elements while using html:select? Sure; sort the collection before you use it in html:select. Dave - To

RE: html:select and sorting

2007-01-04 Thread Dave Newton
From: Ranjan Kumar Baisak [mailto:[EMAIL PROTECTED] > Is there any way to sort all the elements while using html:select? Sure; sort the collection before you use it in html:select. Dave - To unsubscribe, e-mail: [EM

html:select and sorting

2007-01-04 Thread Ranjan Kumar Baisak
Hi, Is there any way to sort all the elements while using html:select? -R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: dynamic html:select

2006-12-13 Thread Anil Kumar T
Thanks Dave. This is very useful... Anil. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 8:57 PM To: Struts Users Mailing List Subject: RE: dynamic html:select From: Kranti Parisa [mailto:[EMAIL PROTECTED] > i have an ArrayList

RE: dynamic html:select

2006-12-13 Thread Dave Newton
From: Kranti Parisa [mailto:[EMAIL PROTECTED] > i have an ArrayList of beans > each bean contains empid, empname > i need to populate them into drop down > plz suggest something for this http://struts.apache.org/1.2.x/userGuide/struts-html.html d. ---

dynamic html:select

2006-12-13 Thread Kranti Parisa
hi, i have an ArrayList of beans each bean contains empid, empname i need to populate them into drop down option value as empid and display value as empname plz suggest something for this

Re: Facing Problem using html:select with html:options

2006-10-25 Thread Chris Pratt
In HTML, only the selected values get sent to the server, so when no values in the multi-select are selected, nothing gets sent to the server for that property. Make sure your reset() method clears out the values for that property and you should be ok. (*Chris*) On 10/25/06, Chetan Pandey <[EMA

Facing Problem using html:select with html:options

2006-10-25 Thread Chetan Pandey
Hi All: I have a JSP Form in which one field is a multi-select drop-down box. An array of String is used to represent it I am facing this problem when trying to "Edit" stuff. The Drop-down initially has many different values selected. If I try to change selections everything is Fin

Validate a multiple html:select with validator framework

2006-09-28 Thread Heidy Gutiérrez Guzmán
I have a multiple html:select and i need to validate it with validator framework. The attribute in the ActionForm is an array of strings. private String[] subtemas= new String[]{} The validation that i'm using is required.This validation works with others form fields This is the co

Re: How to specify default displayed value in html:select

2006-08-31 Thread Michael Jouravlev
On 6/13/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote: Hi, Please suggest how can I specify which value(s) to be displayed as selected by default in html:select tag, when specified through collection attribute. http://wiki.apache.org/struts/StrutsW

Re: How to specify default displayed value in html:select

2006-08-31 Thread Mississippi John Hurt
selected by default in html:select tag, when specified through > collection attribute. I think it's best to set this up in your Action 'before' you forward to the JSP, or if you know what will always be the default, just set the Selection property in your ActionForm and it will default

Re: html:select disable problem

2006-07-19 Thread Vinicius Carvalho
iting must come as readonly (disabled). Well, that's almost ok, > because I need that data on the action called by the form, and those > values are not passed to the action. Right, disabled form controls are not submitted, per the HTML spec. > I tried to use hidden values together with

Re: html:select disable problem

2006-07-18 Thread Laurie Harper
alues are not passed to the action. Right, disabled form controls are not submitted, per the HTML spec. I tried to use hidden values together with the html:select, but it seems that struts is too smart and its not setting the values, keeping the null ones :( Without seeing what you're d

RE: html:select disable problem

2006-07-18 Thread Robert Langridge
that should do the job Rob Langridge Analyst Programmer - Java CoE e: [EMAIL PROTECTED] -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: 17 July 2006 20:10 To: Struts Users Mailing List Subject: html:select disable problem Hello there! I believe this is

html:select disable problem

2006-07-17 Thread Vinicius Carvalho
o the action. I tried to use hidden values together with the html:select, but it seems that struts is too smart and its not setting the values, keeping the null ones :( Any solutions for this dumb problem? Regards - To unsubscribe, e

Re: How to specify default displayed value in html:select

2006-06-19 Thread Rick Reumann
Pankaj Gupta wrote: Hi, Please suggest how can I specify which value(s) to be displayed as selected by default in html:select tag, when specified through collection attribute. I think it's best to set this up in your Action 'before' you forward to the JSP, or if you know w

RE: How to specify default displayed value in html:select

2006-06-19 Thread Mukta
value in html:select Hi, Please suggest how can I specify which value(s) to be displayed as selected by default in html:select tag, when specified through collection attribute. regards, Pankaj - To unsubscribe, e-mail: [EMAIL

How to specify default displayed value in html:select

2006-06-13 Thread Pankaj Gupta
Hi, Please suggest how can I specify which value(s) to be displayed as selected by default in html:select tag, when specified through collection attribute. regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Selecting and setting Bean Object from html:select

2006-06-09 Thread Andrew McDowall
Hi, I am trying to get an html:select with html:optionsCollection to set a property in my ActionForm with the actuall bean that was selected rather than the associated value: // Bean class public class Item { int id; String name; public int getId() { return id; } public void

Re: [OT] Re: How to restrict number of chocies in multiple html:select

2006-03-29 Thread Dave Newton
Dave Newton wrote: > Adam Lipscombe wrote: > >> OK I could validate the number selected in the actionform or in javascript >> but I would really like to tell the combo box to only allow N selections. >> >> > AFAIK this is completely browser-controlled as it's a standard HTML > select tag

[OT] Re: How to restrict number of chocies in multiple html:select

2006-03-29 Thread Dave Newton
Adam Lipscombe wrote: > With an is it possible to restrict the > number of selections that can be made? > To say 2 or 3? > > OK I could validate the number selected in the actionform or in javascript > but I would really like to tell the combo box to only allow N selections. > AFAIK this is co

How to restrict number of chocies in multiple html:select

2006-03-29 Thread Adam Lipscombe
Folks, With an is it possible to restrict the number of selections that can be made? To say 2 or 3? OK I could validate the number selected in the actionform or in javascript but I would really like to tell the combo box to only allow N selections. TIA -Adam

Re: Problem with html:select

2006-02-03 Thread Michael Jouravlev
tion. How would I preselect > more than one value using html:select? > > Kumar > > --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > On 2/3/06, Michael Jouravlev <[EMAIL PROTECTED]> > > wrote: > > > On 2/3/06, Kumar Kadiyala <[EMAIL PROTECT

Re: Problem with html:select

2006-02-03 Thread Kumar Kadiyala
Thanks for the clarification. How would I preselect more than one value using html:select? Kumar --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 2/3/06, Michael Jouravlev <[EMAIL PROTECTED]> > wrote: > > On 2/3/06, Kumar Kadiyala <[EMAIL PROTECTED]> > wro

Re: Problem with html:select

2006-02-03 Thread Michael Jouravlev
On 2/3/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 2/3/06, Kumar Kadiyala <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I am running into a problem with the html:select tag. > > I have the "multiple" attribute set so that the list >

Re: Problem with html:select

2006-02-03 Thread Michael Jouravlev
On 2/3/06, Kumar Kadiyala <[EMAIL PROTECTED]> wrote: > Hello, > > I am running into a problem with the html:select tag. > I have the "multiple" attribute set so that the list > renders as a multi select list box. I am using the > value attribute of this tag and if

Problem with html:select

2006-02-03 Thread Kumar Kadiyala
Hello, I am running into a problem with the html:select tag. I have the "multiple" attribute set so that the list renders as a multi select list box. I am using the value attribute of this tag and if I specify an Array as the value, the initial selection in the list box is not correct

RE: html:select question

2006-02-02 Thread fea jabi
solved this just by declaring the in the object and in jsp by declaring the id and using the id in the html:select. From: "fea jabi" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: html:select question Date: Thu,

html:select question

2006-02-02 Thread fea jabi
Using a table in my JSP. i am creating an object for each row. In 2 of it's table column I am having a Comboboxes. When writting the html:select statement I have to specify the selectedItem for the conbo box.. so, The selecteditem has to be in the form not in the row object. I am l

Re: html:select

2006-02-01 Thread Laurie Harper
Use the html:select field's 'value' attribute to get the selected value from form1, or populate the appropriate property in form2 before you forward to the JSP. If you use the first approach, the user's selection in form2 will not be preserved if you re-display the form,

Re: RE: html:select

2006-02-01 Thread rahul kshirsagar
ilto:[EMAIL PROTECTED] >Sent: Wed 2/1/2006 6:45 PM >To: user >Subject: html:select > > > >Hi, > >I am using for drop down population.Now i want to populate >alreay selected value in the drop down when page is refeshed.The thing is i >have that value with m

RE: html:select

2006-02-01 Thread Murugesan, Kathiresan \(Cognizant\)
Hi, In your action class just set the value in the respective field's set method. It will automatically select the value. Regards Kathir. From: rahul kshirsagar [mailto:[EMAIL PROTECTED] Sent: Wed 2/1/2006 6:45 PM To: user Subject: html:select Hi,

html:select

2006-02-01 Thread rahul kshirsagar
Hi, I am using for drop down population.Now i want to populate alreay selected value in the drop down when page is refeshed.The thing is i have that value with me which is to be populated but i dont know how to set it in . I know it is possible using bean:write but dont have the syntax. If yo

  1   2   3   >