Validator Problem

2007-04-13 Thread Tom Bednarz
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:

Accessing form bean properties from within JavaScript

2007-02-28 Thread Tom Bednarz
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:

Validator question

2007-02-27 Thread Tom Bednarz
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

Re: Strange problem with Validators in Struts 1.2.9

2007-02-26 Thread Tom Bednarz
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

Strange problem with Validators in Struts 1.2.9

2007-02-26 Thread Tom Bednarz
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 = "

Form conversion problem String to Date

2006-09-27 Thread Tom Bednarz
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

Re: How to set the property of a drop-down select list from an action class?

2006-09-07 Thread Tom Bednarz
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

Re: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Tom Bednarz
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

Re: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Tom Bednarz
); 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

How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Tom Bednarz
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(

Re: Problems to fill a DropDownListbox on a DynaValidatorActionForm

2006-09-04 Thread Tom Bednarz
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

Problems to fill a DropDownListbox on a DynaValidatorActionForm

2006-09-03 Thread Tom Bednarz
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

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
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]

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
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

Re: validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
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

validator and DynaValidatorActionForm

2006-08-30 Thread Tom Bednarz
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" >

Re: User Certificates and application managed security -- possibl e??

2005-04-18 Thread Tom 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

User Certificates and application managed security -- possible??

2005-04-18 Thread Tom Bednarz
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

Re: Container vs application managed security - Role checking

2004-04-07 Thread Tom Bednarz
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

Container vs application managed security - Role checking

2004-04-07 Thread Tom Bednarz
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