Great idea Thanks!
2008/3/6, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>:
> >
>
> > Thanks Antonio, but I need to prepopulate a ActionForm from another
> Action
> > and forward it to jsp...
>
>
>
>
> I think that the best way to manage it is to put
2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>:
>
> Thanks Antonio, but I need to prepopulate a ActionForm from another Action
> and forward it to jsp...
I think that the best way to manage it is to put a simple bean (no
ActionForm) that contains the values that you want to put in request scope,
Thanks Antonio, but I need to prepopulate a ActionForm from another Action
and forward it to jsp...
Sorry for my English.
2008/3/6, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>:
>
> > Hi,
> >
> > Where is the Form bean into the request??? What is the
2008/3/6, Juanjo Cuadrado <[EMAIL PROTECTED]>:
> Hi,
>
> Where is the Form bean into the request??? What is the label??
>
> I want to put a actionform in the request and I dont know where...
> (prepopulate???)
See:
http://struts.apache.org/1.x/faqs/newbie.html#prepopulate
Antonio
--
However, how do I refer to my placed formBean from a struts tag?
One way to do it would be:
now "foo" is a variable within your JSP page with the value "fname" from
your form.
How does it know the difference from my formBean and the default
formBean created from ApplicationResources?
Form
Hi Alberto
Thank you. However, how do I refer to my placed formBean from a struts tag?
How does it know the difference from my formBean and the default formBean
created from ApplicationResources? Can I refer to it as:
"Alberto A. Flores" <[EMAIL PROTECTED]> wrote:
> I have a form with many,
I have a form with many, many fields on it. I would like to process some of
them in my Action but get all them into the session object so my forwarded jsp
can use them as the values. So may I ask:
1. How can I put the entire form bean from an action into the session scope
without extractin
m your XSLT, then there's a problem with the XSLT.
If it's an XSLT problem, you'd have more luck asking the XSLT list at [EMAIL
PROTECTED]
Good luck!
Chris Loschen
-Original Message-
From: Rajeev Kumar Pandey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 26, 2006 4:
Hi All,
Resending my query since I did not receive any replies to the same.
Kindly help.
Regards,
Rajeev
From: Rajeev Kumar Pandey
Sent: Friday, December 22, 2006 8:00 PM
To: 'user@struts.apache.org'
Subject: Form Bean not able to read form rendered from
public class MyForm extends ValidatorForm {
CreditCard getCreditCard()
}
CreditCard has to be a bean,
jsp.
Regards
On 10/25/06, xianwinwin <[EMAIL PROTECTED]> wrote:
Hi guys,
I wonder if it's possible to create a form bean with a composition. I
mean,
assuming I have the following class
It appears that the value for your paymentPropertyName is not pointing to the
INDIVIDUAL property, but to the ArrayList as a whole. Try setting it to a
property of the object that is in the array list. ie. payments[#].amount
Be sure your form has a getPayments method as well.
-Original M
Troy Bull wrote:
I have a form with multiple "rows" on it say it has columns a b c chk hid
I have javascript to set hid to Y or N based on someone clicking chk
Then in my form bean I have
String[] a;
String[] b;
String[] c;
String[] hid;
My question is how can I make my check box set the cor
Marcio Ghiraldelli wrote:
I need to populate a a form-bean with a collection for an
instance.
Wich is the better place to do it:
1) Into the form-bean reset() method
or
2) In an Action before the jsp call
The recommended place to do it is in an action, though some do prefer
k You.
Croff
From: "rahul" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: form bean population confusion
Date: Mon, 03 Oct 2005 10:25:15 +0530
see inline comments #
> -Original Messag
see inline comments #
> -Original Message-
> From: croffman rhenv [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 01, 2005 8:41 PM
> To: user@struts.apache.org
> Subject: RE: form bean population confusion
>
>
> Thanks for the reply.
>
> 1. Loo
t;Struts Users Mailing List"
Sent: Friday, September 30, 2005 9:35 AM
Subject: RE: form bean population confusion
I am not sure, what you want to show on jsp2
but let me try..
you said you want to submit some DATA from PAGE 1
then retrieve some info from database and show that data
in PAG
From: "Tamas Szabo" <[EMAIL PROTECTED]>
http://struts.apache.org/faqs/indexedprops.html
In my oppinion this page contains an error.
I already reported this (wrote a mail about it on this list
(don't know if this is a way to report an error in the docs)),
http://struts.apache.org/faqs/helpin
I am not sure, what you want to show on jsp2
but let me try..
you said you want to submit some DATA from PAGE 1
then retrieve some info from database and show that data
in PAGE 2
But the mapping you shown is not correct for that
follow these steps
1. Create a mapping for action1 which does not t
>
> However, before you do that, have a look at this page:
>
> http://struts.apache.org/faqs/indexedprops.html
In my oppinion this page contains an error.
In the List-Backed Indexed Properties the method
public java.util.List getStringIndexed(int index) {
return java.util.Arrays.asL
Yes, you absolutely can use Struts with ActionForms. You will have to
take responsibility for getting values out of request, and for
validatation, etc., but the answer is yes.
However, before you do that, have a look at this page:
http://struts.apache.org/faqs/indexedprops.html
If you want to s
You could write lots of jsp code to handle it:
As you can imagine this is pretty silly.
In your action form, when preparing the display (ie when you put the text
fields into the
request scope) instead of adding them as separate entries it would be better to
create a
collecti
You didn't list the code for your form bean or JSP so I can only make
guesses. It looks like your action is storing an instance of the form bean
in session scope under the key resultForm and that you're able to access it
explicitly in result.jsp, but that the tag in the JSP isn't
being associa
Kevin,
Use attributes in the request or session scope.
-Richard
At 07:28 AM 8/14/2005, you wrote:
Hi
I want to trasnfer data from One action to another
using a form bean.
How can i access the form bean data in the second
action.
I have attached my struts config and action class.
The submit
Since you don't provide any specific info, all we can provide are
non-specific suggestions.
Make sure you have you bean scopes correct. Typically, a struts form
bean can be placed/accessed from either session scope or request
scope. Also, make sure you don't put different classes in
request/sess
Correct.
Is the compress filter help anyway, to reduce problems?
Croff
- Original Message -
From: "Larry Meadors" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, May 25, 2005 10:59 PM
Subject: Re: form-bean question - help
So, you hav
So, you have a form bean with a total of ~300 properties?
Yes, that could be a bit heavy in a high load environment.
Larry
On 5/25/05, croffman <[EMAIL PROTECTED]> wrote:
> I have a form bean which has few form-bean properties (less than 10) each of
> type customized class, which contains arou
he form bean object would be removed in
> session scope after it's use.
>
> RaghuVeer
>
> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 08, 2005 8:08 AM
> To: Struts Users Mailing List
> Subject: Re: form-bean and persi
-Original Message-
From: Jeff Beal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 7:43 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: form-bean and persistent data in session scope
As far as I know, Struts never explicitly removes form beans from
session scope. Th
As far as I know, Struts never explicitly removes form beans from
session scope. This does create the potential for performance issues,
simply because those form beans take up memory. With a limited user
base, you can probably throw enough RAM into your server to avoid
serious problems, though.
Yes, it is typical to write Action.execute() methods that contact the
persistent store to populate an ActionForm so that the data can later be
rendered by a JSP.
Specify what ActionForm (bean) your action uses in struts-config.xml.
When you do this, Struts will create/find an instance of that Acti
This is a valid way to do it. To be more specific, your Action would ask
some delegate for the domain object, then it would use that object as
either a scoped (request, session, etc.) attribute or as a field for
your form-bean (if you are indeed using your form-bean for "setup"
actions as well
Take a look at the tags. Tutorials are at
http://www.keyboardmonkey.com/
On Mon, 28 Feb 2005 11:47:25 -0500, Rooney.Dave <[EMAIL PROTECTED]> wrote:
> Has anyone ever nested form beans with collections more than one level
> deep?
>
> We have a situation where we have a form bean that contains a
Hi,
I've had the same problem and used a mapped backed form bean, which
worked really well. Now I am wondering whether it's possible to use the
validator plugin to validate the entries. The only problem is that
a) I don't know what kind of properties and
b) how many of them are submitted.
Any id
Thanks for your reply Jeff. I am trying to develop a simple action and bean
with mapped properties for proof of concept. This will confirm if i can use
these.
Asif
At 06:02 PM 2/22/2005, you wrote:
>Have you looked at indexed and/or mapped form bean properties?
>
>Muhammad Asif wrote:
>>Hi,
>>
Have you looked at indexed and/or mapped form bean properties?
Muhammad Asif wrote:
Hi,
I have a form that contains variable number of fields. User can add/remove
fields on this form dynamically (using some separate gui). For using a
form-bean we need to know number of fields before hand if new f
I made a mistake in the Action mapping.
thank you all
--- Saul Qunming Yuan <[EMAIL PROTECTED]> wrote:
> Do you have the action mapping defined for logon.do
> in your struts-config
> file? what's it like?
>
>
> BTW, just a friendly reminder, you probably don't
> want to use that email
> id in
From: "Jonathan M Z" <[EMAIL PROTECTED]>
> I have a simple form in struts:
>
>
>
> I get an exception when the jsp page is rendered
> [Servlet Error]-[/Login.jsp]:
> javax.servlet.jsp.JspException: Cannot retrieve
> definition for form bean null
> what's wrong?
Try it without the ".do":
If
Do you have the action mapping defined for logon.do in your struts-config
file? what's it like?
BTW, just a friendly reminder, you probably don't want to use that email
id in this list, the audience are global. I happen to catch it and know
what it means :-(
thanks,
Saul
> hi folks,
> I have
The Struts architecture is *integrated*. The form bean is initialized
by the controller network because it is noted in the
struts-config.xml. You have two choices: (1) let the ForwardAction
know about the form bean and accept that it works that way; (2) look
at the actual code and see what really
Look in the archives. There's tons of stuff on this there.
I posted a full working example recently too.
|-+>
| | "viji.george"|
| | <[EMAIL PROTECTED]|
| | nd.com> |
| |
You can use the form bean in jsp through the various struts tags.
Struts puts the form bean in request scope automatically and thus all
you have to do to use form bean is by declaring the form bean in
tag
E.g suppose you had myactionform as the form bean which had an attribute
name(say it is str
//setting a property
" />
//getting a property
Of course you can use struts tags too like:
etc.
--- In [EMAIL PROTECTED], "Bussie, Andre D" <[EMAIL PROTECTED]>
wrote:
> Is it possible for a Form Bean to be used in a JSP if so how is it done?
> Any resources or examples demonstrating this.
> -Original Message-
> From: Bussie, Andre D [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 04, 2004 5:15 AM
> To: [EMAIL PROTECTED]
> Subject: Form Bean in JSP
>
>
> Is it possible for a Form Bean to be used in a JSP if so how
> is it done?
> Any resources or examples demonstrati
de where to send the user.
>
> robert
>
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of Muhammad Momin Rashid
> > Sent: Saturday, July 24, 2004 7:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Form Bean and decions bas
24, 2004 7:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Form Bean and decions based on Business Logic calls
>
>
> Ok, I guess thats fair enough to keep business logic calls limited to action
> classes only.
>
> How do you suggest I impliemnt the case where the user is sup
t; From: news [mailto:[EMAIL PROTECTED] Behalf Of Muhammad Momin Rashid
> > Sent: Thursday, July 22, 2004 12:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Form Bean and decions based on Business Logic calls
> >
> >
> > Thank you for your quick response.
> &g
day, July 22, 2004 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Form Bean and decions based on Business Logic calls
>
>
> Thank you for your quick response.
>
> I do have the appropriate action class with the desired forwards defined (as
> you have also outlined), but
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Muhammad
> Momin Rashid
> Sent: Thursday, July 22, 2004 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Form Bean and decions based on Business Logic calls
>
>
> Thank you for your quick r
Thank you for your quick response.
I do have the appropriate action class with the desired forwards defined (as
you have also outlined), but the problem is that the form bean itself is
making the business logic calls to get its desired data. Upon failure to
get the desired data, how can I forward
Define success and failure forwards in your struts-config file for the
specified action.
In the action class (which should delegate to a business object),
retrieve the data. Upon failure, forward to the "failure" forward,
else forward to the "success" forward.
You could achieve the same using de
Hello John,
have you tried
***
JM> Hi,
JM> I hope someone can help me get my head around a scoping question here.
JM> I have a multi-page wizard, used for purchasing. There are five pages in
JM> all and I'm trying to factor out a
utside an element.
Hope that is of some use.
Paul
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2004 01:26
> To: Struts Users Mailing List
> Subject: Re: Form bean scope question
>
>
> To what does this refer? You mu
Michael McGrady wrote:
The problem is that, no matter what that is causing the problem. The
error report tells you that is the problem. The problem is that you
are not seeing what the error tells you is not being seen. So, track
it back. If the "taglib" line is there, then the URI might be set
To what does this refer? You must be trying to find this but why?
At 02:18 AM 7/6/2004, you wrote:
org.apache.struts.taglib.html.BEAN
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The problem is that, no matter what that is causing the problem. The error
report tells you that is the problem. The problem is that you are not
seeing what the error tells you is not being seen. So, track it back. If
the "taglib" line is there, then the URI might be set wrong elsewhere or
Michael McGrady wrote:
Yes, this is the problem.
At 04:05 AM 7/6/2004, you wrote:
I have had a problem like this before and what I did is add the
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
in the included/inserted jsp pages.
Unfortunately it isn't. The necessary taglib line is there
/07/2004 06:24 AM
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject:Re: Form bean scope question
Classification:
Mark Lowe wrote:
> You may have stuff configured to process such re
Users Mailing List"
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject:Re: Form bean scope question
Classification:
Mark Lowe wrote:
> You may have stuff configured to process such requests but an out the
> box version of strut
Mark Lowe wrote:
You may have stuff configured to process such requests but an out the
box version of struts would probably need
to find a mapping such as
Yes, I do. It's actually all working perfectly, the only problem I'm
having is when I try to factor out the common HTML, as I mentioned.
J
You may have stuff configured to process such requests but an out the
box version of struts would probably need
to find a mapping such as
On 6 Jul 2004, at 10:46, John Moore wrote:
Mark Lowe wrote:
What does your mapping look like?
For the action in question:
John
--
Mark Lowe wrote:
What does your mapping look like?
For the action in question:
John
--
==
John Moore - Norwich, UK - [EMAIL PROTECTED]
==
---
What does your mapping look like?
On 6 Jul 2004, at 10:18, John Moore wrote:
Hi,
I hope someone can help me get my head around a scoping question here.
I have a multi-page wizard, used for purchasing. There are five pages
in all and I'm trying to factor out as much of the common stuff as
possible
62 matches
Mail list logo