.
Hope this is the answer you want, ask for more detail if req.
Keith.
--- Rob Parker [EMAIL PROTECTED] wrote:
This may be a little complicated to explain. Here is a some background
info.
I have a page that shows a list of clients (in an html table, not a form)
for a user and a form that lets
=beanList property=value
labelProperty=longName/
/html:select
where aProperty is one of the strings in the field of the bean
specified by property in the options tag.
-Original Message-
From: Rob Parker [mailto:[EMAIL
Try request.setAttribute(String name, Object value) - that should do it.
To set a parameter in the classical sense, Object value can be a
String object -- for example:
request.setAttribute(username,rparker);
or
String userName = rparker;
request.setAttribute(username, userName);
I think
This may be a little complicated to explain. Here is a some background info.
I have a page that shows a list of clients (in an html table, not a form)
for a user and a form that lets the user either edit information for and
existing client (by selecting that client from the list) or add a new
I have been able to use struts with Netbeans by unzipping the struts-blank
war file and mounting the resulting directory. Netbeans recognizes the dir
as a web app and takes care of everything for you - mounting jars, setting
up mount points for editing conf files, etc.
What I usually do in
how about something like this - you could do a lot to improve this, but here
is the basic idea. Better yet, use a properties file or a database to
specify the country list. Then use the Collection returned from this method
from the html:options tag to create the option list for the select.
]);
list.add(bean);
}
return list;
}
-Original Message-
From: Rob Parker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:37 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Country List
how about something like
I have run into that problem before with corrupted class files - you might
want to download a new xerces.jar to replace your current file. Hope that
helps,
Rob
-Original Message-
From: jpablo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 8:57 AM
To: Struts Users Mailing
I usually get that problem when there is a problem with the actual xml in
struts-config (eg, I left out a closing tag, etc).
Is this exactly like your struts-config xml looks? If so, you have a problem
at the end
- there are 2 closing /data-sources tags - one is actually
data-sources--
If that
I need to create some select option lists that are populated from a
database. The call to the database will pass in the current user's id to
create customized option lists. Where is the best place to create these
option lists? If I create the lists in the user form, how can I pass in the
user id?
getDefaultOption() {
String sss =
((ReviewDisplayTypeOption)getReviewDisplayTypeOptions().get(0)).getOption();
dbmd(getDefaultOption: returning:+ sss);
return sss;
}
} // end Class ReviewDisplayTypeOption
=
--- Rob Parker
use bean:define in your jsp to get the
collection directly from your data supplying classes?
Keith.
--- Rob Parker [EMAIL PROTECTED] wrote:
Thanks - I am doing almost exactly the same thing,
but I am running into a
problem. If form level validation fails, the action
is not called
to remember to re-add your bean to the
request after validation that fails - so the
re-display of the original form has access to it.
I hope this makes sense helps.
Keith.
--- Rob Parker [EMAIL PROTECTED] wrote:
I am having trouble with the bean:define tag,
specifically the toScope
parameter.
Here
I am having trouble with the bean:define tag, specifically the toScope
parameter.
Here is the situation:
I set up some collections in an action class to use as select options in a
form and set them as attributes on the request object. These collections
contain information pulled from a
14 matches
Mail list logo