Re: internationalizing html:option tag, force to lookup resource file

2004-03-08 Thread Niall Pemberton
The  tag already has this facility - you can specify a "key"
attribute.

If however you want yo use the  tag, there was an
identical discussion on this list recently. You can find the start of that
thread here..

http://www.mail-archive.com/[EMAIL PROTECTED]/msg93939.html

Niall

- Original Message - 
From: "Keith Hyland" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 08, 2004 4:10 PM
Subject: internationalizing html:option tag, force to lookup resource file


> Hi,
>
> Sorry if this is a repeat post, but I don't think the original went
through.
>
> I'm just starting into looking at struts.
>
> Is it possible to generate a select/ options list using the html:select
> and html:option(s) tags, where the labelProperties (i.e. the text
> displayed on the end users web browser) get looked up from a resource
> file, instead of been displayed directly.
>
> e.g.
>
> if we have a collection bean made up of 3 namevalue pairs {(1,one),
> (2,two), (3,three)}
>
>  
>labelProperty="value"/>
>  
>
> produces
>
> 
>  one
>  two
>  three
> 
>
> This produces a select box with the English values appearing on the web
> page regardless of the locale that is set.
>
> What I want is for the one, two and three to be keys into the
> applicationResources.properties so that different locales can be setup.
>
> If this is not available would it be useful to write a tag to do this?
>
> Cheers,
> Keith
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: internationalizing html:option tag, force to lookup resource file

2004-03-08 Thread Jay Glanville
Currently, you need to use the  tag, not the html:options
or html:optionsCollection tags.  The latter two do not support I18n.
Therefore, you need to iterate over a collection, placing the resource
key in the html:ooption's key attribute.  Here's an example of what I
do:

  

  

  

--
Jay Glanville



> -Original Message-
> From: Keith Hyland [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 08, 2004 11:11 AM
> To: Struts Users Mailing List
> Subject: internationalizing html:option tag, force to lookup 
> resource file
> 
> 
> Hi,
> 
> Sorry if this is a repeat post, but I don't think the 
> original went through.
> 
> I'm just starting into looking at struts.
> 
> Is it possible to generate a select/ options list using the 
> html:select 
> and html:option(s) tags, where the labelProperties (i.e. the text 
> displayed on the end users web browser) get looked up from a resource 
> file, instead of been displayed directly.
> 
> e.g.
> 
> if we have a collection bean made up of 3 namevalue pairs {(1,one), 
> (2,two), (3,three)}
> 
>  
>labelProperty="value"/>
>  
> 
> produces
> 
> 
>  one
>  two
>  three
> 
> 
> This produces a select box with the English values appearing 
> on the web 
> page regardless of the locale that is set.
> 
> What I want is for the one, two and three to be keys into the 
> applicationResources.properties so that different locales can 
> be setup.
> 
> If this is not available would it be useful to write a tag to do this?
> 
> Cheers,
> Keith
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



internationalizing html:option tag, force to lookup resource file

2004-03-08 Thread Keith Hyland
Hi,

Sorry if this is a repeat post, but I don't think the original went through.

I'm just starting into looking at struts.

Is it possible to generate a select/ options list using the html:select 
and html:option(s) tags, where the labelProperties (i.e. the text 
displayed on the end users web browser) get looked up from a resource 
file, instead of been displayed directly.

e.g.

if we have a collection bean made up of 3 namevalue pairs {(1,one), 
(2,two), (3,three)}

 
  
 

produces


 one
 two
 three


This produces a select box with the English values appearing on the web 
page regardless of the locale that is set.

What I want is for the one, two and three to be keys into the 
applicationResources.properties so that different locales can be setup.

If this is not available would it be useful to write a tag to do this?

Cheers,
Keith


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: how to disable a html:option tag?

2004-01-17 Thread Dirk Manske (Service Respond)
Hi,

thank you all for your help. The final explanation was brought by Jason. The
special disabled attribute only works with mozilla browsers!!! I justt
tested it.  ie6 indeed does not support the thml:option disable attribute
(sh...). Unfortunately I am not allowed to use mozilla... so the javascript
example comes in... :) 

Dirk 

-Ursprüngliche Nachricht-
Von: Jason Lea [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 18. Januar 2004 01:27
An: Struts Users Mailing List
Betreff: Re: how to disable a html:option tag?

It could be that the the tag just renders an sometext html tag.  If that is the case then the
HTML browser would need to support the disable attribute.  I wrote a quick
test for IE and Mozilla:





1
2 3
   

IE V6.0 didn't support the disable attribute.  Mozilla Firebird V0.7 does.

Hookom, Jacob wrote:

>You can disable the select tag as a whole, but I've never heard of 
>disabling an option tag.  You might just want to not list them.
>
>-Original Message-
>From: Dirk Manske [mailto:[EMAIL PROTECTED]
>Sent: Saturday, January 17, 2004 5:21 PM
>To: 'Struts Users Mailing List'
>Subject: AW: how to disable a html:option tag? 
>Sensitivity: Personal
>
>Hi,
>
>Does nobody know an answer or is it just too trivial?! Hm. The HTML Tag 
>Library says, that I can disable an option by setting disabled to "true".
>However it does not work, the option can still be selected. I am 
>wondering is this a bug or did I miss something?
>
>I hope someone can give me a hint. Thank you.
>
>Dirk
> 
>
>-Ursprüngliche Nachricht-
>Von: Dirk Manske (Service Respond)
>[mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 16. Januar 2004 18:04
>An: [EMAIL PROTECTED]
>Betreff: how to disable a html:option tag? 
>Vertraulichkeit: Persönlich
>
>Hi,
> 
>I have in a form a html:select tag and inside some html:option tags. I 
>want to disable some options and declared it like this
> 
>
> 
>optionText
> 
>
> 
>But this seems not to work because this option is still selectable. How 
>to solve it?
> 
>thx,
>Dirk
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


--
Jason Lea



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to disable a html:option tag?

2004-01-17 Thread Jason Lea
It could be that the the tag just renders an sometext html tag.  If that is the case then 
the HTML browser would need to support the disable attribute.  I wrote a 
quick test for IE and Mozilla:





1
2
3




IE V6.0 didn't support the disable attribute.  Mozilla Firebird V0.7 does.

Hookom, Jacob wrote:

You can disable the select tag as a whole, but I've never heard of disabling
an option tag.  You might just want to not list them.
-Original Message-
From: Dirk Manske [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 17, 2004 5:21 PM
To: 'Struts Users Mailing List'
Subject: AW: how to disable a html:option tag? 
Sensitivity: Personal

Hi,

Does nobody know an answer or is it just too trivial?! Hm. The HTML Tag
Library says, that I can disable an option by setting disabled to "true".
However it does not work, the option can still be selected. I am wondering
is this a bug or did I miss something?
I hope someone can give me a hint. Thank you.

Dirk

-Ursprüngliche Nachricht-
Von: Dirk Manske (Service Respond)
[mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 18:04
An: [EMAIL PROTECTED]
Betreff: how to disable a html:option tag? 
Vertraulichkeit: Persönlich

Hi,

I have in a form a html:select tag and inside some html:option tags. I want
to disable some options and declared it like this


optionText



But this seems not to work because this option is still selectable. How to
solve it?
thx,
Dirk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



--
Jason Lea


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how to disable a html:option tag?

2004-01-17 Thread Guillermo Meyer
I found this solution searching in google:
(http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20756860.html)

[copy of that solution...]



one
two
three
four





When you select disabled option it defaults to first one.

Buy the way, you shouldn't show disabled options in the select, that
would be a nicer solution, rather than previous one.

Cheers.
Guillermo

-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 17 de Enero de 2004 09:12 p.m.
To: Struts Users Mailing List
Subject: RE: how to disable a html:option tag? 
Sensitivity: Personal


You can disable the select tag as a whole, but I've never heard of
disabling an option tag.  You might just want to not list them.

-Original Message-
From: Dirk Manske [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 17, 2004 5:21 PM
To: 'Struts Users Mailing List'
Subject: AW: how to disable a html:option tag? 
Sensitivity: Personal

Hi,

Does nobody know an answer or is it just too trivial?! Hm. The HTML Tag
Library says, that I can disable an option by setting disabled to
"true". However it does not work, the option can still be selected. I am
wondering is this a bug or did I miss something?

I hope someone can give me a hint. Thank you.

Dirk
 

-Ursprüngliche Nachricht-
Von: Dirk Manske (Service Respond)
[mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 18:04
An: [EMAIL PROTECTED]
Betreff: how to disable a html:option tag? 
Vertraulichkeit: Persönlich

Hi,
 
I have in a form a html:select tag and inside some html:option tags. I
want to disable some options and declared it like this
 

 
optionText
 

 
But this seems not to work because this option is still selectable. How
to solve it?
 
thx,
Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to disable a html:option tag?

2004-01-17 Thread Hookom, Jacob
You can disable the select tag as a whole, but I've never heard of disabling
an option tag.  You might just want to not list them.

-Original Message-
From: Dirk Manske [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 17, 2004 5:21 PM
To: 'Struts Users Mailing List'
Subject: AW: how to disable a html:option tag? 
Sensitivity: Personal

Hi,

Does nobody know an answer or is it just too trivial?! Hm. The HTML Tag
Library says, that I can disable an option by setting disabled to "true".
However it does not work, the option can still be selected. I am wondering
is this a bug or did I miss something?

I hope someone can give me a hint. Thank you.

Dirk
 

-Ursprüngliche Nachricht-
Von: Dirk Manske (Service Respond)
[mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 18:04
An: [EMAIL PROTECTED]
Betreff: how to disable a html:option tag? 
Vertraulichkeit: Persönlich

Hi,
 
I have in a form a html:select tag and inside some html:option tags. I want
to disable some options and declared it like this
 

 
optionText
 

 
But this seems not to work because this option is still selectable. How to
solve it?
 
thx,
Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: how to disable a html:option tag?

2004-01-17 Thread Dirk Manske
Hi,

Does nobody know an answer or is it just too trivial?! Hm. The HTML Tag
Library says, that I can disable an option by setting disabled to "true".
However it does not work, the option can still be selected. I am wondering
is this a bug or did I miss something?

I hope someone can give me a hint. Thank you.

Dirk
 

-Ursprüngliche Nachricht-
Von: Dirk Manske (Service Respond)
[mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 16. Januar 2004 18:04
An: [EMAIL PROTECTED]
Betreff: how to disable a html:option tag? 
Vertraulichkeit: Persönlich

Hi,
 
I have in a form a html:select tag and inside some html:option tags. I want
to disable some options and declared it like this
 

 
optionText
 

 
But this seems not to work because this option is still selectable. How to
solve it?
 
thx,
Dirk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to disable a html:option tag?

2004-01-16 Thread Dirk Manske (Service Respond)
Hi,
 
I have in a form a html:select tag and inside some html:option tags. I want
to disable some options and declared it like this
 

 
optionText
 

 
But this seems not to work because this option is still selectable. How to
solve it?
 
thx,
Dirk


Re: html:option - is there a selected option attribute?

2003-06-24 Thread Chad Mathis
I noticed in your  attributes that you didn't specify "multiple" as an 
attribute.  If it is just a single select, there is a "value" attribute that can be 
set that is a property of the  tag. If the property of "value" in the 
html:select tag matches the property of "property" in the html:options tag, then it 
will display it as selected.

The method I talk about below uses a regular ActionForm and not the DynaActionForm, 
but it still applies.  If you choose not to use the "value" attribute of the 
 tag, you can also use the bean that is associated with the  
that you are in.  In your action.execute(), if you set your bean variable that matches 
"property" of the  (should be a String[] for multiple) and in it list the 
"property"'s from the  that you want selected, they will be displayed as 
selected.  Below is an example:

- the jsp 

 


-- in the action.execute() --
ClaimReportingForm claimReportingForm = (ClaimReportingForm) form;
String[] selected = {"ALL","D"};
claimReportingForm.setCallStatus(selected);


So, now when ever the page is displayed, any of my callStatusCode that matches "ALL" 
or "D", will be selected.



-Original Message- 

>Steve, 
>Thank you VERY much.  I will be sure to take a look; half the battle is finding 
>examples. 
>
>Natalie 
>
>Steve Raeburn wrote: 
>
>Natalie, 
>
>If it would help, I've put together an example application 
(http://www.ninsky.com/struts) that shows most of the basic tags in action. 
It actually came about after a discussion about options examples, so there 
may be something you could use. 
>
>It's available as a WAR file that you can deploy directly to your servlet 
container and includes viewable source so you can cut-and-paste any examples 
that might do what you need. 
>
>Another useful source of examples is the excercise-taglib application which 
is included in the struts distribution. It's got more comprehensive coverage 
of the tags than mine but is designed to test the tags rather than be easy 
to understand for someone new to Struts. 
>
>HTH 
>
>Steve 
>
> -Original Message- 
> From: Rassmann, Natalie D [mailto:[EMAIL PROTECTED] 
> Sent: June 23, 2003 11:43 AM 
> To: Struts Users Mailing List 
> Subject: Re: html:option - is there a selected option attribute? 
> 
> 
> Wendy, 
> 
> You have been very helpful.  This is my first STRUTS app and I seem to 
> stumble the most on getting these tags to work.  I have not found any real 
> documentation examples to help me.  At any rate, I tried to use 
> the options 
> collection tag and I had no success.  It was one error after another.  I 
> finally got the lists to display as a drop down using the JSTL 
> tag forEach. 
> 
> 
> This is what my code looked like when I was trying to use the options 
> collection tag: 
> 
> 
>   
>   property="optionId" labelProperty="optionLabel"/> 
>
> 
> 
> After reading what you wrote, I think I should try the following to get it 
> to work: 
> 
> 
>   
>   collection="${reviewRecordForm.map.csci.options}"property="optionId" 
> labelProperty="optionLabel"/> 
>
> 
> 
> csci is another property in my form bean which is the same type as 
> baseline.  In the properties field of the select tag I used the 
> collection instead of the actual form bean property.  I think 
> maybe this was 
> my problem.  I am going to try it and see what happens. 
> 
> 
> Do you think I am on the right track?? 
> 
> 
> Thanks for your help, 
> 
> 
> Natalie 
> 
> 
> Wendy Smoak wrote: 
> 
> 
> Natalie wrote: 
> > In my Action's execute method, I do a beanutils.copyProperties 
> to copy the 
> 
> 
> 
> > dto (data from DB) into my form.  So, my form bean property is 
> already set 
> 
> 
> 
> > to the list. This list is used to build the select list drop 
> down box in 
> my jsp. 
> 
> 
> The entire contents of the drop down is a different thing than the single 
> item from that list that the user has selected.  I don't store 
> the lists of 
> items in my Form bean, but YMMV. 
> 
> 
> You don't have to do the iteration with c:forEach, the select tag 
> will do it 
> 
> for you. 
> 
> 
> Here's one of mine: 
>  
>   labelProperty="value"/> 
>  
> 
> 
> Where 'reminderPurposes' is a Collection sitting in Application scope. 
> 
> 
> If I wanted to "pre-select" a certain item, I might (in the 
> Action's execute 
> 
> method) do: 
> ( (D

Re: html:option - is there a selected option attribute?

2003-06-24 Thread Natalie D Rassmann


Steve,
Thank you VERY much.  I will be sure to take a look; half the battle
is finding examples.
Natalie
Steve Raeburn wrote:

Natalie,
If it would help, I've put together an example application
(http://www.ninsky.com/struts)
that shows most of the basic tags in action.
It actually came about after a discussion about options
examples, so there
may be something you could use.
It's available as a WAR file that you can deploy directly
to your servlet
container and includes viewable source so you can cut-and-paste
any examples
that might do what you need.
Another useful source of examples is the excercise-taglib
application which
is included in the struts distribution. It's got more
comprehensive coverage
of the tags than mine but is designed to test the tags
rather than be easy
to understand for someone new to Struts.
HTH
Steve
> -Original Message-
> From: Rassmann, Natalie D [mailto:[EMAIL PROTECTED]]
> Sent: June 23, 2003 11:43 AM
> To: Struts Users Mailing List
> Subject: Re: html:option - is there a selected option
attribute?
>
>
> Wendy,
>
> You have been very helpful.  This is my first
STRUTS app and I seem to
> stumble the most on getting these tags to work. 
I have not found any real
> documentation examples to help me.  At any rate,
I tried to use
> the options
> collection tag and I had no success.  It was one
error after another.  I
> finally got the lists to display as a drop down using
the JSTL
> tag forEach.
>
>
> This is what my code looked like when I was trying
to use the options
> collection tag:
>
>
>  
>  
> property="optionId" labelProperty="optionLabel"/>
>   
>
>
> After reading what you wrote, I think I should try
the following to get it
> to work:
>
>
>  
>  
> collection="${reviewRecordForm.map.csci.options}"property="optionId"
> labelProperty="optionLabel"/>
>   
>
>
> csci is another property in my form bean which is the
same type as
> baseline.  In the properties field of the
select tag I used the
> collection instead of the actual form bean property. 
I think
> maybe this was
> my problem.  I am going to try it and see what
happens.
>
>
> Do you think I am on the right track??
>
>
> Thanks for your help,
>
>
> Natalie
>
>
> Wendy Smoak wrote:
>
>
> Natalie wrote:
> > In my Action's execute method, I do a beanutils.copyProperties
> to copy the
>
>
>
> > dto (data from DB) into my form.  So, my form
bean property is
> already set
>
>
>
> > to the list. This list is used to build the select
list drop
> down box in
> my jsp.
>
>
> The entire contents of the drop down is a different
thing than the single
> item from that list that the user has selected. 
I don't store
> the lists of
> items in my Form bean, but YMMV.
>
>
> You don't have to do the iteration with c:forEach,
the select tag
> will do it
>
> for you.
>
>
> Here's one of mine:
> 
>  
> labelProperty="value"/>
> 
>
>
> Where 'reminderPurposes' is a Collection sitting in
Application scope.
>
>
> If I wanted to "pre-select" a certain item, I might
(in the
> Action's execute
>
> method) do:
> ( (DynaActionForm) form ).set( "purpose", "GI" );
>
>
> Instead, I just do this:
>    BeanUtils.copyProperties( dvForm,
contact );
> and since the DTO and the form both have a 'purpose'
property, the value
> gets copied from the DTO (contact in this case) to
the form.
>
>
> You ask what you're supposed to set 'baseline' to. 
I thought you were
> originally asking how to pre-select a certain value
before the form is
> displayed for the first time.  If you don't have
a value in mind,
> then don't
>
> set it to anything.
>
>
> However, most of the problem seems to be that you're
working too hard...
> Struts handles most of this, the iteration over a Collection,
> pre-selecting
> the right item, magically behind the scenes, and you
don't have to do
> anything.
>
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Public Affairs, Information Resources Management
> Arizona State University, Tempe AZ
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Steve Raeburn
Natalie,

If it would help, I've put together an example application
(http://www.ninsky.com/struts) that shows most of the basic tags in action.
It actually came about after a discussion about options examples, so there
may be something you could use.

It's available as a WAR file that you can deploy directly to your servlet
container and includes viewable source so you can cut-and-paste any examples
that might do what you need.

Another useful source of examples is the excercise-taglib application which
is included in the struts distribution. It's got more comprehensive coverage
of the tags than mine but is designed to test the tags rather than be easy
to understand for someone new to Struts.

HTH

Steve

> -Original Message-
> From: Rassmann, Natalie D [mailto:[EMAIL PROTECTED]
> Sent: June 23, 2003 11:43 AM
> To: Struts Users Mailing List
> Subject: Re: html:option - is there a selected option attribute?
>
>
> Wendy,
>
> You have been very helpful.  This is my first STRUTS app and I seem to
> stumble the most on getting these tags to work.  I have not found any real
> documentation examples to help me.  At any rate, I tried to use
> the options
> collection tag and I had no success.  It was one error after another.  I
> finally got the lists to display as a drop down using the JSTL
> tag forEach.
>
>
> This is what my code looked like when I was trying to use the options
> collection tag:
>
>
>  
>   property="optionId" labelProperty="optionLabel"/>
>   
>
>
> After reading what you wrote, I think I should try the following to get it
> to work:
>
>
>  
>   collection="${reviewRecordForm.map.csci.options}"property="optionId"
> labelProperty="optionLabel"/>
>   
>
>
> csci is another property in my form bean which is the same type as
> baseline.  In the properties field of the select tag I used the
> collection instead of the actual form bean property.  I think
> maybe this was
> my problem.  I am going to try it and see what happens.
>
>
> Do you think I am on the right track??
>
>
> Thanks for your help,
>
>
> Natalie
>
>
> Wendy Smoak wrote:
>
>
> Natalie wrote:
> > In my Action's execute method, I do a beanutils.copyProperties
> to copy the
>
>
>
> > dto (data from DB) into my form.  So, my form bean property is
> already set
>
>
>
> > to the list. This list is used to build the select list drop
> down box in
> my jsp.
>
>
> The entire contents of the drop down is a different thing than the single
> item from that list that the user has selected.  I don't store
> the lists of
> items in my Form bean, but YMMV.
>
>
> You don't have to do the iteration with c:forEach, the select tag
> will do it
>
> for you.
>
>
> Here's one of mine:
> 
>   labelProperty="value"/>
> 
>
>
> Where 'reminderPurposes' is a Collection sitting in Application scope.
>
>
> If I wanted to "pre-select" a certain item, I might (in the
> Action's execute
>
> method) do:
> ( (DynaActionForm) form ).set( "purpose", "GI" );
>
>
> Instead, I just do this:
>BeanUtils.copyProperties( dvForm, contact );
> and since the DTO and the form both have a 'purpose' property, the value
> gets copied from the DTO (contact in this case) to the form.
>
>
> You ask what you're supposed to set 'baseline' to.  I thought you were
> originally asking how to pre-select a certain value before the form is
> displayed for the first time.  If you don't have a value in mind,
> then don't
>
> set it to anything.
>
>
> However, most of the problem seems to be that you're working too hard...
> Struts handles most of this, the iteration over a Collection,
> pre-selecting
> the right item, magically behind the scenes, and you don't have to do
> anything.
>
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Public Affairs, Information Resources Management
> Arizona State University, Tempe AZ
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:option - is there a selected option attribute?

2003-06-23 Thread Rassmann, Natalie D
Wendy, 

You have been very helpful.  This is my first STRUTS app and I seem to
stumble the most on getting these tags to work.  I have not found any real
documentation examples to help me.  At any rate, I tried to use the options
collection tag and I had no success.  It was one error after another.  I
finally got the lists to display as a drop down using the JSTL tag forEach. 


This is what my code looked like when I was trying to use the options
collection tag: 


  
  
   


After reading what you wrote, I think I should try the following to get it
to work: 


  
  
   


csci is another property in my form bean which is the same type as
baseline.  In the properties field of the select tag I used the
collection instead of the actual form bean property.  I think maybe this was
my problem.  I am going to try it and see what happens. 


Do you think I am on the right track?? 


Thanks for your help, 


Natalie 


Wendy Smoak wrote: 


Natalie wrote: 
> In my Action's execute method, I do a beanutils.copyProperties to copy the



> dto (data from DB) into my form.  So, my form bean property is already set



> to the list. This list is used to build the select list drop down box in 
my jsp. 


The entire contents of the drop down is a different thing than the single 
item from that list that the user has selected.  I don't store the lists of 
items in my Form bean, but YMMV. 


You don't have to do the iteration with c:forEach, the select tag will do it

for you. 


Here's one of mine: 
 
  
 


Where 'reminderPurposes' is a Collection sitting in Application scope. 


If I wanted to "pre-select" a certain item, I might (in the Action's execute

method) do: 
( (DynaActionForm) form ).set( "purpose", "GI" ); 


Instead, I just do this: 
   BeanUtils.copyProperties( dvForm, contact ); 
and since the DTO and the form both have a 'purpose' property, the value 
gets copied from the DTO (contact in this case) to the form. 


You ask what you're supposed to set 'baseline' to.  I thought you were 
originally asking how to pre-select a certain value before the form is 
displayed for the first time.  If you don't have a value in mind, then don't

set it to anything. 


However, most of the problem seems to be that you're working too hard... 
Struts handles most of this, the iteration over a Collection, pre-selecting 
the right item, magically behind the scenes, and you don't have to do 
anything. 


-- 
Wendy Smoak 
Applications Systems Analyst, Sr. 
Public Affairs, Information Resources Management 
Arizona State University, Tempe AZ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: html:option - is there a selected option attribute?

2003-06-23 Thread Wendy Smoak
Natalie wrote:
> In my Action's execute method, I do a beanutils.copyProperties to copy the

> dto (data from DB) into my form.  So, my form bean property is already set

> to the list. This list is used to build the select list drop down box in
my jsp.  

The entire contents of the drop down is a different thing than the single
item from that list that the user has selected.  I don't store the lists of
items in my Form bean, but YMMV.

You don't have to do the iteration with c:forEach, the select tag will do it
for you.

Here's one of mine:




Where 'reminderPurposes' is a Collection sitting in Application scope.

If I wanted to "pre-select" a certain item, I might (in the Action's execute
method) do:
( (DynaActionForm) form ).set( "purpose", "GI" ); 

Instead, I just do this:
   BeanUtils.copyProperties( dvForm, contact );
and since the DTO and the form both have a 'purpose' property, the value
gets copied from the DTO (contact in this case) to the form.

You ask what you're supposed to set 'baseline' to.  I thought you were
originally asking how to pre-select a certain value before the form is
displayed for the first time.  If you don't have a value in mind, then don't
set it to anything.

However, most of the problem seems to be that you're working too hard...
Struts handles most of this, the iteration over a Collection, pre-selecting
the right item, magically behind the scenes, and you don't have to do
anything.

-- 
Wendy Smoak 
Applications Systems Analyst, Sr. 
Public Affairs, Information Resources Management 
Arizona State University, Tempe AZ 


Re: html:option - is there a selected option attribute?

2003-06-23 Thread Rassmann, Natalie D
Wendy, 

I am not sure how this would work.  My form element is an Object which is
called OptionsBean.  OptionsBean looks like this: 


list - Arraylist of (int optionId and String optionLabel) 
int selectedId 


In my Action's execute method, I do a beanutils.copyProperties to copy the
dto (data from DB) into my form.  So, my form bean property is already set
to the list. This list is used to build the select list drop down box in my
jsp.  Here is the code I am talking about: 


 
 : 
  
  
 
 

  
  
   


So, if in the execute method, you are suggesting I do the following: 


( (DynaActionForm) form ).set( "baseline", "" ); 


What am I going to set baseline too???  Haven't I already set it with the
copyProperties method?? 


Hope you can help me understand this. 


Natalie 
  


"Rassmann, Natalie D" wrote: 


Thank you, I will try that. 


Wendy Smoak wrote: 


Natalie wrote: 
> I will use the selectedId from the OptionsBean to set the selected option 
in the list. 
> How do I do this??   I don't think the overriding the reset method is the 
answer?? 


In the Action's execute method, set the value of that Form bean property to 
whatever you want it to be.  Struts will automatically mark that value 
selected when the HTML is rendered. 


Here's a snippet where I set a dynamic form property to the empty String: 
( (DynaActionForm) form ).set( "accompaniedByNameOrId", "" ); 


-- 
Wendy Smoak 
Applications Systems Analyst, Sr. 
Public Affairs, Information Resources Management 
Arizona State University, Tempe AZ 
  


- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:option - is there a selected option attribute?

2003-06-23 Thread Rassmann, Natalie D
Thank you, I will try that. 

Wendy Smoak wrote: 


Natalie wrote: 
> I will use the selectedId from the OptionsBean to set the selected option 
in the list. 
> How do I do this??   I don't think the overriding the reset method is the 
answer?? 


In the Action's execute method, set the value of that Form bean property to 
whatever you want it to be.  Struts will automatically mark that value 
selected when the HTML is rendered. 


Here's a snippet where I set a dynamic form property to the empty String: 
( (DynaActionForm) form ).set( "accompaniedByNameOrId", "" ); 


-- 
Wendy Smoak 
Applications Systems Analyst, Sr. 
Public Affairs, Information Resources Management 
Arizona State University, Tempe AZ



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: html:option - is there a selected option attribute?

2003-06-23 Thread Wendy Smoak
Natalie wrote:
> I will use the selectedId from the OptionsBean to set the selected option
in the list. 
> How do I do this??   I don't think the overriding the reset method is the
answer?? 

In the Action's execute method, set the value of that Form bean property to
whatever you want it to be.  Struts will automatically mark that value
selected when the HTML is rendered.

Here's a snippet where I set a dynamic form property to the empty String:
( (DynaActionForm) form ).set( "accompaniedByNameOrId", "" );

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Public Affairs, Information Resources Management
Arizona State University, Tempe AZ 


RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
did that solve ure problem

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:03 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?


This isn't going to work or at least I am not sure how it will because it isn't a 
reset problem.  In the formbean, I have as part of the property for the list what list 
item is selected.  For example, 

I have a DynaValidatorForm property called changeType.  changeType is of the type 
OptionsBean. 


OptionsBean looks like this 


options - ArrayList of  int OptionId and String OptionLabel 
selectedId - int 


The jsp code to build the list is below: 


  
 : 
 
 

  
 
 
   


This code will render the following in the resulting html file: 


 
 Change Type: 
non-SC 


   SC 
   


However, I want to be able to render the following: 


 
   Change Type: 

 non-SC 
SC 
  
 


I will use the selectedId from the OptionsBean to set the selected option in the list. 


How do I do this??   I don't think the overriding the reset method is the answer?? 


Filip Polsakiewicz wrote: 


Your formbean will be resetted on the first use and then every time you 
submit your form. 
  -Original Message- 
  From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
  Sent: Monday, June 23, 2003 1:26 PM 
  To: Struts Users Mailing List 
  Subject: Re: html:option - is there a selected option attribute? 


  This will only work if I am reseting  In the formbean, I have the 
selected option.  I want to extract that information and mark the 
appropriate list item as selected.  When I look in the tld, I do not see a 
selected attribute as part of the option tag.  How do I set the selected 
attribute 
   
    
   


  Filip Polsakiewicz wrote: 


  Sorry i was sleeping :-) I thought you were talking of checkboxes. 
Well 
i'd say it's not much different. In your formbeans reset method just set 
  the corresponding property (the property which is returned by your 
selectbox) to the value you would like to be the default. 


  Greetz, Filip 


   -Original Message- 
  From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
  Sent: Monday, June 23, 2003 1:13 PM 
  To: Struts Users Mailing List 
  Subject: Re: html:option - is there a selected option attribute? 


  You lost me; what corresponding boolean value?? 
  Filip Polsakiewicz wrote: 


Hi, 
i had the same problem. Here is the solution. You have to set the 
corresponding boolean value to true 


HTH Filip 


> -Original Message- 
> From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 23, 2003 12:52 PM 
> To: Struts Users Mailing List 
> Subject: html:option - is there a selected option attribute? 
> 
> 
> I have an Options List and I want to make one of the items in the 
select 
> list selected.  I am using the html-el tags.  How do I mark an 
option 
as 
> selected??  Is there a way: 
> 
> Thanks in advance, 
> 
> Natalie 
> 
> 


 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann


This isn't going to work or at least I am not sure how it will because
it isn't a reset problem.  In the formbean, I have as part of the
property for the list what list item is selected.  For example,
I have a DynaValidatorForm property called changeType.  changeType
is of the type OptionsBean.
OptionsBean looks like this
options - ArrayList of  int OptionId and String OptionLabel
selectedId - int
The jsp code to build the list is below:
 
 :
   

    
   


    
   

  
This code will render the following in the resulting html file:

 Change Type:
   
non-SC
   SC
  
However, I want to be able to render the following:

   Change Type:
   
 non-SC
    SC
 

I will use the selectedId from the OptionsBean to set the selected option
in the list.
How do I do this??   I don't think the overriding the reset
method is the answer??
Filip Polsakiewicz wrote:

Your formbean will be resetted on the first use and then
every time you
submit your form.
  -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 23, 2003 1:26 PM
  To: Struts Users Mailing List
  Subject: Re: html:option - is there a selected
option attribute?
  This will only work if I am reseting 
In the formbean, I have the
selected option.  I want to extract that information
and mark the
appropriate list item as selected.  When I look
in the tld, I do not see a
selected attribute as part of the option tag.  How
do I set the selected
attribute
  
    
   
  
  Filip Polsakiewicz wrote:
  Sorry i was sleeping :-)
I thought you were talking of checkboxes.
Well
    i'd say it's not much different. In
your formbeans reset method just set
  the corresponding property
(the property which is returned by your
    selectbox) to the value you would
like to be the default.
  Greetz, Filip
   -Original Message-
  From: Natalie D Rassmann
[mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 23,
2003 1:13 PM
  To: Struts Users Mailing
List
  Subject: Re: html:option
- is there a selected option attribute?
  You lost me; what corresponding
boolean value??
  Filip Polsakiewicz wrote:
    Hi,
    i had the
same problem. Here is the solution. You have to set the
    corresponding
boolean value to true
    HTH Filip
    > -Original
Message-
    > From: Natalie
D Rassmann [mailto:[EMAIL PROTECTED]]
    > Sent: Monday,
June 23, 2003 12:52 PM
    > To: Struts
Users Mailing List
    > Subject:
html:option - is there a selected option attribute?
    >
    >
    > I have an
Options List and I want to make one of the items in the
    select
    > list selected. 
I am using the html-el tags.  How do I mark an
option
    as
    > selected?? 
Is there a way:
    >
    > Thanks in
advance,
    >
    > Natalie
    >
    >
    
-
    To unsubscribe,
e-mail: [EMAIL PROTECTED]
    For additional
commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
hello
u need to set the name attribute also in the 
   
so that reset works for u

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:56 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?


This will only work if I am reseting  In the formbean, I have the selected option. 
 I want to extract that information and mark the appropriate list item as selected.  
When I look in the tld, I do not see a selected attribute as part of the option tag.  
How do I set the selected attribute 

 
  
 


Filip Polsakiewicz wrote: 


  Sorry i was sleeping :-) I thought you were talking of checkboxes. Well 
i'd say it's not much different. In your formbeans reset method just set 
  the corresponding property (the property which is returned by your 
selectbox) to the value you would like to be the default. 


  Greetz, Filip 


   -Original Message- 
  From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
  Sent: Monday, June 23, 2003 1:13 PM 
  To: Struts Users Mailing List 
  Subject: Re: html:option - is there a selected option attribute? 


  You lost me; what corresponding boolean value?? 
  Filip Polsakiewicz wrote: 


Hi, 
i had the same problem. Here is the solution. You have to set the 
corresponding boolean value to true 


HTH Filip 


> -Original Message- 
> From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 23, 2003 12:52 PM 
> To: Struts Users Mailing List 
> Subject: html:option - is there a selected option attribute? 
> 
> 
> I have an Options List and I want to make one of the items in the 
select 
> list selected.  I am using the html-el tags.  How do I mark an option 
as 
> selected??  Is there a way: 
> 
> Thanks in advance, 
> 
> Natalie 
> 
> 


- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann


I am using DynaValidatorForm  I will have to try to extend this
and override the reset method and try what you suggested.
Thanks for the info.
Filip Polsakiewicz wrote:

Your formbean will be resetted on the first use and then
every time you
submit your form.
  -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 23, 2003 1:26 PM
  To: Struts Users Mailing List
  Subject: Re: html:option - is there a selected
option attribute?
  This will only work if I am reseting 
In the formbean, I have the
selected option.  I want to extract that information
and mark the
appropriate list item as selected.  When I look
in the tld, I do not see a
selected attribute as part of the option tag.  How
do I set the selected
attribute
  
    
   
  
  Filip Polsakiewicz wrote:
  Sorry i was sleeping :-)
I thought you were talking of checkboxes.
Well
    i'd say it's not much different. In
your formbeans reset method just set
  the corresponding property
(the property which is returned by your
    selectbox) to the value you would
like to be the default.
  Greetz, Filip
   -Original Message-
  From: Natalie D Rassmann
[mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 23,
2003 1:13 PM
  To: Struts Users Mailing
List
  Subject: Re: html:option
- is there a selected option attribute?
  You lost me; what corresponding
boolean value??
  Filip Polsakiewicz wrote:
    Hi,
    i had the
same problem. Here is the solution. You have to set the
    corresponding
boolean value to true
    HTH Filip
    > -Original
Message-
    > From: Natalie
D Rassmann [mailto:[EMAIL PROTECTED]]
    > Sent: Monday,
June 23, 2003 12:52 PM
    > To: Struts
Users Mailing List
    > Subject:
html:option - is there a selected option attribute?
    >
    >
    > I have an
Options List and I want to make one of the items in the
    select
    > list selected. 
I am using the html-el tags.  How do I mark an
option
    as
    > selected?? 
Is there a way:
    >
    > Thanks in
advance,
    >
    > Natalie
    >
    >
    
-
    To unsubscribe,
e-mail: [EMAIL PROTECTED]
    For additional
commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Filip Polsakiewicz
Your formbean will be resetted on the first use and then every time you
submit your form.
  -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 23, 2003 1:26 PM
  To: Struts Users Mailing List
  Subject: Re: html:option - is there a selected option attribute?


  This will only work if I am reseting  In the formbean, I have the
selected option.  I want to extract that information and mark the
appropriate list item as selected.  When I look in the tld, I do not see a
selected attribute as part of the option tag.  How do I set the selected
attribute
  
   
  

  Filip Polsakiewicz wrote:

  Sorry i was sleeping :-) I thought you were talking of checkboxes.
Well
i'd say it's not much different. In your formbeans reset method just set
  the corresponding property (the property which is returned by your
selectbox) to the value you would like to be the default.

  Greetz, Filip

   -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 23, 2003 1:13 PM
  To: Struts Users Mailing List
  Subject: Re: html:option - is there a selected option attribute?

  You lost me; what corresponding boolean value??
  Filip Polsakiewicz wrote:

Hi,
i had the same problem. Here is the solution. You have to set the
corresponding boolean value to true

HTH Filip

> -Original Message-
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 12:52 PM
> To: Struts Users Mailing List
> Subject: html:option - is there a selected option attribute?
>
>
> I have an Options List and I want to make one of the items in the
select
> list selected.  I am using the html-el tags.  How do I mark an
option
as
> selected??  Is there a way:
>
> Thanks in advance,
>
> Natalie
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann


This will only work if I am reseting  In the formbean, I have
the selected option.  I want to extract that information and mark
the appropriate list item as selected.  When I look in the tld, I
do not see a selected attribute as part of the option tag.  How do
I set the selected attribute
  
 

Filip Polsakiewicz wrote:

  Sorry i was sleeping :-) I thought you were talking
of checkboxes. Well
i'd say it's not much different. In your formbeans reset
method just set
  the corresponding property (the property which
is returned by your
selectbox) to the value you would like to be the default.
  Greetz, Filip
   -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 23, 2003 1:13 PM
  To: Struts Users Mailing List
  Subject: Re: html:option - is there a selected
option attribute?
  You lost me; what corresponding boolean value??
  Filip Polsakiewicz wrote:
    Hi,
    i had the same problem. Here is the
solution. You have to set the
    corresponding boolean value to true
    HTH Filip
    > -Original Message-
    > From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
    > Sent: Monday, June 23, 2003 12:52
PM
    > To: Struts Users Mailing List
    > Subject: html:option - is there
a selected option attribute?
    >
    >
    > I have an Options List and I want
to make one of the items in the
select
    > list selected.  I am using
the html-el tags.  How do I mark an option
as
    > selected??  Is there a way:
    >
    > Thanks in advance,
    >
    > Natalie
    >
    >
    -
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
hello dear
 
struts-html.tld file is for all html component stuff just go thru it ,, 

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:47 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?


you mean the struts-config.xml file???  You totally lost me here.  What is the 
component property; in what xml file? 

PREETAM Balijepalli wrote: 


its the component property just check it in xml file ,, 


-Original Message- 
From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 4:43 PM 
To: Struts Users Mailing List 
Subject: Re: html:option - is there a selected option attribute? 


You lost me; what corresponding boolean value?? 


Filip Polsakiewicz wrote: 


Hi, 
i had the same problem. Here is the solution. You have to set the 
corresponding boolean value to true 


HTH Filip 


> -Original Message- 
> From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 23, 2003 12:52 PM 
> To: Struts Users Mailing List 
> Subject: html:option - is there a selected option attribute? 
> 
> 
> I have an Options List and I want to make one of the items in the select 
> list selected.  I am using the html-el tags.  How do I mark an option as 
> selected??  Is there a way: 
> 
> Thanks in advance, 
> 
> Natalie 
> 
> 


- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]



RE: html:option - is there a selected option attribute?

2003-06-23 Thread Filip Polsakiewicz
  Sorry i was sleeping :-) I thought you were talking of checkboxes. Well
i'd say it's not much different. In your formbeans reset method just set
  the corresponding property (the property which is returned by your
selectbox) to the value you would like to be the default.

  Greetz, Filip

   -Original Message-
  From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 23, 2003 1:13 PM
  To: Struts Users Mailing List
  Subject: Re: html:option - is there a selected option attribute?


  You lost me; what corresponding boolean value??
  Filip Polsakiewicz wrote:

Hi,
i had the same problem. Here is the solution. You have to set the
corresponding boolean value to true

HTH Filip

> -Original Message-
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 12:52 PM
> To: Struts Users Mailing List
> Subject: html:option - is there a selected option attribute?
>
>
> I have an Options List and I want to make one of the items in the
select
> list selected.  I am using the html-el tags.  How do I mark an option
as
> selected??  Is there a way:
>
> Thanks in advance,
>
> Natalie
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann


you mean the struts-config.xml file???  You totally lost me here. 
What is the component property; in what xml file?
PREETAM Balijepalli wrote:

its the component property just check it in xml file ,,
-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 23, 2003 4:43 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option
attribute?
You lost me; what corresponding boolean value??
Filip Polsakiewicz wrote:
Hi,
i had the same problem. Here is the solution. You have
to set the
corresponding boolean value to true
HTH Filip
> -Original Message-
> From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 23, 2003 12:52 PM
> To: Struts Users Mailing List
> Subject: html:option - is there a selected option attribute?
>
>
> I have an Options List and I want to make one of the
items in the select
> list selected.  I am using the html-el tags. 
How do I mark an option as
> selected??  Is there a way:
>
> Thanks in advance,
>
> Natalie
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
its the component property just check it in xml file ,,

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:43 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?


You lost me; what corresponding boolean value?? 

Filip Polsakiewicz wrote: 


Hi, 
i had the same problem. Here is the solution. You have to set the 
corresponding boolean value to true 


HTH Filip 


> -Original Message- 
> From: Natalie D Rassmann [ mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 23, 2003 12:52 PM 
> To: Struts Users Mailing List 
> Subject: html:option - is there a selected option attribute? 
> 
> 
> I have an Options List and I want to make one of the items in the select 
> list selected.  I am using the html-el tags.  How do I mark an option as 
> selected??  Is there a way: 
> 
> Thanks in advance, 
> 
> Natalie 
> 
> 


- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann


You lost me; what corresponding boolean value??
Filip Polsakiewicz wrote:

Hi,
i had the same problem. Here is the solution. You have
to set the
corresponding boolean value to true
HTH Filip
> -Original Message-
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 23, 2003 12:52 PM
> To: Struts Users Mailing List
> Subject: html:option - is there a selected option attribute?
>
>
> I have an Options List and I want to make one of the
items in the select
> list selected.  I am using the html-el tags. 
How do I mark an option as
> selected??  Is there a way:
>
> Thanks in advance,
>
> Natalie
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Filip Polsakiewicz
Hi,
i had the same problem. Here is the solution. You have to set the
corresponding boolean value to true

HTH Filip

> -Original Message-
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 12:52 PM
> To: Struts Users Mailing List
> Subject: html:option - is there a selected option attribute?
>
>
> I have an Options List and I want to make one of the items in the select
> list selected.  I am using the html-el tags.  How do I mark an option as
> selected??  Is there a way:
>
> Thanks in advance,
>
> Natalie
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
I have an Options List and I want to make one of the items in the select
list selected.  I am using the html-el tags.  How do I mark an option as
selected??  Is there a way:

Thanks in advance,

Natalie

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: blank html:option elements

2003-02-02 Thread Charles H. Baker
Todd Pierce wrote:

Off the top of my head :

 

...should do the trick. But why do you want a blank option? If it's for a
divider, I suggest -- would work better.


Thanks. Wonder why an actual space between the  and 
 would throw an exception?

{{SNIP}}

--
Charles H. Baker
[EMAIL PROTECTED]
http://www.charleshbaker.com/
http://www.charleshbaker.com/~chb/
You'll wish that you had done some of the hard things when they were 
easier to do.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: blank html:option elements

2003-02-02 Thread Todd Pierce
Off the top of my head :

 

...should do the trick. But why do you want a blank option? If it's for a
divider, I suggest -- would work better.

-Original Message-
From: Charles H. Baker [mailto:[EMAIL PROTECTED]]
Sent: Monday, 3 February 2003 3:12 PM
To: [EMAIL PROTECTED]
Subject: blank html:option elements


How can I create a blank entry in a selection list using the
html:option tag? Everytime I try something like

 

I get an exception which just so happens to be missing it's Message 
Resource. What am I doing wrong?
-- 
Charles H. Baker
[EMAIL PROTECTED]
http://www.charleshbaker.com/
http://www.charleshbaker.com/~chb/
Darth Vader sleeps with a Teddywookie.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




blank html:option elements

2003-02-02 Thread Charles H. Baker
How can I create a blank entry in a selection list using the
html:option tag? Everytime I try something like

 

I get an exception which just so happens to be missing it's Message 
Resource. What am I doing wrong?
--
Charles H. Baker
[EMAIL PROTECTED]
http://www.charleshbaker.com/
http://www.charleshbaker.com/~chb/
Darth Vader sleeps with a Teddywookie.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generating html:option tags with JSTL

2003-01-02 Thread Eric Jain
> I think you should use html-el as the namespace for your JSTL tags.

Thanks, replacing struts-html with struts-html-el in my application fixed
the problem.


--
Eric Jain


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Generating html:option tags with JSTL

2003-01-02 Thread ROSSEL Olivier
> I'm trying to generate a list of options:
> 
>   
> 
>   
> 
>   
> 
> 
> But this produces the following output:
> 
>   1987
>   ...

I think you should use html-el as the namespace for your JSTL tags.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Generating html:option tags with JSTL

2003-01-02 Thread Eric Jain
I'm trying to generate a list of options:

  

  

  


But this produces the following output:

  1987
  ...


Any suggestions how to get this right?


--
Eric Jain


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Using the "key" of a HashMap in an html:option tag ?

2002-12-11 Thread Kris Schneider
The problem is that the type of the property that the tag handler exposes as an
attribute has to be assignable from the type of the expression. Taking the
current example:


  

  
  

  


The type of the expression is Object and the type of the tag handler's
(OptionTag) value property is String. So you'll end up with a compilation error
like:

setValue(java.lang.String) in org.apache.struts.taglib.html.OptionTag cannot be
applied to (java.lang.Object)

In which case, either of these should work:

<%= ((java.util.Map.Entry)element).getKey().toString() %>
<%= String.valueOf(((java.util.Map.Entry)element).getKey()) %>

If you know that the key really is a String, you could also cast:

<%= (String)((java.util.Map.Entry)element).getKey() %>

Quoting Rick Reumann <[EMAIL PROTECTED]>:

> On Tuesday, December 10, 2002, 5:06:26 PM, Kris wrote:
> 
> KS> Glad it's working, but I don't understand why you'd have a problem with
> the JSP
> KS> expression. IIRC, it's equivalent to the following code getting generated
> within
> KS> the page's _jspService method:
> 
> Trust me I don't know either. I'm using Tomcat 4.0.6 if that
> matters. It only causes me this problem when inside of a tag
> trying to use <%= . I don't get it. Has anyone else ever ran into
> this situation?
> 
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 

-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[4]: Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 5:06:26 PM, Kris wrote:

KS> Glad it's working, but I don't understand why you'd have a problem with the JSP
KS> expression. IIRC, it's equivalent to the following code getting generated within
KS> the page's _jspService method:

Trust me I don't know either. I'm using Tomcat 4.0.6 if that
matters. It only causes me this problem when inside of a tag
trying to use <%= . I don't get it. Has anyone else ever ran into
this situation?


-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re[2]: Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Kris Schneider
Rick,

Glad it's working, but I don't understand why you'd have a problem with the JSP
expression. IIRC, it's equivalent to the following code getting generated within
the page's _jspService method:

// out is a javax.servlet.jsp.JspWriter instance
out.print( ((java.util.Map.Entry)element).getKey() );

Which, for an Obect argument to the print method, JspWriter treats as:

String s = String.valueOf( ((java.util.Map.Entry)element).getKey() );
byte[] buffer = s.getBytes();
for (int i = 0, n = buffer.length; i < n; i++) {
  out.write(buffer[i]);
}

Quoting Rick Reumann <[EMAIL PROTECTED]>:

> On Tuesday, December 10, 2002, 2:21:36 PM, Kris wrote:
> 
> KS> You may have to cast "element":
> 
> KS> <%= ((java.util.Map.Entry)element).getKey() %>
> 
> Thanks Kris! Yes that's exactly what I had to do (mostly). I say
> mostly, because so many times I've been bitten in the butt by this
> and I'm not sure why it works this way but...
> for some reason I often can't just use the scriplet: <%=
> to force a String conversion, when inside of a tag. I forget
> I have to do:
> <% String.valueOf( ) %>.
> So in the above I think I tried something
> like you mentioned but then realized it only works for me when I
> do:
> value="<% String.valueOf( ((java.util.Map.Entry)element).getKey() ) %>"
> 
> Appreciate you coming up with the solution. I was pulling my hair
> out over this.
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
On Tuesday, December 10, 2002, 2:21:36 PM, Kris wrote:

KS> You may have to cast "element":

KS> <%= ((java.util.Map.Entry)element).getKey() %>

Thanks Kris! Yes that's exactly what I had to do (mostly). I say
mostly, because so many times I've been bitten in the butt by this
and I'm not sure why it works this way but...
for some reason I often can't just use the scriplet: <%=
to force a String conversion, when inside of a tag. I forget
I have to do:
<% String.valueOf( ) %>.
So in the above I think I tried something
like you mentioned but then realized it only works for me when I
do:
value="<% String.valueOf( ((java.util.Map.Entry)element).getKey() ) %>"

Appreciate you coming up with the solution. I was pulling my hair
out over this.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Kris Schneider
Maybe something like this:


  

  
  

  


You may have to cast "element":

<%= ((java.util.Map.Entry)element).getKey() %>

Can't recall if you can directly access "element" in a JSP expression, so if
not, try:

<%= ((java.util.Map.Entry)pageContext.getAttribute('element')).getKey() %>

Quoting Rick Reumann <[EMAIL PROTECTED]>:

> I have a case where I'm getting returned a HashMap that has an "id" as
> the key and an EmployeeBean as the value. For now I'm trying to get a
> select box with the options created from this map and the key is the
> value. The only part I'm having trouble with is using the "key" as the
> value of the option tag:
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> I can't use the simple method  of
> 
> 
> 
> Since the value in this case is a bean and I need to make the value
> from two of it's properties.
> 
> I've tried all different ways to get a handle to the key but am having
> no luck the way I set it up. What am I doing wrong?
> 
> Thanks,
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann


On Tuesday, December 10, 2002, 12:39:26 PM, Vinh wrote:

VT> have you tried this?

VT> 

Tried that, but name is an invalid attribute of .

I must be missing something simple here. There has to be a way to
get the value of the key set as the option value property.

Thanks,


-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Vinh Tran
have you tried this?



-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 12:26 PM
To: Struts List
Subject: Using the "key" of a HashMap in an html:option tag ?


I have a case where I'm getting returned a HashMap that has an "id" as
the key and an EmployeeBean as the value. For now I'm trying to get a
select box with the options created from this map and the key is the
value. The only part I'm having trouble with is using the "key" as the
value of the option tag:










I can't use the simple method  of



Since the value in this case is a bean and I need to make the value
from two of it's properties.

I've tried all different ways to get a handle to the key but am having
no luck the way I set it up. What am I doing wrong?

Thanks,

--

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Using the "key" of a HashMap in an html:option tag ?

2002-12-10 Thread Rick Reumann
I have a case where I'm getting returned a HashMap that has an "id" as
the key and an EmployeeBean as the value. For now I'm trying to get a
select box with the options created from this map and the key is the
value. The only part I'm having trouble with is using the "key" as the
value of the option tag:







 


I can't use the simple method  of



Since the value in this case is a bean and I need to make the value
from two of it's properties.

I've tried all different ways to get a handle to the key but am having
no luck the way I set it up. What am I doing wrong?

Thanks,

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:option - is there a selected option attribute?

2002-11-04 Thread Karr, David
> -Original Message-
> From: Greg Roll [mailto:groll@;ServiceIntelligence.com]
> Sent: Monday, November 04, 2002 1:26 PM
> 
> I am generating a dropdown list using the following code:
> 
> 
>  property="groups" type="com.serviceintelligence.cems.core.Group">
> <%= tmpGroup.getName() %>
> 
> 
>  
> Is there some recommended way for me to have a certain item 
> 'selected' when
> generating this form?

When processing the "html:option" tags, if the "value" attribute value is equal to the 
"groupId" property of your actionform, then it will add the "selected" attribute to 
that option.

Also note that the contents of your "select" element is more complex than it needs to 
be.  You can use a single "html:options" element (demonstrated by another response to 
this note) to take the place of the "logic:iterate" element and the "html:option" 
element, including the nested content of that element.  Read the documentation for 
"html:options" to see how to do that.

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: html:option - is there a selected option attribute?

2002-11-04 Thread Madel,Kurt




managerids is a String[] of ids that may contain many, one or none of the
id's contained in the managerList collection.

Kurt Madel
Programmer, CSMi
(703) 823-4300 ext. 170


-Original Message-
From: Greg Roll [mailto:groll@;ServiceIntelligence.com] 
Sent: Monday, November 04, 2002 4:26 PM
To: '[EMAIL PROTECTED]'
Subject: html:option - is there a selected option attribute?

I am generating a dropdown list using the following code:
 



<%= tmpGroup.getName() %>


 
Is there some recommended way for me to have a certain item 'selected' when
generating this form?
 
 
Thx.
Greg Roll

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




html:option - is there a selected option attribute?

2002-11-04 Thread Greg Roll
I am generating a dropdown list using the following code:
 



<%= tmpGroup.getName() %>


 
Is there some recommended way for me to have a certain item 'selected' when
generating this form?
 
 
Thx.
Greg Roll



RE: html:option with iterate

2002-10-28 Thread Sri Sankaran
It is much easier if you use the 'collection' attribute of the  tag.  
See http://jakarta.apache.org/struts/userGuide/struts-html.html#options.  Also take a 
look at the html-select.jsp file that is in the struts-exercise-taglib application 
that ships with Struts.

Sri

-Original Message-
From: Amit Badheka [mailto:amit@;direct2s.com] 
Sent: Monday, October 28, 2002 12:39 AM
To: Struts Users Mailing List
Subject: html:option with iterate


Hi all,

I have some code like below, where I am trying to create a select list using form bean 
property. I am able to create it, but problem comes when I trying to put value for the 
option. To resolve the problem I defined to  vars, which I am bale to use 
well as I am using categoryNm ,but when I put this value in value="" it gives me error 
like 
"cannot resolve symbol"

  

   
   
   <%=categoryId%><%=categoryNm%>
---Here categoryId value display but in value it gives 
error-

  

Please help.

Amit Badheka.

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




html:option with iterate

2002-10-27 Thread Amit Badheka
Hi all,

I have some code like below, where I am trying to create a select list using form bean 
property. I am able to create it, but problem comes when I trying to put value for the 
option. To resolve the problem I defined to  vars, which I am bale to use 
well as I am using categoryNm ,but when I put this value in value="" it gives me error
like 
"cannot resolve symbol"

  

   
   
   <%=categoryId%><%=categoryNm%>
---Here categoryId value display but in value it gives 
error-

  

Please help.

Amit Badheka.



Re: Antwort: Re: Antwort: iterate tag and html:option

2002-10-15 Thread Marcus Biel

Hi Cetin, there really was an error:
AemGroupBean is the Class name of the bean, I didn't have the name of
the beans.
All my beans are called "datarecord", as they are created inside a loop.

Now I wrote:

<%
ArrayList werkeList= SimpleQuery.getAemWerkUnique();
%>








And thid is the error I get:
javax.servlet.ServletException: Cannot retrieve definition for form bean
null.

Here again is what I am trying to do:


Werk:  
   alle


<%// alle Werke die in der Tabelle vorkommen als
  // Auswahloption angeben
  ArrayList werkCollection = null;

  try {// ArrayList zusammenstellen
   werkCollection = SimpleQuery.getAemWerkUnique();
}
catch(SQLException sql)
{
   System.err.println(sql);
   sql.printStackTrace();
}

// wenn die Abfrage erfolgreich war alle Werke ausgeben
if (werkCollection != null)
{
   Iterator i = werkCollection.iterator();

   while(i.hasNext() )
   {
 AemGroupBean bean = (AemGroupBean)i.next();

 %>  <%= bean.getMo()%>


<% }
}
%>
   
 

 
  





[EMAIL PROTECTED] schrieb:
> 
> Ok,
> 
> i have send my mail before realy completing ;-)
> 
> You must set the type of youre collection element. For example:
> 
> 
>   ="com.company.BeanClassName" collection="<%=werkeList%>" >
>   />
>  
> 
> 
> BG-SYS oHGmailto:[EMAIL PROTECTED]
> Brunnenstr. 111 Tel. 030/245-52210
> 13355 Berlin-WeddingFax 030/245-52763
> 
> 
>   Marcus Biel
>   [EMAIL PROTECTED]
>       de>  Kopie:
>Thema:Re: Antwort: iterate tag 
>and html:option
>   15.10.02 13:29
>   Bitte antworten
>   an "Struts Users
>   Mailing List"
> 
> 
> 
> Yes, this was just a typo. :-<
> 
> Would be much easier then! ;-)
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: iterate tag and html:option

2002-10-15 Thread Marcus Biel

I also found this solution:





But it throws the error:
Cannot find bean under name org.apache.struts.taglib.html.BEAN
(Same Error Wendy got)


marcus

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Antwort: Re: Antwort: iterate tag and html:option

2002-10-15 Thread Cetin.Ergen



Ok,

i have send my mail before realy completing ;-)

You must set the type of youre collection element. For example:


 
 
 



BG-SYS oHGmailto:[EMAIL PROTECTED]
Brunnenstr. 111 Tel. 030/245-52210
13355 Berlin-WeddingFax 030/245-52763


   
 
  Marcus Biel  
 
Kopie:  
 
   Thema:Re: Antwort: iterate tag and 
html:option   
  15.10.02 13:29   
 
  Bitte antworten  
 
  an "Struts Users 
 
  Mailing List"
 
   
 
   
 




Yes, this was just a typo. :-<

Would be much easier then! ;-)

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: iterate tag and html:option

2002-10-15 Thread Marcus Biel

Sorry, can't follow you exactly.
What's that???
type="{the class that aem represents with complete package ex.
'com.mypack.AEM'}">

and:
1. AemGroupBean is not the Form, AemGroupBean is just one of thousand
beans containing one data record each.
2. AemGroupBean hasn't got a getWerkeList() but is part of the werkList
instead.
3. type: I don't know what this construction with brackets means:
{the class that aem represents with complete package ex.
'com.mypack.AEM'}

anyways thank you for your help so far.

Marcus


[EMAIL PROTECTED] schrieb:
> 
> I guess your JSP has been throwing exceptions.
> 
> How abt trying this?
> 
> 
> name="AemGroupBean"
>property="werkeList"
>type="{the class that aem represents with complete package ex. 
>'com.mypack.AEM'}">
> 
> 
> 
> 
> here:
> 
> 1. AemGroupBean should be the formbean.
> 2. AemGroupBean should have a getWerkeList() to fetch the "werkeList"
> 3. the object that is identified by the "Type" entry should contain a getMo().
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Antwort: iterate tag and html:option

2002-10-15 Thread Marcus Biel

Yes, this was just a typo. :-<

Would be much easier then! ;-)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: iterate tag and html:option

2002-10-15 Thread Shashikiran M

I guess your JSP has been throwing exceptions.

How abt trying this?







here:

1. AemGroupBean should be the formbean.
2. AemGroupBean should have a getWerkeList() to fetch the "werkeList"
3. the object that is identified by the "Type" entry should contain a getMo().


-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: iterate tag and html:option


Hi, I am trying to do a dynamic select box.
Therefore, I create an ArrayList, containing Beans with my properties.
Then I want to create a select box with one of those properties.

What works is to simply print the "mo" value of my ArrayList:




Now I tried to create the dynamic select box the same way:








Unfortunately this doesn't work.

Any idea what's wrong / how to correct it ?


thx,

marcus

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Antwort: iterate tag and html:option

2002-10-15 Thread Cetin.Ergen


Hi,

i think it's a typo, but  . Notice
the brackets in the scriplet.

Sincerely
Çetin Ergen



   
 
  Marcus Biel  
 
Kopie:  
 
   Thema:iterate tag and html:option   
 
  15.10.02 12:42   
 
  Bitte antworten  
 
  an "Struts Users 
 
  Mailing List"
 
   
 
   
 




Hi, I am trying to do a dynamic select box.
Therefore, I create an ArrayList, containing Beans with my properties.
Then I want to create a select box with one of those properties.

What works is to simply print the "mo" value of my ArrayList:




Now I tried to create the dynamic select box the same way:


 
 
 



Unfortunately this doesn't work.

Any idea what's wrong / how to correct it ?


thx,

marcus

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




iterate tag and html:option

2002-10-15 Thread Marcus Biel

Hi, I am trying to do a dynamic select box.
Therefore, I create an ArrayList, containing Beans with my properties.
Then I want to create a select box with one of those properties.

What works is to simply print the "mo" value of my ArrayList:




Now I tried to create the dynamic select box the same way:








Unfortunately this doesn't work.

Any idea what's wrong / how to correct it ?


thx,

marcus

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:option value

2002-05-23 Thread JM

Use Collection="" and Property=""

JM 

> -Original Message-
> From: ajTreece [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 9:07 AM
> To: Struts Users Mailing List
> Subject: html:option value
> 
> 
> Folks...
> 
> Can someone point me to an example of a html:select that uses the 
> option tag
> with a value=x? I'm experiencing a brain freeze this morning and 
> can't visualize
> how to use a  tag to set the value of the option tag.
> 
> TIA, ajTreece
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




html:option value

2002-05-23 Thread ajTreece

Folks...

Can someone point me to an example of a html:select that uses the option tag
with a value=x? I'm experiencing a brain freeze this morning and can't visualize
how to use a  tag to set the value of the option tag.

TIA, ajTreece




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beans constructed with BCEL makes html:option throw ClassCastExceptioninStruts 1.0.2

2002-04-30 Thread Thorbjoern Andersen

James Mitchell wrote:
> With all the features of Struts 1.1 and 1.1-beta, why do you continue in
> this direction?
> 
> Am I missing something?
> 
> I can create a 5 page wizard and never write a single line of ActionForm
> code.
> 
> Help me if I am misunderstanding.

I got around the symptoms so now it works by having a static ClassLoader 
instead of one per instance.  Beats me why.

I continue doing this since I do not need this for creating the actual 
form-beans (for which it would be less useful), but for providing a 
glue-layer between the databases we use, and the various presentation 
utilities that expect beans, like struts and the display taglib.  This 
glue-layer should accept any ResultSet and allow access to the 
individual fields, which my solution do reasonably well.

If you know of such an OpenSource product, I would love to hear it.  Am 
I really the only one who needs this?

> P.S.  Shouldn't this be asked in the [EMAIL PROTECTED]???

Most likely, except that it is rather low traffic.  I just gathered that 
the people who wrote the Struts bean manipulation utilities were more 
likely to linger here.

My apologies for using the list for these questions, but I do not 
currently have a colleague to discuss the matters with.
-- 
   Thorbjoern Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Beans constructed with BCEL makes html:option throw ClassCastExceptionin Struts 1.0.2

2002-04-29 Thread James Mitchell

With all the features of Struts 1.1 and 1.1-beta, why do you continue in
this direction?

Am I missing something?

I can create a 5 page wizard and never write a single line of ActionForm
code.

Help me if I am misunderstanding.

JM

P.S.  Shouldn't this be asked in the [EMAIL PROTECTED]???



> -Original Message-
> From: Thorbjoern Andersen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 8:19 AM
> To: Struts Users Mailing List
> Subject: Beans constructed with BCEL makes html:option throw
> ClassCastExceptionin Struts 1.0.2
>
>
> As mentioned on this list previously I have, with great labour, written
> a class which generates beans on the fly using BCEL based on a
> user-provided Property mapping field-named to field-types.
>
> This now works well, but my first attempt on using these beans with
> Struts have failed with the error message quoted at the end of this
> message, which indicates to me that I have missed some part here.
>
> I have an ArrayList of my beans, where this code works nicely:
>
> {
>   java.util.ArrayList al =
> abf.createBeanArrayList(stmt.executeQuery( "select distinct donor_ab0
> from ab0_rules order by donor\
> _ab0"));
>   pageContext.setAttribute( "bloodTypes", al);
>   java.util.ListIterator i = al.listIterator();
>   while( i.hasNext()) {
>  Object o = i.next();
>  out.println( o + " : " + BeanUtils.describe( o) + "");
>   }
> }
>
> and prints out the following:
>
> org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d@415727
> : {donor_ab0=0, class=class
> org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d}
>
> org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d@c0fc8e
> : {donor_ab0=A, class=class
> org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d}
> ...
>
> But when I want to use it with Struts 1.0.2 in the construct
>
> ...
> 
>  labelProperty="donor_ab0"/>
> 
> ...
>
> it fails as described.  If it is related, I have found that I can easily
>   cast the result of "bean.newInstance()" to an Object, but not to a
> Class.
>
> Any thoughts on how to fix this would be appreciated.  I am so close to
> making this work :-)
>
>
>
>
> The error message is as follows
>
> java.lang.IllegalArgumentException: java.lang.ClassCastException@4649ed
>   at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
> cessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
> org.apache.struts.util.PropertyUtils.getSimpleProperty(PropertyUti
> ls.java:717)
>   at
> org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUti
> ls.java:426)
>   at
> org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:453)
>   at
> org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:202)
>   at _k__jsp._jspService(/k1/k.jsp:146)
>   at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
>   at com.caucho.jsp.Page.subservice(Page.java:485)
>   at
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:179)
>   at com.caucho.server.http.Invocation.service(Invocation.java:288)
>   at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
>   at
> com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:937)
>   at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213)
>   at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
>   at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
>   at java.lang.Thread.run(Thread.java:536)
>
>
>
>
> --
>Thorbjoern Ravn Andersen
>Scandiatransplant, c/o Christian Mondrup
>89 49 53 01
>http://biobase.dk/~tra
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Beans constructed with BCEL makes html:option throw ClassCastExceptionin Struts 1.0.2

2002-04-29 Thread Thorbjoern Andersen

As mentioned on this list previously I have, with great labour, written 
a class which generates beans on the fly using BCEL based on a 
user-provided Property mapping field-named to field-types.

This now works well, but my first attempt on using these beans with 
Struts have failed with the error message quoted at the end of this 
message, which indicates to me that I have missed some part here.

I have an ArrayList of my beans, where this code works nicely:

{
  java.util.ArrayList al = 
abf.createBeanArrayList(stmt.executeQuery( "select distinct donor_ab0 
from ab0_rules order by donor\
_ab0"));
  pageContext.setAttribute( "bloodTypes", al);
  java.util.ListIterator i = al.listIterator();
  while( i.hasNext()) {
 Object o = i.next();
 out.println( o + " : " + BeanUtils.describe( o) + "");
  }
}

and prints out the following:

org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d@415727 
: {donor_ab0=0, class=class 
org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d}

org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d@c0fc8e 
: {donor_ab0=A, class=class 
org.scandiatransplant.anonybeans.Xcc416f1298d2f3e4.3e9584e0f1d96d}
...

But when I want to use it with Struts 1.0.2 in the construct

...



...

it fails as described.  If it is related, I have found that I can easily 
  cast the result of "bean.newInstance()" to an Object, but not to a 
Class.

Any thoughts on how to fix this would be appreciated.  I am so close to 
making this work :-)




The error message is as follows

java.lang.IllegalArgumentException: java.lang.ClassCastException@4649ed
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.struts.util.PropertyUtils.getSimpleProperty(PropertyUtils.java:717)
at 
org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.java:426)
at org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:453)
at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:202)
at _k__jsp._jspService(/k1/k.jsp:146)
at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
at com.caucho.jsp.Page.subservice(Page.java:485)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:179)
at com.caucho.server.http.Invocation.service(Invocation.java:288)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
at com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:937)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:536)




-- 
   Thorbjoern Ravn Andersen
   Scandiatransplant, c/o Christian Mondrup
   89 49 53 01
   http://biobase.dk/~tra


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html:option

2002-04-05 Thread Ethan Schroeder

I am having the same trouble.  I don't want to necessarily use html:options
instead of html:option because I'm displaying purely static information, but
I'm approaching the point where I may have to move to html:options because
performance is so horrible.

Ethan

- Original Message -
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 6:25 AM
Subject: html:option


> Subject: html:option
> From: "David Bolsover" <[EMAIL PROTECTED]>
>  ===
> Hi all
>
> I have a page that uses multiple ~30  tags within an
>  tag.
>
> The problem is that the page loads very slowly from the servlet
> container (TC4.01).
>
> Has anyone else seen this problem / have any suggestions for a soluton?
>
> Regards
>
> David Bolsover
> [EMAIL PROTECTED]
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




html:option

2002-04-04 Thread @Basebeans.com

Subject: html:option
From: "David Bolsover" <[EMAIL PROTECTED]>
 ===
Hi all

I have a page that uses multiple ~30  tags within an
 tag.

The problem is that the page loads very slowly from the servlet
container (TC4.01).

Has anyone else seen this problem / have any suggestions for a soluton?

Regards

David Bolsover
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:select / html:option question

2002-02-27 Thread theron . kousek


Thanks alot!!!

That worked.



   
 
Jim Crossley   
 
 
leet.com>cc:   
 
 Subject: Re: html:select / html:option 
question
02/26/02   
 
07:25 PM   
 
Please 
 
respond to 
 
Struts Users   
 
Mailing List   
 
   
 
   
 



Set the addressstate property of your form bean in your action prior to
forwarding it to your page.

I'm guessing you can use the same action that puts the states object
in the request to go ahead and set the form bean, too.

[EMAIL PROTECTED] writes:

> Hi folks:
>
> I wrote a bean to "preload" a collection of valid states (per-se) that
will
> be incorporated into my JSP page as such:
>  
>="1">
> property="value"
>  labelProperty="label"/>
>   
>
>  
>
> Here's my question:
> All the time, the first entry is ALABAMA.
>
> I'd like to be able to load a record from the database and have that
> record's state be "selected" using the above construct.
> So if the record's state is Illinios, I'd like for Illinois to be
displayed
> in the list but they could then update the combobox (in which case I'd
save
> it to the database). Is there an easy way to do this with the above
> construct that I am using?
>
> thanks,
> Theron
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>

--
Jim Crossley
http://www.lads.com/~jim

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:select / html:option question

2002-02-26 Thread Jim Crossley

Set the addressstate property of your form bean in your action prior to
forwarding it to your page.

I'm guessing you can use the same action that puts the states object
in the request to go ahead and set the form bean, too.

[EMAIL PROTECTED] writes:

> Hi folks:
> 
> I wrote a bean to "preload" a collection of valid states (per-se) that will
> be incorporated into my JSP page as such:
>  
>="1">
> property="value"
>  labelProperty="label"/>
>   
> 
>  
> 
> Here's my question:
> All the time, the first entry is ALABAMA.
> 
> I'd like to be able to load a record from the database and have that
> record's state be "selected" using the above construct.
> So if the record's state is Illinios, I'd like for Illinois to be displayed
> in the list but they could then update the combobox (in which case I'd save
> it to the database). Is there an easy way to do this with the above
> construct that I am using?
> 
> thanks,
> Theron
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
Jim Crossley
http://www.lads.com/~jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html:select / html:option question

2002-02-26 Thread theron . kousek


Hi folks:

I wrote a bean to "preload" a collection of valid states (per-se) that will
be incorporated into my JSP page as such:
 
  
   
  

 

Here's my question:
All the time, the first entry is ALABAMA.

I'd like to be able to load a record from the database and have that
record's state be "selected" using the above construct.
So if the record's state is Illinios, I'd like for Illinois to be displayed
in the list but they could then update the combobox (in which case I'd save
it to the database). Is there an easy way to do this with the above
construct that I am using?

thanks,
Theron


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html:option and the 65k wall

2002-01-25 Thread Danny Collins

Martin,
Really? Cool, I must have missed the optionS tag. I will look
into that. Hey you know what, I jst realized that I was doing a JSP
useBean for the same bean on the main jsp and the included jsp. Maybe
that was what was throwing the error!

Damn.

Thanks
Danny
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Sent: Thursday, January 24, 2002 8:18 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: html:option and the 65k wall

I'm not sure I understand the problem you are having in relation to the
form tag. I have several cases where I have select and option tags in a
JSP
page which is included within another JSP which actually contains the
form
tag. For example:

A.jsp
=

...

...

...

...

B.jsp
=

...

 
 
 ...

...

This is not a problem. What kind of issues are you seeing?

Another possibility you might want to look at would be to use the
 tag in place of many  tags.

--
Martin Cooper


At 02:10 PM 1/24/02, Danny Collins wrote:
>Hello all,
> I have a jsp page that has a ton of very long option
lists.
>These are all generated dynamically from the DB. The problem is, if we
>try to use the html:option tag we exceed 65k. What I would like to do
is
>move each html:select with all of it's generated options into it's own
>jsp and just include all of the jsps on the main page. The problem with
>that is the html:select's are mapped to the form class and I can't seem
>to be able to figure out the syntax to be able to get to the form using
>the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the FormClass on
the
>included page but that didn't seem to help. So either the included
pages
>are being compiled first so the form isn't in the request yet or we
have
>the syntax all wrong.
>
>Any suggestions?
>
>Danny Collins



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:option and the 65k wall

2002-01-25 Thread Cakalic, James

Sorry if I'm arriving a little late to this thread. And I may be about to
show level of JSP ignorance but ...

It was my understanding that the 64K code limit was not the size of the
class but the bytecode size of any one method. Normally, the JSP compiler
generates a servlet that puts all of the code for your JSP expressions and
scriptlets in the _jspService method. This method corresponds to the body of
the JSP page.

In contrast, JSP also specifies a declaration syntax using <%! %> which
supports declaration of variables and, in fact, methods which will be
generated into the servlet outside the _jspService method. 

Best regards,
Jim Cakalic

> -Original Message-
> From: Barr, Scott [IBM GSA] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 5:12 PM
> To: 'Struts Users Mailing List'
> Subject: RE: html:option and the 65k wall
> 
> 
> Hi Danny
> 
> When using large lists in previous projects, I have used url 
> that generate
> popup windows from which you can do searches on relevant data.
> The user would do their search in the popup, select the item 
> they wanted.
> Clicking OK would the populate the parent form with the data, 
> and close the
> popup window.
> Worked very well, and saved delivering large amounts of data 
> to the client
> 
> Just a suggestion :)
> Scott Barr
> 
> 
> > -Original Message-
> > From:   Danny Collins [SMTP:[EMAIL PROTECTED]]
> > Sent:   Friday, January 25, 2002 8:40 AM
> > To: [EMAIL PROTECTED]
> > Subject:html:option and the 65k wall
> > 
> > Hello all,
> > I have a jsp page that has a ton of very long 
> option lists.
> > These are all generated dynamically from the DB. The 
> problem is, if we
> > try to use the html:option tag we exceed 65k. What I would 
> like to do is
> > move each html:select with all of it's generated options 
> into it's own
> > jsp and just include all of the jsps on the main page. The 
> problem with
> > that is the html:select's are mapped to the form class and 
> I can't seem
> > to be able to figure out the syntax to be able to get to 
> the form using
> > the html:select and html:options on an included page.
> > We did try to use the jsp:useBean with  the 
> FormClass on the
> > included page but that didn't seem to help. So either the 
> included pages
> > are being compiled first so the form isn't in the request 
> yet or we have
> > the syntax all wrong.
> >  
> > Any suggestions?
> >  
> > Danny Collins
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


Confidentiality Warning:  This e-mail contains information intended 
only for the use of the individual or entity named above.  If the reader of this 
e-mail is not the intended recipient or the employee or agent responsible for 
delivering it to the intended recipient, any dissemination, publication or copying of 
this e-mail is strictly prohibited. The sender does not accept any responsibility for 
any loss, disruption or damage to your data or computer system that may occur while 
using data contained in, or transmitted with, this e-mail.   If you have received this 
e-mail in error, please immediately notify us by return e-mail.  Thank you.




RE: html:option and the 65k wall

2002-01-25 Thread Stephen Owens

Danny,

What we've done in the past is to use the html:options tag instead of
html:option. That way you have one custom tag per set of options, rather
than one per option, it's way more efficient. If you search the list
archive you'll find some examples of using it.

regards,

Stephen Owens
Corner Software

> -Original Message-
> From: Danny Collins [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: html:option and the 65k wall
> 
> 
> Hello all,
> I have a jsp page that has a ton of very long 
> option lists.
> These are all generated dynamically from the DB. The problem is, if we
> try to use the html:option tag we exceed 65k. What I would 
> like to do is
> move each html:select with all of it's generated options into it's own
> jsp and just include all of the jsps on the main page. The 
> problem with
> that is the html:select's are mapped to the form class and I 
> can't seem
> to be able to figure out the syntax to be able to get to the 
> form using
> the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the 
> FormClass on the
> included page but that didn't seem to help. So either the 
> included pages
> are being compiled first so the form isn't in the request yet 
> or we have
> the syntax all wrong.
>  
> Any suggestions?
>  
> Danny Collins
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:option and the 65k wall

2002-01-25 Thread Jack Zakarian

Hi
This is exactly the solution I was looking for. I am
new to struts and would appreciate if you could provide
some examples of how this is done.  I mean not only the
call to the popup but how to populate it and return the
selected data.

Thanks Jack

[EMAIL PROTECTED]

-Original Message-
From: Barr, Scott [IBM GSA] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 5:12 PM
To: 'Struts Users Mailing List'
Subject: RE: html:option and the 65k wall


Hi Danny

When using large lists in previous projects, I have used url that generate
popup windows from which you can do searches on relevant data.
The user would do their search in the popup, select the item they wanted.
Clicking OK would the populate the parent form with the data, and close the
popup window.
Worked very well, and saved delivering large amounts of data to the client

Just a suggestion :)
Scott Barr


> -Original Message-
> From: Danny Collins [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 25, 2002 8:40 AM
> To:   [EMAIL PROTECTED]
> Subject:  html:option and the 65k wall
>
> Hello all,
> I have a jsp page that has a ton of very long option lists.
> These are all generated dynamically from the DB. The problem is, if we
> try to use the html:option tag we exceed 65k. What I would like to do is
> move each html:select with all of it's generated options into it's own
> jsp and just include all of the jsps on the main page. The problem with
> that is the html:select's are mapped to the form class and I can't seem
> to be able to figure out the syntax to be able to get to the form using
> the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the FormClass on the
> included page but that didn't seem to help. So either the included pages
> are being compiled first so the form isn't in the request yet or we have
> the syntax all wrong.
>
> Any suggestions?
>
> Danny Collins

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:option and the 65k wall

2002-01-24 Thread Barr, Scott [IBM GSA]

Hi Danny

When using large lists in previous projects, I have used url that generate
popup windows from which you can do searches on relevant data.
The user would do their search in the popup, select the item they wanted.
Clicking OK would the populate the parent form with the data, and close the
popup window.
Worked very well, and saved delivering large amounts of data to the client

Just a suggestion :)
Scott Barr


> -Original Message-
> From: Danny Collins [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 25, 2002 8:40 AM
> To:   [EMAIL PROTECTED]
> Subject:  html:option and the 65k wall
> 
> Hello all,
> I have a jsp page that has a ton of very long option lists.
> These are all generated dynamically from the DB. The problem is, if we
> try to use the html:option tag we exceed 65k. What I would like to do is
> move each html:select with all of it's generated options into it's own
> jsp and just include all of the jsps on the main page. The problem with
> that is the html:select's are mapped to the form class and I can't seem
> to be able to figure out the syntax to be able to get to the form using
> the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the FormClass on the
> included page but that didn't seem to help. So either the included pages
> are being compiled first so the form isn't in the request yet or we have
> the syntax all wrong.
>  
> Any suggestions?
>  
> Danny Collins

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: html:option and the 65k wall

2002-01-24 Thread Danny Collins

Ted, thanks for the velocity stuff, I will check it out tonight.

Scott, 
We tried the pop up approach but for some unknown reason our
users are insanely against the popups. Although they won't be if we end
up using the Javascript solution we have right now because even on big
beefy multiprocessor servers this particular page takes almost 45
seconds to load.

Arron,
I will definitely look into trying to slim down the jsp as much
as possible. There might still be some javascript that could be moved
and there is the possibility that some of the page could be moved into a
header and footer. Thanks for the input.

Thanks for the suggestions guys.

Oh, if anyone is wondering, this is for a production system that has
been developed in 5 months. We are replacing 3 disparate systems that
our users had to data entry 3 separate times and spent a lot of time
reconciling their data because they never seemed to be able to enter it
3 times the same way. It is mainly a data capture system that
communicates with some legacy systems on the mainframe and some old (
but still working ) microfocus cobol. Struts has been the only reason we
have been able to develop this as quickly as we have.

Thanks for the good work, I am looking forward to exploring what new
services are available in the new release.


Danny


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 24, 2002 8:06 PM
To: Struts Users Mailing List
Subject: Re: html:option and the 65k wall

Might be an interesting use-case for Velocity templates. 

It's not an election of remedies; these can be used along side of JSPs
as needed. So you could just pop one in here, and then go back to JSPs.

http://husted.com/struts/resources/velstruts.zip

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Danny Collins wrote:
> 
> Hello all,
> I have a jsp page that has a ton of very long option
lists.
> These are all generated dynamically from the DB. The problem is, if we
> try to use the html:option tag we exceed 65k. What I would like to do
is
> move each html:select with all of it's generated options into it's own
> jsp and just include all of the jsps on the main page. The problem
with
> that is the html:select's are mapped to the form class and I can't
seem
> to be able to figure out the syntax to be able to get to the form
using
> the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the FormClass on
the
> included page but that didn't seem to help. So either the included
pages
> are being compiled first so the form isn't in the request yet or we
have
> the syntax all wrong.
> 
> Any suggestions?
> 
> Danny Collins

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:option and the 65k wall

2002-01-24 Thread martin . cooper

I'm not sure I understand the problem you are having in relation to the 
form tag. I have several cases where I have select and option tags in a JSP 
page which is included within another JSP which actually contains the form 
tag. For example:

A.jsp
=

...

...

...

...

B.jsp
=

...

 
 
 ...

...

This is not a problem. What kind of issues are you seeing?

Another possibility you might want to look at would be to use the 
 tag in place of many  tags.

--
Martin Cooper


At 02:10 PM 1/24/02, Danny Collins wrote:
>Hello all,
> I have a jsp page that has a ton of very long option lists.
>These are all generated dynamically from the DB. The problem is, if we
>try to use the html:option tag we exceed 65k. What I would like to do is
>move each html:select with all of it's generated options into it's own
>jsp and just include all of the jsps on the main page. The problem with
>that is the html:select's are mapped to the form class and I can't seem
>to be able to figure out the syntax to be able to get to the form using
>the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the FormClass on the
>included page but that didn't seem to help. So either the included pages
>are being compiled first so the form isn't in the request yet or we have
>the syntax all wrong.
>
>Any suggestions?
>
>Danny Collins



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:option and the 65k wall

2002-01-24 Thread Ted Husted

Might be an interesting use-case for Velocity templates. 

It's not an election of remedies; these can be used along side of JSPs
as needed. So you could just pop one in here, and then go back to JSPs.

http://husted.com/struts/resources/velstruts.zip

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Danny Collins wrote:
> 
> Hello all,
> I have a jsp page that has a ton of very long option lists.
> These are all generated dynamically from the DB. The problem is, if we
> try to use the html:option tag we exceed 65k. What I would like to do is
> move each html:select with all of it's generated options into it's own
> jsp and just include all of the jsps on the main page. The problem with
> that is the html:select's are mapped to the form class and I can't seem
> to be able to figure out the syntax to be able to get to the form using
> the html:select and html:options on an included page.
> We did try to use the jsp:useBean with  the FormClass on the
> included page but that didn't seem to help. So either the included pages
> are being compiled first so the form isn't in the request yet or we have
> the syntax all wrong.
> 
> Any suggestions?
> 
> Danny Collins

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: html:option and the 65k wall

2002-01-24 Thread Arron Bates

Scott, it's not a data delivery question, but the fact that Java wont 
run a class over 64K.
...but what you recommend is cool, I've done apps like that myself. 
Most cool.  :)

Danny, it really is a case of optimising stuff until the class size is 
down Apollo 13 style. Any Javascript, get that into its own .js file, 
same with CSS.
Then there's the efficiency of the markup of the tags. The more logic 
you get of the tags to do things, the less code there is in the servlet.
Last resort... are there any headers or footers which can be put into 
their own JSP and dynamically include them?...

It's just little fiddly stuff like that.

Arron.


Barr, Scott [IBM GSA] wrote:

>Hi Danny
>
>When using large lists in previous projects, I have used url that generate
>popup windows from which you can do searches on relevant data.
>The user would do their search in the popup, select the item they wanted.
>Clicking OK would the populate the parent form with the data, and close the
>popup window.
>Worked very well, and saved delivering large amounts of data to the client
>
>Just a suggestion :)
>Scott Barr
>
>
>>-Original Message-
>>From: Danny Collins [SMTP:[EMAIL PROTECTED]]
>>Sent: Friday, January 25, 2002 8:40 AM
>>To:   [EMAIL PROTECTED]
>>Subject:  html:option and the 65k wall
>>
>>Hello all,
>>I have a jsp page that has a ton of very long option lists.
>>These are all generated dynamically from the DB. The problem is, if we
>>try to use the html:option tag we exceed 65k. What I would like to do is
>>move each html:select with all of it's generated options into it's own
>>jsp and just include all of the jsps on the main page. The problem with
>>that is the html:select's are mapped to the form class and I can't seem
>>to be able to figure out the syntax to be able to get to the form using
>>the html:select and html:options on an included page.
>>We did try to use the jsp:useBean with  the FormClass on the
>>included page but that didn't seem to help. So either the included pages
>>are being compiled first so the form isn't in the request yet or we have
>>the syntax all wrong.
>> 
>>Any suggestions?
>> 
>>Danny Collins
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




html:option and the 65k wall

2002-01-24 Thread Danny Collins

Hello all,
I have a jsp page that has a ton of very long option lists.
These are all generated dynamically from the DB. The problem is, if we
try to use the html:option tag we exceed 65k. What I would like to do is
move each html:select with all of it's generated options into it's own
jsp and just include all of the jsps on the main page. The problem with
that is the html:select's are mapped to the form class and I can't seem
to be able to figure out the syntax to be able to get to the form using
the html:select and html:options on an included page.
We did try to use the jsp:useBean with  the FormClass on the
included page but that didn't seem to help. So either the included pages
are being compiled first so the form isn't in the request yet or we have
the syntax all wrong.
 
Any suggestions?
 
Danny Collins



logic:iterate / html:option / scriptlet problem

2001-08-06 Thread Tobias . Himstedt

Hi,

the following fragment does not work:

                
                        
                                                        
                        
                        
                                
                                        
                                                "/>
                                        
                                                        
                                                
                


whereas dayCategorys is a ArrayList containing Integers. The resulting HTML output look like this

                
                        
                                                        
                        
                        
                                
                                        
                                                
                                        
                                                                        
                        
                        
                

which is correct apart from the fact that there is still a  rather than a simple option It seems that the html:option is not properly evaluated.

Any hints?

Thanks -- Tobias

RE: html:option & html:select

2001-07-09 Thread Jorrin Ruiz de Arcaute, Jorge

Try:



 









Listado is a session Constant that's loaded at the Action.
Good Luck!

> -Mensaje original-
> De:   Stefan Faist [SMTP:[EMAIL PROTECTED]]
> Enviado el:   lunes 9 de julio de 2001 8:55
> Para: Struts
> Asunto:   html:option & html:select
> 
> Hi,
> I have mySQL Database and the data-source I have defined in the
> struts-config.html.
> In a JSP-site I want to access to this database with an methode like
> "ArrayList getAllNames()" and this list I want to put in a dropdown menu
> with the  &  Tags, but how can I get this
> array-list for my jsp-site? How can I call this methode?
> 
> Best regards,
> Stefan Faist
> --
> hmi-Informatik GmbH
> Zettachring 6 - D-70567 Stuttgart
> E-Mail: [EMAIL PROTECTED]
> http://www.hmi-informatik.de



html:option & html:select

2001-07-09 Thread Stefan Faist

Hi,
I have mySQL Database and the data-source I have defined in the
struts-config.html.
In a JSP-site I want to access to this database with an methode like
"ArrayList getAllNames()" and this list I want to put in a dropdown menu
with the  &  Tags, but how can I get this
array-list for my jsp-site? How can I call this methode?

Best regards,
Stefan Faist
--
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: [EMAIL PROTECTED]
http://www.hmi-informatik.de




Re: Logic:Iterate in html:option

2001-07-03 Thread Rama Krishna

hi michael,

the follwing works for me.


  

  

i have a getValue() method in my formbean. where xxx is a setXXX method
which will have the selected item and records is a collection

hope this helps
rama.


- Original Message -
From: "Michael Skariah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 1:17 PM
Subject: Logic:Iterate in html:option


> Hello all,
> I am trying to fill up an option value in a JSP file using the bean:write
> tag.
> Below is the code. I have the values present for the property and do not
get
> any errors, but string written to the option is empty ("").
> Could anyone tell me if something else has to be done.
> Thanks in advance,
> Michael.
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>



Logic:Iterate in html:option

2001-07-03 Thread Michael Skariah

Hello all,
I am trying to fill up an option value in a JSP file using the bean:write
tag.
Below is the code. I have the values present for the property and do not get
any errors, but string written to the option is empty ("").
Could anyone tell me if something else has to be done.
Thanks in advance,
Michael.














RE: Set html:option value with bean:write

2001-07-02 Thread Geddes, Mark (ANTS)

You are closing  twice.

-Original Message-
From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2001 09:48
To: [EMAIL PROTECTED]
Subject: Re: Set html:option value with bean:write


Hi Mark,

I followed your instruction and use the following code but didn't succeed.





I have the following error:

/admin/CreateMerchant.jsp(138): Non-matching extension tags
probably occurred due to an error in /admin/CreateMerchant.jsp line 138:


If I use "currency.id" instead of "currency" in html:select, I have the same
error.

I think I should clarify my previous message.

> 
> 
> 
> 
>
> 

In this JSP segment I want to have select options which are populated by the
collection currencyList. This currencyList is actually an Enumeration, not a
Collection but I think Enumeration is also supported by Struts. The default
value for select is the value of property "currency" of merchantForm (which
is a subclass of ActionForm).

What should be done?

Thanks in advance.

Quan

- Original Message -
From: Geddes, Mark (ANTS) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 3:05 PM
Subject: RE: Set html:option value with bean:write


>
> Assuming your form is already associated with 'merchantForm' FormBean, and
> that 'currencyList' is a Collection, try:
>
> 
>  labelProperty="id"/>
> 
>
> Mark
>
> -Original Message-----
> From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]]
> Sent: 02 July 2001 09:04
> To: [EMAIL PROTECTED]
> Subject: Set html:option value with bean:write
>
>
> Hi all,
>
> i want to set the value of html:option to the corresponding currency.id as
> in the following (broken) jsp segment
>
> 
> 
> 
> 
>
> 
>
> Please help !
>
> Quan
>
>
>
>
***
> This email message contains confidential information for the above
addressee only.  If you are not the intended addressee you must not disclose
or use the information in any manner whatsoever.
>
> Any opinion or views contained in this email message are those of the
sender, do not represent those of the Company in any way and reliance should
not be placed upon its contents.
>
> Unless otherwise stated this email message is not intended to be
contractually binding.  Where an Agreement exists between our respective
companies and there is conflict between the contents of this email message
and the Agreement then the terms of that Agreement shall prevail.
>
> Abbey National Treasury Services plc. Registered in England. Registered
Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration
No: 2338548.  Regulated by the SFA
>
***
>



***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



Re: Set html:option value with bean:write

2001-07-02 Thread Pham Thanh Quan

Hi Mark,

I followed your instruction and use the following code but didn't succeed.





I have the following error:

/admin/CreateMerchant.jsp(138): Non-matching extension tags
probably occurred due to an error in /admin/CreateMerchant.jsp line 138:


If I use "currency.id" instead of "currency" in html:select, I have the same
error.

I think I should clarify my previous message.

> 
> 
> 
> 
>
> 

In this JSP segment I want to have select options which are populated by the
collection currencyList. This currencyList is actually an Enumeration, not a
Collection but I think Enumeration is also supported by Struts. The default
value for select is the value of property "currency" of merchantForm (which
is a subclass of ActionForm).

What should be done?

Thanks in advance.

Quan

- Original Message -
From: Geddes, Mark (ANTS) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 3:05 PM
Subject: RE: Set html:option value with bean:write


>
> Assuming your form is already associated with 'merchantForm' FormBean, and
> that 'currencyList' is a Collection, try:
>
> 
>  labelProperty="id"/>
> 
>
> Mark
>
> -Original Message-----
> From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]]
> Sent: 02 July 2001 09:04
> To: [EMAIL PROTECTED]
> Subject: Set html:option value with bean:write
>
>
> Hi all,
>
> i want to set the value of html:option to the corresponding currency.id as
> in the following (broken) jsp segment
>
> 
> 
> 
> 
>
> 
>
> Please help !
>
> Quan
>
>
>
>
***
> This email message contains confidential information for the above
addressee only.  If you are not the intended addressee you must not disclose
or use the information in any manner whatsoever.
>
> Any opinion or views contained in this email message are those of the
sender, do not represent those of the Company in any way and reliance should
not be placed upon its contents.
>
> Unless otherwise stated this email message is not intended to be
contractually binding.  Where an Agreement exists between our respective
companies and there is conflict between the contents of this email message
and the Agreement then the terms of that Agreement shall prevail.
>
> Abbey National Treasury Services plc. Registered in England. Registered
Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration
No: 2338548.  Regulated by the SFA
>
***
>




RE: Set html:option value with bean:write

2001-07-02 Thread Geddes, Mark (ANTS)

I meant 

-Original Message-
From: Geddes, Mark (ANTS) [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2001 09:05
To: '[EMAIL PROTECTED]'
Subject: RE: Set html:option value with bean:write



Assuming your form is already associated with 'merchantForm' FormBean, and
that 'currencyList' is a Collection, try:





Mark

-Original Message-
From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2001 09:04
To: [EMAIL PROTECTED]
Subject: Set html:option value with bean:write


Hi all,

i want to set the value of html:option to the corresponding currency.id as
in the following (broken) jsp segment





   


Please help !

Quan



***
This email message contains confidential information for the above addressee
only.  If you are not the intended addressee you must not disclose or use
the information in any manner whatsoever.

Any opinion or views contained in this email message are those of the
sender, do not represent those of the Company in any way and reliance should
not be placed upon its contents.

Unless otherwise stated this email message is not intended to be
contractually binding.  Where an Agreement exists between our respective
companies and there is conflict between the contents of this email message
and the Agreement then the terms of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered
Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration
No: 2338548.  Regulated by the SFA
***



***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



RE: Set html:option value with bean:write

2001-07-02 Thread Geddes, Mark (ANTS)


Assuming your form is already associated with 'merchantForm' FormBean, and
that 'currencyList' is a Collection, try:





Mark

-Original Message-
From: Pham Thanh Quan [mailto:[EMAIL PROTECTED]]
Sent: 02 July 2001 09:04
To: [EMAIL PROTECTED]
Subject: Set html:option value with bean:write


Hi all,

i want to set the value of html:option to the corresponding currency.id as
in the following (broken) jsp segment





   


Please help !

Quan



***
This email message contains confidential information for the above addressee only.  If 
you are not the intended addressee you must not disclose or use the information in any 
manner whatsoever.

Any opinion or views contained in this email message are those of the sender, do not 
represent those of the Company in any way and reliance should not be placed upon its 
contents.

Unless otherwise stated this email message is not intended to be contractually 
binding.  Where an Agreement exists between our respective companies and there is 
conflict between the contents of this email message and the Agreement then the terms 
of that Agreement shall prevail.

Abbey National Treasury Services plc. Registered in England. Registered Office:  Abbey 
House, Baker Street, London NW1 6XL.  Company Registration No: 2338548.  Regulated by 
the SFA
***



Set html:option value with bean:write

2001-07-02 Thread Pham Thanh Quan

Hi all,

i want to set the value of html:option to the corresponding currency.id as
in the following (broken) jsp segment





   


Please help !

Quan