We also follow the second approach, and propagate
all the exceptions from the business beans to the
action classes. However, since our business beans
don't know about the application they are in, we are
finding that their error messages are not the worlds
best. Has anyone come up with a good
Hi,
What we do is put the form beans in the session, but each
one has a clear method we call before filling in data on
the form. This keeps the data from being lost, and also
keeps it from showing up when not wanted. The clear just
sets the member variables in the form bean back to nothing.
is changed, but ai want it to
display correctly when the page is first displayed.
Thanks,
Ken
Maturo, Larry [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Hi Ken,
I have a Struts white paper, with an example of this.
It also has lots of other examples as well. You can
get
: Multiple Selects in a JSP
From: Ken Holzer [EMAIL PROTECTED]
===
Hi Larry,
Do you have a sample app demoing this concept? I am not sure how the Action
Form, Action Class and JSP should be setup.
Are the lists built in the Action Form or the Action Class?
Thanks for your help,
Ken
Maturo, Larry
Hi Yu,
I'm pretty sure you are going to need the indexed
attribute to get this to work. You might also want
to try the mutibox instead of the checkbox. I have
never gotten the checkbox to work in a table. I
have an example of how it should work, at least as
far as I can tell. When I tried
Hi Jose,
You might want to get the Struts white paper at
http://stealthis.athensgroup.com/presentations/
under Model Layer Framework. It has a lot of
examples of using Struts tags, including a lot
on Select/Options.
By the way, I tried sending this to
[EMAIL PROTECTED] a few days ago and it
Hi Ken,
Yes, but by using a small amount of JavaScript:
html:select property=orgId onchange='document.forms[0].submit()'
html:options collection=orgList property=value
labelProperty=shortName/
/html:select
You should 0 out the string field orgId in your form bean so that you
can tell a
Hi Juan,
You don't mention if you are using the indexed
attribute with your text fields for the objects
in the vector. If not, doing so should help.
The other thing to look for is that the id field
in the iterate tag names the vector in your form
bean. For example, in the below, the name of
All of Struts is two-way. Wherever you
expect to get back a value, just put a value
there to initialize it. So, to preselect an
option, set the variable in your form you
pointed to in the Select tag with the value
you want preselected. It's really that easy.
-- Larry Maturo
[EMAIL
Yes, that's what we call them also.
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: Soledad Villa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 6:38 AM
To: 'Struts Users Mailing List'
Subject: RE: What do you call them beans?
how do you like DAO (data access
for an account at www.experts-exchange.com (it's free) to ask
javascript and HTML questions too - free, easy and fast responses to your
specific question.
HTH,
Matt
--- Maturo, Larry [EMAIL PROTECTED] wrote:
How do you have a graphic image with embedded hotspots
in Struts such that once you
available for property indexed!. Also,
the struts documentation for html:checkbox tag does
not talk about an attribute indexed for html:checkbox.
Is this the right syntax ?.
Krishnan
--- Maturo, Larry [EMAIL PROTECTED]
wrote:
Hi Krishnan,
If you are using a nightly build you can probably
use
thing.
When clicked, it will pass the x y coordinates. You can figure it out
on the server. Much harder than links from the image map.
But no, Strut's doesn't have image map shape tags.
Arron
Maturo, Larry wrote:
Hi Matt,
I know how to do them in html, but how do you
do them in Struts
)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run
Thanks
Krishnan
--- Maturo, Larry [EMAIL PROTECTED]
wrote:
Hi Krishnan,
See:
http://jakarta.apache.org/struts/struts-html.html#checkbox
It has the indexed attribute:
indexed Valid only inside
If you forward, the request gets forwarded as well.
If you redirect, the request gets discarded. I'm
not sure if this helps or not. As far as I know,
you can't add or remove attributes from the request.
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: Struts Newsgroup
: html:checkbox tag not setting its property value in
Formbean
Hi Larry
Each element in the array list is a bean and the bean has a boolean property
for the checkbox.
Krishnan
[EMAIL PROTECTED]
- Original Message -
From: Maturo, Larry [EMAIL PROTECTED]
Newsgroups: Struts
To: 'Struts Users
Hi Adrian,
The only clean solution we have found
for this is to have a nav bar at the
top of your page to make it easy for
the user to do it manually. :-) Not
a good solution.
Any one else know a better way?
-- Larry Maturo
-Original Message-
From: Adrian Theuma [mailto:[EMAIL
Hi Maris,
Look in your ApplicationResources.properties file
for your error message and make sure it does not
have nulls in it. Also make sure your error header
and footer don't have nulls in them. I can't think
of anywhere else they could be coming from.
-- Larry
-Original Message-
How do you have a graphic image with embedded hotspots
in Struts such that once you are in the action class you
can tell which hotspot was clicked on?
I've searched the archives and checked on JGRU and could
not find anything on this.
-- Larry Maturo
--
To unsubscribe, e-mail: mailto:[EMAIL
Hi Krishnan,
Could you post more details. Is the arraylist an
arraylist of boolean, or an arraylist of some
bean, which itself has a boolean property, or
perhaps each entry in the arraylist is of a
different type?
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: Krishnan
We have a different solution to this problem.
One of the guys I work with thought of it. It
seems to work pretty well.
We have a subclass of Action and a subclass of
ActionFrom, that together implement the if then
else test. We actually convert to integer and
use the following switch
Hi,
The first statement was:
I need to have a startDate and endDate field in my form, and I'd like to
prepopulate the endDate field with today's date.
Easy to understand.
The second statement was:
There's a bean that has set/getEndDate() methods, and I get to the form
from an
for your contribution. I am finding your white paper useful.
-john
-Original Message-
From: Maturo, Larry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 2:11 PM
To: 'Struts Users Mailing List'
Subject: White Paper on Struts
I've been collecting, in a document, Struts examples
Hi Adam,
This may not be exactly what you want, but look at
the white paper, under Model Layer Framework, at
http://stealthis.athensgroup.com/presentations/.
There is a section on using the indexed attribute
under logic:iterate, and it has a table of radio
buttons example that uses the indexed
[EMAIL PROTECTED]
Java Programming Specialist www.landsend.com
Lands' End, Inc. (608) 935-4526
-Original Message-
From: Maturo, Larry [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 1:11 PM
To: 'Struts Users
At the request of Simon P. Chappell
I have put up a pdf copy of the Struts
White paper for those that don't have
MS Word.
Thanks Simon. I should have done that
already, but I hadn't thought about it.
-- Larry Maturo
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Hi Michael,
See the logic:iterate tag. It is useful in
creating tables, but it is not a table tag
by any means. You would then use bean:write
to put data in the table within the iterate
tag.
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: Michael Nadeau [mailto:[EMAIL
I've been collecting, in a document, Struts examples
and know how while I have been learning Struts. I
have decided to make this available to everyone in
a white paper.
It's available on my companies web-site at:
http://stealthis.athensgroup.com/presentations/
It's under the
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 1:45 PM
To: Struts Users Mailing List
Subject: RE: How to use html:radio?
Larry,
Are the other indexed fields working okay? What scope is your bean in?
Cheers,
Dave
Maturo, Larry [EMAIL PROTECTED] on 02/25/2002 01
Well, I have stumbled onto a solution, of sorts. You have
to duplicate the list (i.e. use two pointers to it.) One
you put in the session so that iterate tag can access it,
the other you put in the form so the radio tag can access
it. I guess I would like to just put it into the form,
html:radio? Take two
did you reset the button to null on action form?
From: Maturo, Larry [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: How to use html:radio? Take two
Date: Mon, 25 Feb 2002 11:06:22 -0600
for
logic:iterate to use.
bean:define id=theList name=yourFormBean
property=projectProcessGateList
scope=request toScope=page/
logic:iterate id=processGates name=theList scope=page
--- Maturo, Larry [EMAIL PROTECTED] wrote:
Well, I have stumbled onto a solution, of sorts. You have
Well, I got no reply the first time I posted this,
but then that was on a Friday, so here goes again.
I am trying to create a table of radio buttons. Each row looks
something like:
Required Exempt Done Gate
O O * Repository Link
where the O represents an unchecked
Maturo, Larry [EMAIL PROTECTED] on 02/22/2002 04:46:44 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject:How to use html:radio?
I am trying to create a table of radio buttons. Each row looks
something like
I am trying to create a table of radio buttons. Each row looks
something like:
Required Exempt Done Gate
O O * Repository Link
where the O represents an unchecked radio button
and the * represents a check one. I have an ArrayList
of beans. Each bean has a status
Hi Konstantina,
Since you haven't supplied enough details, I'll assume that
you have a table, and each row contains info on one product,
plus two buttons, one for displaying info and one for do
something with the product.
In this case you then make each button look like an array, in
your form
I do have to mention that often
times if you understood the answer
you would not need to ask the question. :-)
I think that telling people to search the
archives is a good idea if we know for
sure that they contain an example of
how to solve the question asked. However,
a lot of time the
Hi John,
I ran into something similar with the select/options
tag last week. The solution may be the same. The
tag sets a variable in the form with the user's
selection, and if you set the same variable in
the form in your action class to what you want
selected, it may use that as the
Dave Hay wrote:
What if you want, say,
logic:iterate id=category name=TraceForm property=categoryList
...
On html:radio name=category property=value value=on
indexed=true/
Off html:radio name=category property=value value=off
indexed=true/
I'm sorry if this is a resend, but I have been having
problems sending emails to the outside world, so I
don't know if this ever made it to the mailing list,
and I haven't seen any responses.
I have noticed that the value attribute of the select
tag, which is said to be a run-time expression in
without querying the database.
I hope it might help, Patrick
Maturo, Larry wrote:
Hi David,
I have tried endless variations of the hidden variable
in each row trick you suggested. It seems like it should
be very simple, but each time I run into the problem of
the variable I pass in to value does
I finally figured out what was wrong.
The below did not work:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
value=%=OrganizationForm.PARENT_ORG_ID %
html:options collection=%= Constants.ORG_LIST %
property=%= Constants.SELECT_VALUE %
I have noticed that the value attribute of the select
tag, which is said to be a run-time expression in the
struts tag documentation, does not seem to work that way.
I have the following select statement:
html:select property=%= OrganizationForm.PARENT_ORG_ID %
I have a table that displays information on a number of
items. Each table entry has an edit button, so that you
can edit the information on that item. I use an iterate
tag to populate the table. My problem is that I don't
know how to save something indicating which edit button
they pressed.
Hi Rob,
I've been following this thread, and I
am confused. Where exactly are the
labels for your values? Below I am
restating Keiths suggestion. How does
your data differ from this?
-- Larry Maturo
[EMAIL PROTECTED]
Select/Options With An ArrayList of Beans
I have a table that displays information on a number of
items. Each table entry has an edit button, so that you
can edit the information on that item. I use an iterate
tag to populate the table. My problem is that I don't
know how to save something indicating which edit button
they pressed.
46 matches
Mail list logo