-Original Message-
> From: Søren Blidorf [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 15, 2006 12:24 PM
> To: 'Struts Users Mailing List'
> Subject: SV: html:options selected
>
> Hi Mano.
>
> Thanks for your help
>
> Could you explain it a
Wednesday, November 15, 2006 12:57 PM
To: Struts Users Mailing List
Subject: html:options selected
Hi.
I am trying to get html:select to work for my purpose.
Can anybody help me..
c_stand is a String value from PeopleBean in request.getAttribute("people"); cs
is a collection
l: 'Struts Users Mailing List'
Emne: RE: html:options selected
Yes u can...just set the value of c_stand to value "test2" in action
class.. where u load this page...then it shud work..
Regards,
Mano
-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED]
st
Subject: html:options selected
Hi.
I am trying to get html:select to work for my purpose.
Can anybody help me..
c_stand is a String value from PeopleBean in request.getAttribute("people");
cs is a collection containing values in OptionValueBean.
If cs contains values test1,
Hi.
I am trying to get html:select to work for my purpose.
Can anybody help me..
c_stand is a String value from PeopleBean in request.getAttribute("people");
cs is a collection containing values in OptionValueBean.
If cs contains values test1, test2 and test3 and c_stand contains test2 I wa
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
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
Hi,
I think you can, according to the tag code it is possible,
but i havent tried it, give it a try.
Thanks,
Nuwna
On 9/4/06, chamal desilva <[EMAIL PROTECTED]> wrote:
Hi,
Can we display the values of a hashtable in a html
drop down menu using struts tags.
Thanking You,
Chamal.
___
Hi,
Can we display the values of a hashtable in a html
drop down menu using struts tags.
Thanking You,
Chamal.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
nal Message Follows -
> maybe css would be one solution, edit your css class, and use "styleClass"
> attribute to ref it
>
>
>
> Stanislav 写道: Hi!
>
> I want to set background color in drop down menu that is generated with
> html:options collection.
ribute to ref it
>
>
>
> Stanislav <[EMAIL PROTECTED]> Đ´ľŔŁş Hi!
>
> I want to set background color in drop down menu that is generated with
> html:options collection.
> Is there any way to do that?
>
&g
maybe css would be one solution, edit your css class, and use "styleClass"
attribute to ref it
Stanislav <[EMAIL PROTECTED]> 写道: Hi!
I want to set background color in drop down menu that is generated with
html:options collection. Is
there any way to do that?
Her
Hi!
I want to set background color in drop down menu that is generated with
html:options collection. Is
there any way to do that?
Here is code sample:
Tnx,
Stanislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
: Re: ArrayList & html:options
On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> Changing that to:
>
>
>
>
>
> Now produces this error:
>
> 15:55:34,494 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> javax
: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/fine_export.jsp': No name specified
...
> Could it have something to do with not specifying the label or the value
> as well?
Possibly.
http://struts.apache.org/struts-el/tagre
Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 1:52 PM
To: Struts Users Mailing List
Subject: Re: ArrayList & html:options
On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> request.setAttribute( "exportDates", exportD
On 4/17/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote:
> request.setAttribute( "exportDates", exportDates ); //exportDates =
> ArrayList
>
> JSP:
>
>
>
>
>
> Error:
> 15:38:53,106 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> javax.servlet.jsp.JspExceptio
Everyone,
I am trying to use the htm-el:options tag to write out the value of a
Select box. I am using an ArrayList of Strings that I am trying to
iterate over. I want the value and option to be the same on the output.
Here is how I am calling my code...
Action:
request.setAttribute(
ot;);
mapa.put("102","Cogeneracion");
hashMapBean.setCodigoM(mapa);
pageContext.setAttribute("hashMapBean",hashMapBean);
%>
and
92)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
Thank you.
-Mensaje original-
De: Aidas Semezys [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 09 de febrero de 2006 15:05
Para: Struts Users Mailing List
Asunto: Re: html
Yes it is possible. Suppose you have bean of type java.util.HashMap in your
context under name hashMapBean. Then you write:
That's all for it.
On 2/8/06, José María Tristán <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have an application whith a html:options
Hi,
I have an application whith a html:options whith two ArrayList to see
the
"name"(arrayCodigo) and the "label" (arrayDescripcion)
Is possible do the same whith a HashMap (key-value)?. How i say
my form will construct different number of combo boxes on the screen.
for example user will enter 3 and submit the form. then the coming form
will show 3 combo boxes.
how can i do that with struts. The number of combo boxes is not static
so i can not define to action form my combo boxes so can not
I don't know if I understand you right, but if you wan't to get the
option selected before validation, just save it in some form Attribute
of your Struts Form and then use:
value="${myForm.lastSelectedThing}>
Cheerz
Danny
Chen Jerry schrieb:
Well, I make multiple selection and submit the p
Well, I make multiple selection and submit the page, which will be
forwarded to if validation is not passed. I want to keep selected the
multiple s of when I am back. What can I do?
This is the fragment of source code:
Thanks in advance.
Jerry
-
Message-
From: Daniel Henrique Ferreira e Silva [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 5:54 AM
To: Struts Users Mailing List
Subject: Question about html:options
Hi all,
I've been using Struts for some time now and suddenly faced this issue
that i'm not sure it&
Hi all,
I've been using Struts for some time now and suddenly faced this issue
that i'm not sure it's a bug or a misinterpretation of mine.
I have a List in request scope holding HashMaps. Then, i tried to use
like this:
My HashMap instances have two entries each one: value => some value
and
Troy,
I think it should work like this
Hope it helps
Sunil
Troy Bull <[EMAIL PROTECTED]>
10/13/2005 11:33 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
problem with html:select / html:options
Hi
Troy Bull wrote:
and if I try this on the same page what I can't figure out is how to
make this work:
http://struts.apache.org/userGuide/struts-html.html#options
Note the differences between property and labelProperty, and marvel at
the power of documentation! ;)
Also
Hi
I am trying to use the struts taglibs as much as I can and I have the
following situation. I have a collection object filled with DTO beans
stored in session. The following prints out the list as I would expect:
and if I try this on the same page what I can't figure
]
*
Original Message Follows
From: Vinicius Caldeira Carvalho <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: html:options
Date: Sat, 09 Apr 2005 09:49:15 -0300
Hello there! I've always used the with the collection
Hello there! I've always used the with the collection
attribute, so I had a separate bean with the collection. But now I'd
like to have that collection on my form bean cuz it'll be stored on the
session, and I have a utility filter that always remove my formbeans
stored on the session after th
Hi,
Is there any way to have html:option parse JSTL sql:query results
for a dropdown? I have a form containing a drop-down that is populated
by a database. My hope is that I could use to walk
through it, and if the id matches the value of the Form, pre-select that
value.
Is this possibl
gt; I have one doubt regarding the use of html:options tag.
>
> In the jsp itself I have got a set of values like List questions= "SOME
> VALUE OBTAINED FROM THE DATABASE- ie name value pairs".
>
> In the jsp I have a html:options tag.
>
> I don't have any entri
HI,
I have one doubt regarding the use of html:options tag.
In the jsp itself I have got a set of values like List questions= "SOME
VALUE OBTAINED FROM THE DATABASE- ie name value pairs".
In the jsp I have a html:options tag.
I don't have any entries in the form bean for
I am using a LazyValidatorForm as my backing bean. I assumed
that it would be able to handle them automatically, but you got
me to thinking. I added in the String[] declaration and it
works great.
--- Eddie Bush <[EMAIL PROTECTED]> wrote:
> Are you getting
Are you getting any interesting debug statements?
Looks to me like the form should be properly populated, even if
validation failed. What type of field are the values being put into?
If you're looking for multiples, I imagine you're putting them into a
String array?
Please trim unnecessary dial
That was it exactly. Thx.
Now I have another question. My box is a multi select. If
there is a validation error, only the first option will still be
selected.
--- Kishore Senji <[EMAIL PROTECTED]> wrote:
> On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton
> <[EMAIL PROTECTED]> wrote:
The ${formName} is in fact a variable that holds the name of the
form. Kishore Senji's solution was what I needed.
--- Eddie Bush <[EMAIL PROTECTED]> wrote:
> Seems to me you have the form name incorrect? is 'formName'
> the name
> of the form, or is it a String holding the name of the form?
>
On Fri, 28 Jan 2005 16:53:16 -0800 (PST), Norris Shelton
<[EMAIL PROTECTED]> wrote:
> Here is what I have in the JSP tag file:
>
>multiple="true">
> labelProperty="description" />
collection attribute takes a name which holds the Collection and not
the collection itself. Assuming that y
Sorry for the double post. G-Mail hiccuped.
--
Eddie Bush
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Seems to me you have the form name incorrect? is 'formName' the name
of the form, or is it a String holding the name of the form?
I think you'd find it easier to populate your list in an action.
Perhaps you meant to put:
If "formName" (above) is the name of your form, I think this is what
you
Seems to me you have the form name incorrect? is 'formName' the name
of the form, or is it a String holding the name of the form?
I think you'd find it easier to populate your list in an action.
Perhaps you meant to put:
If "formName" (above) is the name of your form, I think this is what
you
Here is what I have in the JSP tag file:
state is a simple tag that makes a List of State objects
available to the page. I tried setting them as a page scope
attribute and a request scope attribute. I always get the
following message:
javax.servlet.jsp.JspException: Cannot find
You are right! It was the key against the name.
Thank you so much.
Nadia
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 11:20 AM
To: Struts Users Mailing List
Subject: Re: html:options won't get preselected!
From: "Nadia Kunko
From: "Nadia Kunkov" <[EMAIL PROTECTED]>
>
>
>
Struts will pre-select the item when the 'country' property of the form
matches the countryID of the option.
What is the exact value of the 'country' property of the form? I'm betting
you've got 'Canada' when you need 'CAN'.
--
Wendy Smoa
Hi,
I have a form that my action prepopulates and that works fine. For example:
Country is FormBean property that is populated from the database by my action.
This is all good but I want the user to be able to change the country so I need
a dropdown list.
Here is what I have:
Erik Weber writes:
> I often write a Struts plug-in that sets static collections (such as
> select box values) as ServletContext attributes in the init method.
That becomes more complicated when you handle i18n (e.g. in
labelProperty).
--
Guillaume Cottenceau
-
config.xml
...
...
...
...
...
...
snippet from my JSP
...
...
/>
...
...
From the documentation for html:options:
The *property* attribute is interpreted as the name of a property of the
individual beans included in the collection, and is used to retrieve th
config.xml
...
...
...
...
...
...
snippet from my JSP
...
...
...
...
What is the correct way to setup the html:options tag? Is there a way to
use OSCache tags so I can cache the DevicesBO in my application?
Than
.
> the one that submits the
> page).
>
> Regards,
> David
>
> -Original Message-
> From: t t [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 10, 2004 8:05 PM
> To: Struts Users Mailing List
> Subject: RE: Help needed on question regarding
> html:select a
l:form and
html:javascript tags from your invoking page? (i.e. the one that submits the
page).
Regards,
David
-Original Message-
From: t t [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 8:05 PM
To: Struts Users Mailing List
Subject: RE: Help needed on question regarding html:select and
ht
ct item, then add
> each new item. Creative
> use of the iterate tag plus javascript can do it, or
> you could find good
> examples if you google - that's how I learned how to
> do it.
>
> Regards,
> David
>
> -Original Message-
> From: t t [mailto:[EMAIL
Thanks, Erik. I did set it to false. But it's still
been validated when submitted. confusing...
--- Erik Weber <[EMAIL PROTECTED]> wrote:
> There is a "validate" attribute to the "action"
> element in
> struts-config.xml. You set it to true or false.
>
>
http://struts.apache.org/userGuide/dev_va
u google - that's how I learned how to do it.
Regards,
David
-Original Message-
From: t t [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 6:41 PM
To: Struts Users Mailing List
Subject: Re: Help needed on question regarding html:select and
html:options...cannot turn off
There is a "validate" attribute to the "action" element in
struts-config.xml. You set it to true or false.
http://struts.apache.org/userGuide/dev_validator.html
Erik
t t wrote:
How can I turn off validator? THanks.
--- t t <[EMAIL PROTECTED]> wrote:
Or I can set a parameter before executing th
How can I turn off validator? THanks.
--- t t <[EMAIL PROTECTED]> wrote:
> Or I can set a parameter before executing the added
> action.
> --- t t <[EMAIL PROTECTED]> wrote:
>
> > Hi, Erik,
> > I got an idea. I can insert another action before
> > the actual action be executed. And use javascrip
Or I can set a parameter before executing the added
action.
--- t t <[EMAIL PROTECTED]> wrote:
> Hi, Erik,
> I got an idea. I can insert another action before
> the actual action be executed. And use javascript
> change a hidden property before executing the added
> action, then I can do what i
Hi, Erik,
I got an idea. I can insert another action before the actual action be
executed. And use javascript change a hidden property before executing the
added action, then I can do what i want to do in the added action. What do you
think? I will try it later.
Thanks for your help!
Tong
Eri
JavaScript can change the action URL on the fly. For example:
http://www.willmaster.com/possibilities/archives/wmp20030527001.shtml
However, I'm not sure how compatible this type of thing will be with the
Struts form tag. I've never tried it. I'm surprised others aren't
speaking up because the "m
Hi,Erik,
I think that helps. I have another question. Besides the "action" attribute in
html:form, is anywhere else we can specify another "action" corresponding the
submission of javascript?
Thanks.
Tong
Erik Weber <[EMAIL PROTECTED]> wrote:
There may be other ways or better ways, but one thing
There may be other ways or better ways, but one thing you could do is
vary the action URL. You could have the same action class serving
slightly different action mappings, some with validation set to true and
some with validation set to false.
I did what you are trying to do in a non-Struts Ser
The problem is, when the form is submitted, it will be validated according to
the validator. then error will occur since the user didn't intend to submit and
he/she didn't fill other required fields.
And in my "acion" program, I don't know how to tell whether it was submitted by
"javascript" or
Thank you for the hint. I will try.
Erik Weber <[EMAIL PROTECTED]> wrote:I don't know exactly how do it using
JavaScript. However, I know there's
a way to do it. But, you'd have to have all list data downloaded to the
client's browser (could be undesirable depending on list size), so you
may w
I don't know exactly how do it using JavaScript. However, I know there's
a way to do it. But, you'd have to have all list data downloaded to the
client's browser (could be undesirable depending on list size), so you
may want to rethink that approach once you figure out how to do it.
Obviously i
Hi, all,
I have two html:select as below:
---
when user choose item2 from s1, I want to change the collection in s2
from "c2" to "itemC". How can I do that?
T
Hi, all,
I have two html:select as below:
---
when user choose item2 from s1, I want to change the collection in s2 from "c2"
to "itemC". How can I do that?
T
I'm having troubles with html:options tag, I was hoping for some insight.
I've got an ActionForm called "myForm".
On that form, I've got a String field iD, and a Collection (Vector) of
Struts LabelValueBeans called "myCollection". Appropriate getters and
se
on the correct lines :
Please let me know if my approach is correct. Also am confused as to
what would be the property in
TIA,
Priya
-Original Message-
From: Jirole, Amar [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 7:03 PM
To: 'Struts Users Mailing List'
: Thursday, September 16, 2004 7:14 AM
To: Struts Users Mailing List
Subject: RE: html:options Help
I have seen the Struts Documentation for the same but couldn't really gather
much !! Can someone give me an example of using
TIA,
Priya
-Original Message-
From: Priya Jotwani
I have seen the Struts Documentation for the same but couldn't really
gather much !!
Can someone give me an example of using
TIA,
Priya
-Original Message-
From: Priya Jotwani
Sent: Wednesday, September 15, 2004 8:27 PM
To: [EMAIL PROTECTED]
Subject: html:options Help
Can somebody
Have you tried http://struts.apache.org/userGuide/dev_html.html?
-Original Message-
From: Priya Jotwani [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: html:options Help
Can somebody give me an example of how to use for populating
Can somebody give me an example of how to use for
populating my Listbox with the values returned by getFundlist() of my
ActionForm ?
TIA,
Priya
Yes, U can do that
-Original Message-
From: Nestor Boscan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 10:23 AM
To: [EMAIL PROTECTED]
Subject: html:options tag with ArrayList of Strings
Hi
I'm working with the html:select and html:options tag and wanted to know if
I can c
Yes, you can do it.
Btw, you can do the same thing using Vectors too.
> -Original Message-
> From: Nestor Boscan [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 28, 2004 7:53 AM
> To: [EMAIL PROTECTED]
> Subject: html:options tag with ArrayList of Strings
>
> Hi
Hi
I'm working with the html:select and html:options tag and wanted to know if
I can create a list box based on an ArrayList that contains Strings.
Thanks in advance
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
76 matches
Mail list logo