[EMAIL PROTECTED] wrote:
I was wondering if anybody had already thought about an additional
parameter linked to a struts-forward allowing page pre-processing. This
parameter could point to a new kind of model action that will complete
the model with information needed by the view any time the forwa
Eric,
The way I did was to add the collection to request in Action bean when the
validation of the form failed. The collection was re-initialized as needed.
I have not found any other way in struts yet.
Kathy
- Original Message -
From: "Eric Fesler" <[EMAIL PROTECTED]>
To: "Struts Users
Just wanted to chime in with a tad bit more detail...
If you have a form defined as so...
...And in your action you do...
System.out.println(request.getParameter("submit_value"));
...You will indeed see the value of the button that was clicked.
I only wanted to mention this because I personall
Eric,
I have something exactly like this, and I get around it by setting the
action's validate attribute to false for the "prepare" method, and true
for the "submission" action... for example:
prepareEditUser: takes a user ID, loads all data up into request for JSP
page to show, action does val
Rick,
This is a great approach as well and I think we've giving good answers.
1 way you change the Form, and another way you change the Action.
I didn't know you could do it the way you described, thanks for the tip!
Rick Reumann wrote:
Riyad Kalla wrote:
1) Yes you can do it
2) Given each button
Hi,
I'm currently working on an application with several pages having
multiple combo-boxes.
The content of the combo-boxes is closely related to other components of
the model. Therefore, I use a 'prepare' action to setup the model and
put the combo-box collections in the request scope.
Unfortuna
or
or
This will work in inserted tiles as the variable is scoped to the
request rather than page.
On 28 May 2004, at 13:03, Colm Garvey wrote:
Has anyone been able to nest tiles such that
placeholders in the topmost frame can be populated by another tile 2
levels
down?
For example, I have
Thanks everyone. I found the answer, style="cursor:pointer"
Riyad, it looks like "cursor:hand" is not yet a standard.
[EMAIL PROTECTED] wrote:
Is there a JavaScript item that will do that? Or CSS?
-Original Message-
From: ksitron [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 2:47 PM
Riyad Kalla wrote:
1) Yes you can do it
2) Given each button a different value, like "List Products" and "List
All Products"
3) Add a "buttonValue" (or some other adequetly names) property to your
form for the respective action, it will capture the button clicked.
4) In your action:
if(form.getB
1) Yes you can do it
2) Given each button a different value, like "List Products" and "List
All Products"
3) Add a "buttonValue" (or some other adequetly names) property to your
form for the respective action, it will capture the button clicked.
4) In your action:
if(form.getButtonValue().equals
Hi!
Can I have multiple submit buttons on the same form? Imagine I have
"Button A" and "Button B" on a JSP, and I want to do slightly different
things when a user clicks on each button. It's enough to detect, on the
Action, the button the user clicked... but that's precisely my
question. How
To make myself clear,
I have only permissions to write to files under my J2EE App only, and the
deployment may make directory my_application_name_1, or
my_application_name_2, and so on, so I need to set the tempDir to a dynamic
folder under my aplication.
-Original Message-
From: Ayoub, As
Dears,
I'm using struts 1.1, and I want to set the tempDir to a value no non
untill runtime, I can set it when servlet initialize, as the location of
deploying my application is dynamic, so I will get it and pass an
appropriate value to the tempDir
I have read that the default value is determi
13 matches
Mail list logo