Hello, all,
I am not sure whether it is a good practice to:
eliminate instance variables from Struts action class; and
make all methods static.
Basically it turns the action class into a utility class.
Any comments? Thanks.
Denis
Hello, all,
I have the following problem:
In ActionA{
ActionErrors errors = new ActionErrors();
errors.add( ActionErrors.GLOBAL_ERROR, new ActionError(
Afailed ) );
saveErrors( request, errors );
}
In ActionB{
be the only
reason the next error was caused )
if you are using the validate() method. you can achieve this by simply
adding new errors prior to returning.
JMG
- Original Message -
From: Denis Wang [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday
ActionErrors();
}
Use this inside the execute.
ActionErrors errors = getErrors(request);
Varun
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 10:48 AM
To: Struts Users Mailing List
Subject: struts: error/message handling: saveErrors
Hello, all,
Sorry if it is off the subject of this mailing list.
I use JavaScript to generate a pop-up menu. However, the menu is shadowed
by my drop down list on the same page. Does anybody have any idea how to
fix it.
Thanks.
Denis
p.s. my JavaScript code to generate the menu
function
Hello, all,
I am not sure how Struts matches with the j2ee presentation tier design
patterns.
For example, I assume:
Decorating filter: N/A
Front Controller: ActionServlet
Composite View: taglib template
View Helper: Action, ActionForm
Dispather View: N/A
Service to Worker: ActionServlet,
A newbie question:
Currently I have
nested:write property='width'/
nested:write property='depth'/
I want to calculate the area IN JSP (not to modify ActionForm) as width X
depth.
I suppose I am going to use scriptlet. How to achieve this?
Thanks.
Denis
=width/
nested:define
property=depth
id=depth/
%
float w = new Float(width).floatValue();
float d = new Float(depth).floatValue();
float a = w * d;
%
Sri
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:59 PM
To: Struts Users
property=depth
id=depth/
%
float w = new Float(width).floatValue();
float d = new Float(depth).floatValue();
float a = w * d;
%
Sri
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:59 PM
To: Struts Users Mailing List
Subject: how
Hello, all,
There is something wrong with the following piece of code:
logic:match name='userBean' property='userName' value=nested:write
property='checkOutUserVO.userName'/
...
/logic:match
I double-checked the nested:write works.
nested:write property='checkOutUserVO.userName'/
if I change
thanks for your reply. the powerful if...else can absolutely solve the
problem, but the architect doesn't allow me to do so. JSTL is not used
elsewhere througout my application. Anyway, thanks for your input.
Denis
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent:
thanks.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: logic:match
You can't use a tag as the input into another tag's attribute.
David
From: Denis Wang [EMAIL PROTECTED]
Reply-To: Struts
Hello, all,
Sorry to post an EJB question in this Struts group. But I got little
response from other mailing list and people in this one never let me down.
I am using CMP for session facades and two local entity beans. Both entity
beans and the session facade are put into CMP with transaction
Hello, all,
I have a CreateAction, on completion of which an objectId is created. Then
I need to forward the screen to UpdateAction, which demands a not-null
objectId. CreateAction and UpdateAction use different forms.
How can I achieve this? I find out that ActionMapping.findforward() only
.
robert
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 10:35 AM
To: Struts Users Mailing List
Subject: forward to another page with a parameter
Hello, all,
I have a CreateAction, on completion of which an objectId is
created. Then
I
Hello, all,
What is the easiest way to set the request paramter to null?
I have OneForm and TwoForm, both of which have a field of operation.
After OneAction is finished, the request will be forwarded to TwoAction.
The wierd thing is that I cannot reset the operation parameter.
I tried in the
-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 3:19 PM
To: Struts Users Mailing List
Subject: reset a request parameter to null
Hello, all,
What is the easiest way to set the request paramter to null?
I have OneForm and TwoForm, both of which have a field of operation
on this
list in the past and so I won't go into it at length.
Would you please give me a hint of the subject for the past discussion? I'd
like to look into it.
Thanks.
Denis
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 3:30 PM
To: Struts Users
(mapping.findForward(success).getPath() +
?versionId= + versionId);
Any calls to request.getParameter(operation) should return null after
that.
Larry
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 3:30 PM
To: Struts Users Mailing List
Subject: RE
Thanks a lot!
Denis
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello, All,
I use Struts to retrieve a long list of data. It works perfectly. I want
to enhance it with pager functionality and got the pager taglib from
jsptags.com. The installation is a success. Then I modified my JSP page to
accomodate the new functionality. ( No touch on Action, Form, or
Hello, all,
Sorry for re-post. I believer this is a problem worthywhile of attention.
I posted this message yesterday, but basically no answers.
I have an ActionForm, which includes a field/getter/setter of subclass.
The subclass inherits superField field/getter/setter from its superclass.
In my
may i see you sample codes?
thanks.
denis
-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 10:37 AM
To: Struts Users Mailing List
Subject: Re: possible limited supports for inheritance in struts?
2002. december 10. 16:26 dátummal Denis
10, 2002 11:55 AM
To: Struts Users Mailing List
Subject: RE: possible limited supports for inheritance in struts?
One more thing...
Why is the ActionForm using type ScheduleVO instead of ScheduleBean? You may
want to try returning ScheduleBean.
Vinh
-Original Message-
From: Denis Wang
has
package-level visibility. However, when the class is made public, there are
no errors.
BTW -- You'll see the same behavior even with the html:text -- I've
checked it out.
Sri
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 10:26 AM
Hello,
Sorry to send the question again. But I didn't see the message appearing on
the mailing list for some reasons. Besides the previous message has a wrong
return email address.
I have an ActionForm, which includes a field/getter/setter of subclass. The
subclass inherits the description
() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
.
-Original Message-
From: Denis Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 9:28 AM
To: struts
Subject: does ActionForm
Hello,
Suppose I have ActionForm aForm, which has a private field aBean. aBean is
a dumb data hold class with a field aData. I can populate the aData from my
backend data resources and write it to JSP as the following:
nested:form action='the action related the aForm'
nested:nest
you right, but you surely can access a nested bean in
a form.
i.e.:
html:text name=aForm property=aBean.aData /
...is that understandable?
(Do you have a nested taglib?)
Regards,
Bernhard
-Ursprüngliche Nachricht-
Von: Denis Wang [mailto:dwang;brandmuscle.com]
Gesendet: Dienstag, 12
of the initiation of
aForm and aBean.
Enjoy coding.
Denis
-Original Message-
From: Denis Wang [mailto:dwang;brandmuscle.com]
Sent: Tuesday, November 12, 2002 8:20 AM
To: struts
Subject: how to populate nested bean in actionform
Hello,
Suppose I have ActionForm aForm, which has a private field
It is interesting to notice the difference between
%-- jsp comment --%
and
!-- html comment --, which will not shadow tags defined on the serverside.
Have a great day!
Denis
--
To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
31 matches
Mail list logo