I use a form derived from ValidatorActionForm.
If the validator fires a message and redisplays the form, I loose my
request params!
I do:
this actions opens a form with a request parameter op set to new.
inside this form I do something like:
I like to do the following: When a selection in a select box changes,
display a value from a mapped property in a textarea field. To do this I
need to get the currently selected value of the ComboBox by calling some
javascript function in the onchange event of SELECT.
This is my JSP code:
I have a FormBean derived from ValidatorActionForm. I define validation
rules for certain properties in validation.xml.
No I like to add some additional validations which depend on user input.
I thought, I can handle this in the validate(..) method but it gets
never called!
I implemented som
Yeah, looks like it is the wrong action I am calling, or better I need
more actions to process a single user input. I still do not feel very
comfortable with writing that many actions around 'CRUDing' an object.
Thanks a lot anyway!
Tom
Dave Newton wrote:
--- Tom Bednarz <[EM
I have the following problem:
My validator gets NOT called as soon as I initialize some properties in
my form. In my form bean I have:
public class QueryTripsForm extends ValidatorActionForm
{
private String startPeriodDisplay = "2007-01-01";
private String endPeriodDisplay = "
I have a form with a date input field. This field is NOT mandatory, this
means it can contain a value or be empty.
Whenever the user does NOT fill in this datefield I get the following
exception:
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(R
Puneet Lakhina wrote:
On 9/4/06, Tom Bednarz <[EMAIL PROTECTED]> wrote:
Hi Martin,
Hmm, thanks for the link.
Finally my problem is, that in the generated HTML page NONE of the
option tags has the attribute SELECTED. So my drop-down list box
displays the whole collection as expecte
original
message without making a copy. Thank you.
- Original Message -
From: "Tom Bednarz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, September 04, 2006 7:13 AM
Subject: Re: How to set the property of a drop-down select list from an action
);
Is that what you wanted?
Thanks
Ashok
-Original Message-
From: Tom Bednarz [mailto:[EMAIL PROTECTED]
Sent: Monday, September 04, 2006 2:24 PM
To: Struts Users Mailing List
Subject: How to set the property of a drop-down select list from an action
class?
I li
I like to display a dop-down select list and select an apropriate entry
from that list in an action:
This fills the list box:
The expenseTypes is a Vector of the following class:
public class ExpenseType
{
long typeCode;
String typeDescription;
public ExpenseType(
n, request).
The options tag collection attribute expects the name of the collection,
not the collection itself.
-Richard
Tom Bednarz wrote:
I try to fill a DropDownListbox on a DynaValidatorActionForm and get
the following exception:
2006-09-03 18:20:45,007 ERROR [http-8080-1] [/m
I try to fill a DropDownListbox on a DynaValidatorActionForm and get the
following exception:
2006-09-03 18:20:45,007 ERROR [http-8080-1] [/mtweb].[jsp]
(ApplicationDispatcher.java:704) - Servlet.service() for servlet jsp
threw exception
javax.servlet.jsp.JspException: Cannot find bean und
Thanks a lot for all that feedback. I think it gets me a step further.
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks a lot for all your input and help. It looks like I need some
basic concepts clarified. Here a very short background of the
application and what my intension is:
The object 'subscriber' is a special business object: it represents the
logged in user and contains a lot of information about
David Durham wrote:
Tom Bednarz wrote:
I think the validator fires too early, but probably I am doing
something wrong. Maybe somebody can hp!
Basically, you need 2 actions, one to populate the form and one to
change the personal data.
David,
This is EXACTLY what I like to AVOID! With
I think the validator fires too early, but probably I am doing something
wrong. Maybe somebody can hp!
I have the following form bean defined in struts-config.xml:
type="org.apache.struts.validator.DynaValidatorActionForm" >
Sehr geehrte Damen und Herren,
in der Zeit vom 27. Dezember 2005 bis 1. Januar 2006 bin
ich im Urlaub. Bitte wenden Sie sich bei allen Fragen und
technischen Problemen entweder direkt an [EMAIL PROTECTED]
oder telefonisch an: 0511 / 300 345 00
Mit freundlichen Grüßen,
Andreas Bednarz
ID.on
Sehr geehrte Damen und Herren,
in der Zeit vom 27. Dezember 2005 bis 1. Januar 2006 bin
ich im Urlaub. Bitte wenden Sie sich bei allen Fragen und
technischen Problemen entweder direkt an [EMAIL PROTECTED]
oder telefonisch an: 0511 / 300 345 00
Mit freundlichen Grüßen,
Andreas Bednarz
ID.on
mission i can iterate through
>> the keys, filter out all keys that start with "qty" and update the qty
>> for those items.
>>
>> So this seems a little hackish, i was wondering if there's a better way,
>> and secondly, what exactly do i have to name those
, JBoss 4.0.1,
>MySQL 5.0.1.>>
>>>
>>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>-
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
for the developer's workstation.
In your app you would then use just the J2EE-principal and roles.
I think it should be possible from TC5 on upward
hth
Alexander
-Original Message-
From: Tom Bednarz [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 11:44 AM
To: Struts Users Ma
Hi,
We have a customer who is introducing chip cards with
client-certificates for single sign on. Because of this I have to change
a web-application we provided. The application implements its own
security mechanisms and uses roles (defined for every action in
struts-config.xml) and roles in st
ner vs application managed security - Role checking
> The class goes with your app, and you need to specify that in the
> following tag in your struts-confi.xml file:
>
>
>
> So Struts knows.
>
> Saul
>
>
>
> > -Original Message-
> > F
After reading lots of online docs and parts of 'Struts in Action' I decided to stay
with my implementation of application managed security. However I like to make use of
a new feature introduced in Struts 1.1: role checking for actions.
As far as I understand it, I need to make my own implementa
37 matches
Mail list logo