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*
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
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
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
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
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
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 /
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
Daffin, Miles
(Company IT)To:
Struts
. (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
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
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
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
://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
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
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
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
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
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
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
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
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
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
23 matches
Mail list logo