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: html:link action=/insertExpense.do?op=new styleClass=button this actions opens a form with a request parameter op set to new. inside this form I do

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

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 =

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 [EMAIL PROTECTED

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

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 expected

Re: Problems to fill a DropDownListbox on a DynaValidatorActionForm

2006-09-04 Thread Tom Bednarz
/ This will work if your have an attribute called expenseTypes in some scope (ie. session, 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

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: html:select property=expenseType html:options collection=expenseTypes property=typeCode labelProperty=typeDescription/ The expenseTypes is a Vector of the

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

2006-09-04 Thread Tom Bednarz
-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 like to display a dop-down select list and select an apropriate entry

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

2006-09-04 Thread Tom Bednarz
the original message without making a copy. Thank you. - Original Message - From: Tom Bednarz [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, September 04, 2006 7:13 AM Subject: Re: How to set the property of a drop-down select list from an action class

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

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: form-bean name=changePersonalDataForm type=org.apache.struts.validator.DynaValidatorActionForm form-property

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

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

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]

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

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

Re: Container vs application managed security - Role checking

2004-04-07 Thread Tom Bednarz
The class goes with your app, and you need to specify that in the following tag in your struts-confi.xml file: controller processorClass=your process class / So Struts knows. Saul -Original Message- From: Tom Bednarz [mailto:[EMAIL PROTECTED] Sent: Wednesday, April