RE: How to pass variable from servlet to jsp?

2005-02-15 Thread Daffin, Miles (Company IT)
Why is that 'crazy' or 'bad'? Please elaborate. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: 11 February 2005 16:43 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: How to pass variable from servlet to jsp? No offense, but that is *crazy*

RE: Constants for property names - am I barking up an insignificant tree?

2005-02-15 Thread Daffin, Miles (Company IT)
Am I alone in finding this issue significant, or was it my tone 8-) Anyone got anything to add? Anything at all? TIA -Miles -Original Message- From: Daffin, Miles (Company IT) Sent: 11 February 2005 17:29 To: Struts Users Mailing List Subject: RE: Constants for property names

RE: Constants for property names

2005-02-11 Thread Daffin, Miles (Company IT)
My responses are interspersed. Daffin, Miles (Company IT) wrote: What do people feel about using constants for property names? I can't really see the point. A property name is like a variable name, it will never be displayed or localized, so why would you ever want to change it? e.g

Constants for property names

2005-02-10 Thread Daffin, Miles (Company IT)
Hi All, What do people feel about using constants for property names? In general I feel one should use constants for such things, but it is far from easy in a web app to do so. If I define a constants class (e.g. com.plok.app.constants.Keys) I can use this in everywhere in java code and in

RE: Validating DynaBean nested beans with a custom validator.

2005-01-12 Thread Daffin, Miles (Company IT)
java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException{ return (PersonFormBean) BeanUtils.getProperty(bean, property); } On Tue, 11 Jan 2005 11:39:53 -, Daffin, Miles (Company IT) [EMAIL PROTECTED] wrote: Dear All, I have

Possible Bug: validator_1_0: msg element. key always treated as resource, never literally?

2005-01-12 Thread Daffin, Miles (Company IT)
Hi, I am trying to use the mask validator as follows: msg key=A custom message. name=mask resource=false/ I expect to see 'A custom message.' when the validation fails. I get no message at all. If I add a message to my app.properties: errors.some.problem=A custom message. and then edit

Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Daffin, Miles (Company IT)
Dear All, I have a DynaValidatorActionForm like this: form-beans form-bean name=theFormBean type=org.apache.struts.validator.DynaValidatorActionForm form-property name=simpleProperty type=java.lang.String / form-property name=personList type=java.util.ArrayList size=0 /

RE: Handling the exceptions in struts

2005-01-11 Thread Daffin, Miles (Company IT)
The html:errors tag will display a generic message but how can I display the details of what went wrong (e.g. the Exception's stacktrace) in the designated error jsp? What are the options? Can someone point me at some docs that go into this in more detail? Thanks, -Miles -Original

RE: Handling the exceptions in struts

2005-01-11 Thread Daffin, Miles (Company IT)
Daffin, Miles (Company IT)To: Struts

RE: Handling the exceptions in struts

2005-01-11 Thread Daffin, Miles (Company IT)
. (or You have to set it in the request explicitly). In the error.jsp you can retrieve that execption from the request. On Tue, 11 Jan 2005 16:36:29 -, Daffin, Miles (Company IT) [EMAIL PROTECTED] wrote: JC, Thanks. This I know. But... If I do this in struts-config: global

JSTL import url is broken? Surely not.

2005-01-07 Thread Daffin, Miles (Company IT)
Dear All, The JSTL documentation states: Using the Standard Taglib libraries is simple; you simply need to import them into your JSP pages using the taglib directive. For instance, to import the 'core' JSTL library into your page, you would include the following line at the top of your JSP

RE: JSTL import url is broken? Surely not.

2005-01-07 Thread Daffin, Miles (Company IT)
there's no resource located at http://struts.apache.org/tags-html; either. Quoting Daffin, Miles (Company IT) [EMAIL PROTECTED]: Dear All, The JSTL documentation states: Using the Standard Taglib libraries is simple; you simply need to import them into your JSP pages using

Adding rows (beans) to dynamic form

2004-12-01 Thread Daffin, Miles (Company IT)
Hi All, I apologise in advance for this question - but I have searched/tried all day without nailing a solution. I am using DynaValidatorActionForm. One of the fields is a list of qualifications. Each qualification has three fields (I have implemented this as a simple custom bean). I want

RE: Client side validation broken when using DynaValidatorActionForm.

2004-11-26 Thread Daffin, Miles (Company IT)
://homepage2.nifty.com/ymagic/struts/OtherTranslate/Struts Validator/jspt ags-jp.html Regards, David -Original Message- From: Daffin, Miles (Company IT) [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:38 AM To: Struts Users Mailing List Subject: Client side validation

Why does a Form Bean declared as session-scope appear on both session and request?

2004-11-26 Thread Daffin, Miles (Company IT)
Hi All, If I declare my bean scope=session (struts-config.xml) the same instance of it turns up on both the request and the session: Session key: bean name from struts-config.xml Request key: org.apache.struts.taglib.html.BEAN If I then change the declaration to scope=request the same bean

Client side validation broken when using DynaValidatorActionForm.

2004-11-25 Thread Daffin, Miles (Company IT)
Hi All, Apologies if this one has already been covered (I searched the list). I am using struts 1.1 with one DynaValidatorActionForm for holding data from multiple jsp forms (wizard style reg form). The server side validation works fine but the generated javascript is broken. The name of the

RE: Conditionally disable form input.

2004-11-20 Thread Daffin, Miles (Company IT)
Message- From: Daffin, Miles (Company IT) [mailto:[EMAIL PROTECTED] Sent: 19 November 2004 16:20 To: [EMAIL PROTECTED] Subject: Conditionally disable form input. Hi All, I want to disable a text input if a certain checkbox input has been checked (meaning

Conditionally disable form input.

2004-11-19 Thread Daffin, Miles (Company IT)
Hi All, I want to disable a text input if a certain checkbox input has been checked (meaning, in the following example, that the name input need not be filled in). My jsp code looks like this: html:text property=%=Keys.APPLICANT_FULLNAME_CHINESE% size=100

Using constants for form property names.

2004-11-17 Thread Daffin, Miles (Company IT)
Hi All, I have found all sorts of ways to use constants for messages in struts, but no one seems to address the issue of property names. A simple example will make it clearer. I want to use constants for my property names. In my jsp I have the following code: html:checkbox

RE: Using constants for form property names.

2004-11-17 Thread Daffin, Miles (Company IT)
as attribute values the whole attribute must be a single RT: html:checkbox property=%=Keys.APPLICANT_FULLNAME_CHINESE_NA% onclick=%=clearAndDisable(this,' + Keys.APPLICANT_FULLNAME_CHINESE_NA + ');% N/A /html:checkbox Paul -Original Message- From: Daffin, Miles

RE: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-15 Thread Daffin, Miles (Company IT)
has failed to initialize. On Fri, 12 Nov 2004 16:23:24 -, Daffin, Miles (Company IT) [EMAIL PROTECTED] wrote: [snip] One assumes that the ActionServlet did not load the ModuleConfig, and that the application is *not* therefore really viable - although it seems to think

STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Daffin, Miles (Company IT)
Hi, Can anyone tell me if this is a bug? I have a struts 1.1 app with a typical default index.jsp redirecting to the entry point action: logic:redirect forward=/startForm3/ This was failing to because of the following NPE: --- java.lang.NullPointerException at

RE: STRUTS Application still appears viable even though ActionServlet has failed to initialize.

2004-11-12 Thread Daffin, Miles (Company IT)
List Subject: Re: STRUTS Application still appears viable even though ActionServlet has failed to initialize. Have you specified the load-on-startup attribute for the controller Servlet in web.xml? Erik Daffin, Miles (Company IT) wrote: Hi, Can anyone tell me if this is a bug