Re: security pattern

2003-11-28 Thread Frederic Dernbach
1/ If the pages are similar, I would build one JSP page only and have some presentation logic in the JSP (tags logic: ... using the role data ). 2/ I use Struts and its Struts-config.xml to forward to the good JSP file from one first Struts action that will test the user's role. Hope this helps.

Best Practice : session vs. request attributes

2003-11-06 Thread Frederic Dernbach
I'm questioning my current design practice regarding Struts forms. Until now, I tend to store all client data in the Struts form and I avoid using other request attributes or session attributes. But, this approach seems limited when I need to display a collection of objects that are very

Re: Best Practice : session vs. request attributes

2003-11-06 Thread Frederic Dernbach
Vic, Thanks for the input. I will use session-context forms. Things will be easier in terms of design. Fred Le jeu 06/11/2003 18:48, Vic Cekvenich a crit : Is it OK using session attributes (performance, memory, etc. ), even if you make sure session attributes are removed when no more

html:link adn Struts usage - question from a newbee

2003-11-05 Thread Frederic Dernbach
Inside a JSP, I would like to implement a link to a Struts action that forwards back to the initial JSP WITHOUT LOOSING THE FORM'S DATA. Let's have a simple (and stupid) example so I can make myself understand better. Using struts, we have a JSP (/ShowMe.jsp) with a form stored in request or

Re: html:link adn Struts usage - question from a newbee

2003-11-05 Thread Frederic Dernbach
. Fred Le mer 05/11/2003 18:08, Ashish Sinha a crit : Hi Fred, Try this and let me know. html:link action=\ShowItAgain.do Refresh/html:link Rgds, Ashe. - Original Message - From: Frederic Dernbach [EMAIL PROTECTED] To: struts-user [EMAIL PROTECTED] Sent

Re: Paging

2003-11-03 Thread Frederic Dernbach
Mauricio, You can look at 'struts-layout' : http://struts.application-servers.com/ It is a quite powerful taglib that includes, among other stuff, paging management. Fred Le lun 03/11/2003 12:43, Mauricio T. Ferraz a crit : Hi People!!! Anybody knows, how can I do paging with Struts???

Struts Validator with Indexed Properties

2003-11-03 Thread Frederic Dernbach
I would like to know how to use the Struts Validator with indexed properties. I cannot display error messages under the field (but the validator obviously works and performs validation). Below is the relevant parts of my JSP and of my valdiation.xml file : Upon submission of the JSP's form, I

Re: Struts Validator with Indexed Properties

2003-11-03 Thread Frederic Dernbach
depends=required,integer,positive arg0 key=rubis.strategy.label/ /field You have specified it as indexedListProperty=parameters Plz Verify your validation.xml. -Vijay Frederic Dernbach wrote: I would like to know how to use the Struts Validator with indexed

Indexed Properties Struts Validator

2003-11-03 Thread Frederic Dernbach
I would like to know how to use the Struts Validator with indexed properties. I cannot display error messages under the field (but the validator obviously works and performs validation). Below is the relevant parts of my JSP ,valdiation.xml file and form : Upon submission of the JSP's form, I

RE: Indexed properties help!

2003-10-26 Thread Frederic Dernbach
, String val) { bidAmount[index] = val; } And have to implement the bidAmoutn as an array? Protected String[] bidAmount; Do confirm if igot that right? Thanks once again for ur time. -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Sunday, October

Re: Indexed properties help!

2003-10-26 Thread Frederic Dernbach
Rajat, Here is an example of an indexed property called 'signal' (in my application it holds complex objects, not simple strings or integers): public OrderedSignalBean getSignal(int index) { while( index = this.getSignals().size() ){

Re: Indexed Properties examples?

2003-10-21 Thread Frederic Dernbach
OK, I faced the same problems you a few weeks ago (I was a total newbee with indexed properties and I spent 10 full days on the problem - I'm still hot on this one !). I haven't read the initial post and I hope my input will be useful to you. Regarding the form : 1/ I create an empty array list

Calling a javascript function with the logic:iterate tag

2003-10-16 Thread Frederic Dernbach
How can I call a javascript function with one parameter using a logic:iterate tag (the parameter being different from row to row). Below is a simple JSP snipplet which uses an iteration. Its first item prints a code property with an hyperlink with a onclick attribute that points to a javascript

Reusability of Popup Windows Exception

2003-10-07 Thread Frederic Dernbach
I'm trying to implement my first popup window. I'd like to implement a search window for an entity (called signal in this case) that I can reuse in different areas of my web application. This search window has several criteria and one submit button in order to perform the database lookup and

Re: DynaValidatorForm

2003-10-07 Thread Frederic Dernbach
Glenn, - Use a descendant of DispatchAction for your form's action, - Have two separate methods in the action class for your two buttons (one for 'commit' and one for 'cancel'). - In the struts-config.xml file, specify attribute 'validate' to 'false' for your form's action.The form validation

Re: [help] nest logic:iterate problem!!

2003-10-07 Thread Frederic Dernbach
You can look at the struts-layout library that solved this problem in its layout:collection tag. Source code of the library is available at http://struts.application-servers.com/ . Fred Le mar 07/10/2003 13:52, a crit : Dear: How to processes nested iterate tag? Im meeting a nest iterate

Re: DynaValidatorForm

2003-10-07 Thread Frederic Dernbach
: Frederic Dernbach wrote: Glenn, - Use a descendant of DispatchAction for your form's action, - Have two separate methods in the action class for your two buttons (one for 'commit' and one for 'cancel'). - In the struts-config.xml file, specify attribute 'validate' to 'false' for your form's

Re: DynaValidatorForm

2003-10-07 Thread Frederic Dernbach
On 10/07/2003 04:27 PM Glenn Holmer wrote: Frederic Dernbach wrote: Glenn, - Use a descendant of DispatchAction for your form's action, - Have two separate methods in the action class for your two buttons (one for 'commit' and one for 'cancel'). - In the struts-config.xml file, specify

RE: Need for a sample with indexed properties

2003-10-06 Thread Frederic Dernbach
-- it will cover the first 2 of your points. david -Original Message- From: Frederic Dernbach [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:59 AM To: struts-layout; struts-user Subject: Need for a sample with indexed properties Following up on a previous post, I

Help needed : cannot resend an indexed property to request

2003-10-05 Thread Frederic Dernbach
Hello, I experience big difficulties resend an indexed property of a form as part of a request. I build a super-simple code sample to share with you so you can help me find the trick. I have a form named TestForm; It has one property named 'beans' that is an array of TestBean. TestBean is a

Help needed : cannot resend an indexed property to request (2)

2003-10-05 Thread Frederic Dernbach
I really get crazy with Struts indexed properties. I just posted a message about big difficulties resend an indexed property of a form as part of a request. I made some progress in debugging and the result is quite SURPRISING ! I build a super-simple code sample to share with you so

Need for a sample with indexed properties

2003-10-03 Thread Frederic Dernbach
Following up on a previous post, I currently experience big difficulties managing indexed properties in a Struts form. Can somebody send me a complete sample with : - a form with an indexed properties (I need to see the setter and getter methods). The O'Reilly Programming Jakarta Book says that,

Help drasticaly needed ; indexed properties

2003-10-03 Thread Frederic Dernbach
I recently asked for some help on indexed properties and I still some assistance. However, I made some progress in the understanding of the issue. I traced the Struts source code to understand a little better why I'm loosing collection date in between Struts actions. I have a very simple JSP

Re: Cannot create a DynaValidatorForm

2003-10-02 Thread Frederic Dernbach
that the validator is being invoked and you can go on from there. Adam On 10/01/2003 11:13 AM Frederic Dernbach wrote: Hello, I cannot get the DynaValidatorForm to work. It does not do anything. In struts-config.xml, I declared the form bean as : form-bean name=strategyListForm

Help needed : Cannot manage a collection or array in a Struts form

2003-10-02 Thread Frederic Dernbach
Hello, I really need some help with Struts ; there must be something I do not get right (I'm still unexperienced ...). I'm loosing indexed form properties. I have a form ('StrategyForm') with an indexed property ('signals'). See below: public class StrategyForm extends ValidatorActionForm

Cannot create a DynaValidatorForm

2003-10-01 Thread Frederic Dernbach
Hello, I cannot get the DynaValidatorForm to work. It does not do anything. In struts-config.xml, I declared the form bean as : form-bean name=strategyListForm type=org.apache.struts.validator.DynaValidatorForm form-property name=itemCount