is Struts action class a Design Pattern of utility class?

2003-07-16 Thread Denis Wang
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

struts: error/message handling: saveErrors

2003-07-03 Thread Denis Wang
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{

RE: struts: error/message handling: saveErrors

2003-07-03 Thread Denis Wang
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

RE: struts: error/message handling: saveErrors

2003-07-03 Thread Denis Wang
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

Help: JavaScript pop-up menu goes behind drop down list in InternetExplorer

2003-04-02 Thread Denis Wang
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

what j2ee design patterns does Struts use? Dispatcher View or Serviceto Worker?

2003-03-19 Thread Denis Wang
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,

how to calculate A*B in jsp, where A and B are from nested:write

2003-02-13 Thread Denis Wang
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

RE: how to calculate A*B in jsp, where A and B are from nested:write

2003-02-13 Thread Denis Wang
=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

RE: how to calculate A*B in jsp, where A and B are from nested:write

2003-02-13 Thread Denis Wang
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

logic:match

2003-01-28 Thread Denis Wang
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

RE: logic:match

2003-01-28 Thread Denis Wang
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:

RE: logic:match

2003-01-28 Thread Denis Wang
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

is this a nested transaction problem? what is a nested transaction

2003-01-22 Thread Denis Wang
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

forward to another page with a parameter

2003-01-20 Thread Denis Wang
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

RE: forward to another page with a parameter

2003-01-20 Thread Denis Wang
. 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

reset a request parameter to null

2003-01-20 Thread Denis Wang
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

RE: reset a request parameter to null

2003-01-20 Thread Denis Wang
- 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

RE: reset a request parameter to null

2003-01-20 Thread Denis Wang
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

RE: reset a request parameter to null

2003-01-20 Thread Denis Wang
(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

Can anybody make a recommendation between Struts in Action and StrutsKick Start

2003-01-15 Thread Denis Wang
Thanks a lot! Denis -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

logic:iterate and Pager taglib from jsptags.com --Help!

2003-01-08 Thread Denis Wang
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

possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
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

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
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

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread Denis Wang
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

RE: possible limited supports for inheritance in struts?

2002-12-10 Thread 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

does ActionForm support inheritance field

2002-12-09 Thread Denis Wang
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

related code RE: does ActionForm support inheritance field

2002-12-09 Thread Denis Wang
() { 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

how to populate nested bean in actionform

2002-11-12 Thread Denis Wang
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

RE: how to populate nested bean in actionform

2002-11-12 Thread Denis Wang
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

RE: how to populate nested bean in actionform

2002-11-12 Thread Denis Wang
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

RE: how to populate nested bean in actionform

2002-11-12 Thread Denis Wang
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: