Hi all,
Ihave a list page which has a combobox to
select the filter.html:select
property="statusfilter"
option value =
"All"All/option
option value =
"Completed"Completed/option
option value = "In process"In
process/option/html:selectThe page loads with the
value "all" as default.
Now
: forwarding request from select tag
Hi all,
I have a list page which has a combobox to select the filter.
html:select property=statusfilter
option value = AllAll/option
option value = CompletedCompleted/option
option value = In processIn process/option
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 8:14 PM
To: Struts Users Mailing List
Subject: RE: forwarding request from select tag
If you use html:option .../ then the selected value should show as being
selected when
the page is reloaded
: Thursday, January 08, 2004 3:51 PM
Subject: RE: forwarding request from select tag
thanks robert...
but what i wanted is to reload the page automatically
like
select_Onchange()
{
reload the page with the new filter... == should i load the jsp file ???
}
Instead of this java script... can i
selectBox.options[i].text;
return ;
}
/script
- Original Message -
From: Namasivayam, Sudhakar (Cognizant) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 3:51 PM
Subject: RE: forwarding request from select tag
thanks robert...
but what i wanted
my bad the function should return selectBox.options[i].value;
- Original Message -
From: Raphaël di Cicco [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 4:04 PM
Subject: Re: forwarding request from select tag
No you can't, you need
hi
I experiencing problem while using html:select with html:options.
I tried as the following
html:select property=report
html:options name=beanname property=period_reports /
/html:select.
I am getting the error message as , there is no getter method for property
period_reports under
mohamed ebrahim faisal [mailto:[EMAIL PROTECTED] wrote:
html:select property=report
html:options name=beanname property=period_reports /
/html:select.
I am getting the error message as , there is no getter method for
property
period_reports under bean beanname, but infact i have one.
Hi there,
I have the following code in my jsp...
td
html:select name=homeTeam property=teamId
html:options collection=teamVOs property=teamId
labelProperty=description/
/html:select
/td
td
html:select
Martin wrote:
The problem is that both the bean homeTeam and awayTeam have the
property teamId which results in the following HTML...
As you can see both the name attributes have the value teamId,
which of course is a problem.
I'm confused by having one html form, but expecting Struts to
Alternatively, nest your beans. That is, have TeamForm contain an instance of
AwayTeam and an instance of HomeTeam:
public class TeamForm extends ActionForm {
private AwayTeam awayteam = new AwayTeam();
private HomeTeam hometeam = new HomeTeam();
...
Then, your select tags look
I'd write some sort of function and call it from the event.
onchange=submitFromDropdown(this)
and your function should be something like this:
submitFromDropdown(dropdown)
{
//'this' == dropdown field object
var fieldName = dropdown.name;
var len = dropdown.options.length;
var
Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OFF TOPIC] JavaScript + select tag question
Date: Wed, 06 Aug 2003 17:10:40 +0200
Might be OT, but I still think the selectbox element doesn't have a value
property - only an options collection, so -
x
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [OFF TOPIC] JavaScript + select tag question
You may be right - might have to use the .index property instead.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
script language=javascript type=text/javascript
!--
function doSubmit() {
var url = 'html:rewrite page=/search.do /?foo=bar';
}
...or if your function isn't in the html page
function doSubmit(url) {
}
onSomeEvent=doSubmit('html:rewrite page=/serach.do /')
If you read the API you will see that JavaScript functions are built into
the Struts html:select tag:
http://jakarta.apache.org/struts/userGuide/struts-html.html#select
so you have several event handlers to use for transferring control. E.g.,
html:select property=myBean onClick=myFunction(
Sorry but I have still the same problem. The following ( which is
actualy static ) doesn't work
I get a :Request[/search] does not contain handler parameter named
action
Whats wrong with his one ?
SCRIPT language=javascript
function doSubmit() {
var url =
You may be right - might have to use the .index property instead.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] JavaScript + select tag question
I believe that document.forms
I believe that document.forms[0].elements[anySelectbox].value will be
invalid. .value only works on non-select form-elements. AFAIK without
testing it now.
Mark Galbreath wrote:
If you read the API you will see that JavaScript functions are built into
the Struts html:select tag:
I am not very profficient in JavaScript so any help would be appreciated
:
I would like to do the following :
I have a form with different fields and drop down boxes
When A drop down box is selectd I would like to do a submit that looks
TOPIC] JavaScript + select tag question
You may be right - might have to use the .index property instead.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] JavaScript + select tag
]
Gesendet: Dienstag, 22. Juli 2003 01:20
An: Struts Users Mailing List
Betreff: Re: AW: Error Using select tag To Create Drop-Down Menu
Hi, Dirk: Thanks for your help. My code works now.
I am able to see the drop-down menu in the browser.
--- Dirk Behrendt [EMAIL PROTECTED] wrote:
Hello!
I
I am doing testings step by step. I simply want to add
a drop-down menu feature to something that works OKay.
I am a newbie to struts. I do not know where to look
for my mistakes when I encounter problems.
Something is wrong in my .jsp page. This .jsp page had
worked fine before
, 21. Juli 2003 21:18
An: [EMAIL PROTECTED]
Betreff: Error Using select tag To Create Drop-Down Menu
I am doing testings step by step. I simply want to add
a drop-down menu feature to something that works OKay.
I am a newbie to struts. I do not know where to look
for my mistakes when I encounter
name
org.apache.struts.taglib.html.BEAN
Hope, that will help!
Dirk
-Ursprüngliche Nachricht-
Von: Caroline Jen [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 21. Juli 2003 21:18
An: [EMAIL PROTECTED]
Betreff: Error Using select tag To Create Drop-Down
Menu
I am doing
I have difficulties to use the tags Select and Option to display data
from an ArrayList.
So, I need a complete example of using them.
Could anyone help me?
Thanks in advance.
Silvério.
-
To unsubscribe, e-mail: [EMAIL
-Original Message-
From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: Select Tag and Options Tag
I have difficulties to use the tags Select and Option to display
data from an ArrayList. So, I need a complete
: Select Tag and Options Tag
I have difficulties to use the tags Select and Option to
display data
from an ArrayList.
So, I need a complete example of using them.
Could anyone help me?
Thanks in advance.
Silvério
The select tag does not correctly match values from a
mapped field. Thus, the following does not work:
html:select property=value(cars) value=value(cars)
This would theoretically get the mapped value for the
key cars from our form bean and match against an
item in our list of options. However
Hi,
I have a form that has an html:select tag that looks like this:
html:select property=permissions multiple=true size=10 tabindex=5
html:options collection=allPermissions property=permissionId
labelProperty=permissionName/
/html:select
This renders out as intended but when I
, January 23, 2003 6:51 AM
To: Struts User List
Subject: How to handle a multiple select tag
Hi,
I have a form that has an html:select tag that looks like this:
html:select property=permissions multiple=true size=10
tabindex=5
html:options collection=allPermissions property=permissionId
]]
Sent: Thursday, 23 January 2003 3:27 PM
To: Struts Users Mailing List
Subject: RE: How to handle a multiple select tag
Is this setter being called at all? If the 'permissions' property of your
form-bean is some kind of List (as it seems looking at the setter you have
shown) I don't think
Users Mailing List
Subject: RE: How to handle a multiple select tag
Thanks Sri for the help. I have updated the code to reflect
your suggestions. I actually had an ArrayList in there
originally and I changed it to an String[] because I was
receiving the following error
hi all,
I've a trouble while using the html select tag.
when a use the select tag with the fragment code below,
everything works well
html:select styleClass=listBox property='fundCodes' size=10 multiple=
true
html:options name='fundOptionCodes
To: [EMAIL PROTECTED]
Subject: problem with select tag
hi all,
I've a trouble while using the html select tag.
when a use the select tag with the fragment code below,
everything works well
html:select styleClass=listBox property='fundCodes'
size=10 multiple= true
:
|
| Objet : RE: problem with select tag
|
---|
1
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 11:08 AM
To: Struts Users Mailing List
Subject: Réf. : RE: problem with select tag
|-+
| | Sri Sankaran |
| | Sri.Sankaran@sas
Hi all,
I define a multiple select tag in my jsp like this :
html:select property='selectedCodes' size=4 multiple=true
html:options name='fundOptionCodes'
labelName='fundOptionLabels' /
/html:select
name and label are objects in the session.
I would like to capture selected datas
.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Hi all,
I define a multiple select tag in my jsp like this :
html:select property='selectedCodes' size=4 multiple=true
html:options name='fundOptionCodes'
labelName='fundOptionLabels' /
/html:select
name
This is pertaining to Select Tag.
Is it is possible that value attribute in select tag can take a String
array.
When I select multiple items in the select and submit to the same page, how
can we retain these values. Presently I am able to reatin only one of the
selected values. I notice
of Strings.
private String accountType[];
public void setAccountType(String parm[]) { accountType = parm; }
public String[] getAccountType() { return accountType; }
Does this answer your question?
From: Sesha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Select Tag
Date: Tue
, by using select tag correctly
Do you have an appropriate form class declaration and an associated
action class mapping in your struts-config.xml?
-Original Message-
From: Björn Blum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 8:23 AM
To: Struts Users Mailing List
Subject: Re
with getter- and setter Method in the ActionForm
which is associated with the selectPP.do Action, but it doesn#t work.
Hello,
I've got a little Problem in how using the struts select - tag
correctly. I'm new to Struts and have read the mails correspondig to
the select-tag in this mailing-list, but i'm
Hi,
Thanx for your help. It works.
But now there's another funny problem. Struts produces by pasing and
generating the select tag an infinite loop.
It always calls the getter-method of planningperiodid in my helperclass,
although there are only two elements in my pplist.
Does anybody knows
Hello,
I've got a little Problem in how using the struts select - tag correctly.
I'm new to Struts and have read the mails correspondig to the select-tag in
this mailing-list, but i'm not able to run my select tag.
Scenario:
In my action class a list of planningperiods is generated. the select
The PlaningPeriodHelper class needs to be an attribute of your ActionForm
class. The jsp then uses this form bean.
-Original Message-
From: Björn Blum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 7:21 AM
To: Struts Users Mailing List
Subject: Need help, by using select tag
with the selectPP.do Action, but it doesn#t work.
Bjoern
-Original Message-
From: Björn Blum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 7:21 AM
To: Struts Users Mailing List
Subject: Need help, by using select tag correctly
Hello,
I've got a little Problem in how using the struts
with the selectPP.do Action, but it doesn#t work.
Bjoern
-Original Message-
From: Björn Blum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 7:21 AM
To: Struts Users Mailing List
Subject: Need help, by using select tag correctly
Hello,
I've got a little Problem in how using
Team,
I need your help. I'm trying to build a select tag that whose value is a
number and display value is a string.
For example,
select name=sApprover
option value=0 selectedSelect Your Approver/option
option value=1James Marshall/option
option value=2John Clark
Thanks Jim that took care of it.
Jose Casas
E-Commerce Applications
(501) 277-3112
[EMAIL PROTECTED]
**
Notice: The area code for the Wal-Mart General Office has
changed from 501 to 479. Please make sure that you are
Jim,
Making the s in property=selectBox1List lower case helped fix the error
that I was getting. Now that I added my select tag I get another one which
says
java.lang.IllegalArgumentException: No name specified
Does this mean I'm missing a name attribute in either the select or options
tag
select tag I get another one which
says
java.lang.IllegalArgumentException: No name specified
Does this mean I'm missing a name attribute in either the select or options
tag? I tried changing the s in property=selectBox1 to a capital s but
that gave me a no getter method for SelectBox1
initialy (w/0) submitting
the form. But when I submit the form I get a NullPointerException and a
unsynchronized error. In the my action class I have no logic other than to
return to my original page (mypage.jsp). The problem is occuring because of
a select tag that I am using.
One of the ways I tried
I'm sorry if this is a resend, but I have been having
problems sending emails to the outside world, so I
don't know if this ever made it to the mailing list,
and I haven't seen any responses.
I have noticed that the value attribute of the select
tag, which is said to be a run-time expression
of the select
tag, which is said to be a run-time expression in the
struts tag documentation, does not seem to work that way.
I have the following select statement:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
value=%=OrganizationForm.PARENT_ORG_ID %
html:options collection
I finally figured out what was wrong.
The below did not work:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
value=%=OrganizationForm.PARENT_ORG_ID %
html:options collection=%= Constants.ORG_LIST %
property=%= Constants.SELECT_VALUE %
]]
Sent: Thursday, January 31, 2002 3:17 PM
To: 'Struts Users Mailing List'
Subject: bug with the select tag value attribute? - Solved somewhat
I finally figured out what was wrong.
The below did not work:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
value
I have noticed that the value attribute of the select
tag, which is said to be a run-time expression in the
struts tag documentation, does not seem to work that way.
I have the following select statement:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
value
of the SELECT tag??
Alternatively, I've also tried not to use the iterate tag:
html:select property='%=optionSelected[ + i + ][ + j + ]%'
html:options property=options /
/html:select
and the generated html looks like this:
select name=optionSelected[0][0]
option value=AA
option value=BB
Use struts option tag.
That will cause a call to your form bean to get the
value to be selected when page is displayed.
--- Tom Watkins [EMAIL PROTECTED] wrote:
I have a jsp using the strutshtml:select tag with
nested option tags. I
need to give the drop down list an initial value
first
If you use the struts option tag it will get the
selected value from the formbean when the page is
displayed (reverse of the way it sets the selected
value when the form is submitted).
Then you have full control!
Keith.
--- Tom Watkins [EMAIL PROTECTED] wrote:
I have a jsp using the
brilliant - thanks
-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 12:02
To: Struts Users Mailing List
Subject: Re: strutshtml select tag initial value
If you use the struts option tag it will get the
selected value from the formbean when the page
Hi all
I have a select box with several options. I'd like that a particular option
is alredy checked when the JSP page is dispayed to the user. How to do that?
i.e.
html:select property=fanum size=1 style=width:100%
html:options collection=RegionalClubs property=value
selectedstatus, you have to add value property
of select.
fehmi.
-Ursprüngliche Nachricht-
Von: Roland Berger [mailto:[EMAIL PROTECTED]]
Gesendet am: Thursday, November 22, 2001 1:39 PM
An: Struts Mailinglist
Betreff: How to display an option(s) in a select tag as checked
Hi all
I have
Scott,
Indexed capability is already available for the select tag (though, like the
other tags, you need to use a nightly build).
cheers,
Dave
Scott Ryan [EMAIL PROTECTED] on 09/05/2001
06:46:20 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex
: (303) 235-1485
Cell:(303 263-3044
[EMAIL PROTECTED] 09/06/01 09:42AM
Scott,
Indexed capability is already available for the select tag (though,
like the
other tags, you need to use a nightly build).
cheers,
Dave
Scott Ryan [EMAIL PROTECTED] on
09/05/2001
06:46:20 PM
Please respond
Would it be possible to add the indexed capability to the select tag.
I have an application that would benefit greatly from that capability.
I have a set of rows that are contained within a Vector in a bean. I
use a set of iterate tags combined with the indexed capability within
such tags
Another way is to have the FormBean populated with the desired value. So
when the select tag is rendered, it will automatically select the value from
the form bean.
-Original Message-
From: SUHAS G. KULKARNI [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:51 AM
To: [EMAIL
Hi all
How do I disply a desired value, while populating the select tag?
I'm using the tag like this...
html:select property=grouptype
html:options collection=allgroups property=key
labelProperty=value/
/html:select
It is showing me the dropdown box
check this
I think u have to change the select tag a bit -
html:select property=grouptype value=theoneUwantTOSelect
-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: Select tag
Hi all
How do I
Hi.
i have an ActionForm:
public class MyForm extends ActionForm {
...
public Collection getOptions(int index) { ... }
public Collection getLabels(int index) { ... }
public String[] getSelection(int index) { ... }
public void setSelection(int index, String[] value) { ... }
...
}
Hi,
I'm using a form using struts and the struts-html tag library and a select
tag. When I'm editing an entry in the form I want to disable the select box
while still displaying it with what's selected and have it enabled when
creating a new entry. I would have thought simply inserting
?
Hal
-Original Message-
From: Joel Schmidt [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 12:55 PM
To: [EMAIL PROTECTED]
Subject: select tag attribute disable
Hi,
I'm using a form using struts and the struts-html tag library
and a select
tag. When I'm editing
hi guys
What exactly should be the value of the property attribute of select tag
I am using a string and it reports that the value doesnt confirm to the
TLD.
html:select property="paymentMode"
html:options collection="paymentModeList" property="id"
label
Anand,
Try using:
html:select property='%= new String("paymentMode") %'
notice ' instead of "
-Nimmi
-Original Message-
From: Anand Raman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 10:09 AM
To: struts
Subject: significance of property attribute in selec
attribute is
specified for the html:select tag.
Hope this helps.
--
Martin Cooper
- Original Message -
From: "Anand Raman" [EMAIL PROTECTED]
To: "struts" [EMAIL PROTECTED]
Sent: Thursday, March 08, 2001 8:09 AM
Subject: significance of property attribute in select tag
ice.
if(/* User picked ShowReleases */)
return (mapping.findForward("showReleases"));
else if (/* User picked ShowTestPlan */)
return (mapping.findForward("showTestPlan"));
-Original Message-
From: Ellen Murray [mailto:[EMAIL PROTECTED]]
Sent: Friday, Februa
Ellen Murray wrote:
Hi,
This is a newbie question. I am creating a web
application where each page contains a pull down
menu of commands (SELECT). I want the users choice
of menu item to invoke the next action object.
Because the FORM tag allows only one action,
This restriction is based
Hi!
Is there a possibility to use the select tag with multiple="1" and let the
action class make the matching to a Collection in the form object?
Since yet it seems, that it is not possible to pass a collection of values
to the form object and let the action class make the reflection.
Hi,
I faced some problem using form:select tag in WebLogic
5.1. I've traced the problem to the following section
of code in the method doStartTag() in SelectTag.java:
// Calculate the match value we will actually be
using
if (value != null) {
match = value;
}
80 matches
Mail list logo