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.
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
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
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
.
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
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???
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
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
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
, 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
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() ){
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
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
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
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
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
:
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
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
-- 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
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
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
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,
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
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
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
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
26 matches
Mail list logo