I wrote these
http://www.niallp.pwp.blueyonder.co.uk
Niall
- Original Message -
From: Pradeep, PK [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 7:22 AM
Subject: RE: Action form
Hi,
It first seemed
I think you are searching for DynaActionForm.
Take a look at http://www.reumann.net/do/struts/lesson3/step4
I personally don't like them because of debug difficulties.
Regards,
Guido.
Pradeep, PK wrote:
Is it mandatory to create ActionForm class for each JSP if we want to
send the form data to
there be separate physical class file or equivalent config
in the struts-config file??
Warm Regards,
Pradeep Kumar
-Original Message-
From: Guido García Bernardo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 9:28 PM
To: Struts Users Mailing List
Subject: Re: Action form
I think you
Hi
Something like that (taken from the Struts example) should work.
private String page = /action.do;
pageContext.forward(page);
Kind regards
Dennis Hunziker
-Original Message-
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 25. November 2003 12:47
To: Struts Users
.
Is this something possible
Thanks
Gary
- Original Message -
From: Hunziker Dennis [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 5:23 PM
Subject: RE: ACtion Form within an ACtion
Hi
Something like that (taken from the Struts example) should
the Action1 itself.
Is this something possible
Thanks
Gary
- Original Message -
From: Hunziker Dennis [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 5:23 PM
Subject: RE: ACtion Form within an ACtion
Hi
Something like that (taken from
That hits on some points, I did read that thread earlier this week(I'll
even read it again), and I'm starting to agree on not shoving everything
in the ActionForm, but I don't recall it hitting on an Action needing
one form for input and one form for output. If I totally ignore it, the
second
What you can do is make your action forward a redirect in the mapping,
so that the browser is told to make a new request to that mapping. Then
you can specify the form in your new mapping and struts takes care of it
all.
You just have to watch out for request parameters - that info will get
be reserved for the business
tier and not the presentation tier.
robert
-Original Message-
From: Michael Thompson [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 5:43 PM
To: Struts Users Mailing List
Subject: Re: Action Form Design Question
Thanks Robert!
I agree
.
What I would stress is let Struts do its job where possible - like
creating action forms.
robert
-Original Message-
From: Michael Thompson [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 20, 2003 11:09 AM
To: Struts Users Mailing List
Subject: Re: Action Form Design Question
Thompson [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 20, 2003 11:09 AM
To: Struts Users Mailing List
Subject: Re: Action Form Design Question
//
///
//I've been having issues
be reserved for the business
tier and not the presentation tier.
robert
-Original Message-
From: Michael Thompson [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 5:43 PM
To: Struts Users Mailing List
Subject: Re: Action Form Design Question
Thanks Robert!
I agree
This was discussed earlier this week.
Some solutions are addressed here:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg81101.html
robert
-Original Message-
From: Michael Thompson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 6:10 PM
To: struts-user
/
//I've been having issues with posting to this list, so I apologize if
this is a repost.
Personally, I've tried to stay away from putting data in the ActionForm
that isn't related to an actual form submission value. So if I have a
drop down with a list of countries for the user to choose, the list of
countries goes into the request attributes and the single choosen
country value
! :-)
-Original Message-
From: K.C. Baltz [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 5:16 PM
To: Struts Users Mailing List
Subject: Re: Action Form Design Question
Personally, I've tried to stay away from putting data in the ActionForm
that isn't related to an actual form
Ray Madigan wrote:
I have a form that has elements that I do not know the names of ahead
of time.
I want to have struts scrape the form into a map so the key is the name
of the element and the value is the value of the element when it was
submitted.
I looked for an action form that acted like
Read the mapped properties section here:
http://jakarta.apache.org/struts/faqs/indexedprops.html
David
From: Ray Madigan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Action Form: HashMap
Date: Thu, 5 Jun 2003
: Thursday, June 05, 2003 1:40 AM
Subject: RE: Action Form Bean required ???
Dear Andrew,
Could u please send me your struts-config.xml file that you configure for
some of your screens not to use form bean ??? I tried many times but not
successful :(
Thanks and Best Regards,
TRANBAONGUYEN
Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 4:03 AM
To: Struts Users Mailing List
Subject: Re: Action Form Bean required ???
Ba?o, what kind of problem do you see? Here is example of action without
actionForm
action path=/nextYearReport scope=request
type
June 2003 16:22
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???
My struts-config.xml:
action
path=/Welcome
type=org.apache.struts.actions.ForwardAction
parameter=/pages/Welcome.jsp/
action
path=/logon
}'/
/c:forEach
...
/thml:form
When I look at the form in my DispatchAction map is always empty.
Any help would be appreciated!
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 11:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Action Form: HashMap
, 2003 9:37 AM
Subject: RE: Action Form: HashMap
OK, I made the following changes, and it didn't do what I expected.
HELP!
I added to the ActionForm:
/**
* The form HashMap
*/
private HashMap map = new HashMap ( );
public Object getStringMapped ( String key
? Is this correct, or am i confused?
I appreciate your help!
-Original Message-
From: Zhu He [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 7:04 AM
To: Struts Users Mailing List
Subject: Re: Action Form: HashMap
if you are using map backed actionForm, make sure getXXX() setXXX() where
XXX
Mailing List [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 10:23 AM
Subject: RE: Action Form: HashMap
I tried this and it also didn't work. The get and set methods do not
call the HashMap directly, cause a HashMap uses get and put.
The geters and setters that I supply are the interface
. Is there anything else I have to do
to make the HashMap work? Like use a different Base Form class?
This seems easy enough? I'm losing my mind!
-Original Message-
From: Zhu He [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 8:13 AM
To: Struts Users Mailing List
Subject: Re: Action Form: HashMap
PROTECTED]
Sent: Friday, June 06, 2003 11:54 AM
Subject: RE: Action Form: HashMap
Thanks for your response. It still doesn't work. I looked at the page
you refered me to and the HashMap is names values and the getter/setter's
are named getValue, and setValue. Is the s at the end of the map name
, 2003 4:04 PM
To: Struts Users Mailing List
Subject: Re: Action Form: HashMap
if you are using map backed actionForm, make sure getXXX() setXXX()
where
XXX matches the name of the map.
In you case function names should be getMap() setMap()
- Original Message -
From: Ray Madigan [EMAIL PROTECTED
To: 'Struts Users Mailing List'
Subject: RE: Action Form: HashMap
Try looking at the source of the generate page. See that all looks
correct. I am also not sure if leading spaces between the name of the
property name 'stringMapped' and the () chars are legal...
-- Erez
-Original Message-
From
PROTECTED]
Sent: Friday, June 06, 2003 10:31 AM
To: 'Struts Users Mailing List'
Subject: RE: Action Form: HashMap
I mean the HTML view source after the page has been generated. I am
working with the Mapped Properties methods and it works fine so hang on
there, it will work at the end
On Fri, 6 Jun 2003, Ray Madigan wrote:
I am using frames so i can't look at the source.
For Netscape, IE, and Mozilla, right click inside the frame ... you'll be
amazed at what you can actually do :-).
Craig
-
To
Well I am glad it works now... and all I can say is that SPACE problems
are truly invisible sometimes :)
-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 6:49 PM
To: Struts Users Mailing List
Subject: RE: Action Form: HashMap
I am using frames
: RE: Action Form: HashMap
Well I am glad it works now... and all I can say is that SPACE problems
are truly invisible sometimes :)
-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 6:49 PM
To: Struts Users Mailing List
Subject: RE: Action Form
: Wednesday, June 04, 2003 6:42 PM
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???
I am doing this for some of my screens - these being the listview screens -
where Im not taking in much in the way of info from the user, and hadnt
bothered to create an actionForm but just grabbed
June 2003 16:40
To: Struts Users Mailing List
Subject: RE: Action Form Bean required ???
Dear Andrew,
Could u please send me your struts-config.xml file that you configure for
some of your screens not to use form bean ??? I tried many times but not
successful :(
Thanks and Best Regards
error happens as in my
mail with subject: SOS. How to solve this problem
Pls help me if you have any experience ab this.
Thanks
TRan
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 3:52 PM
To: Struts Users Mailing List
Subject: RE: Action Form
You could access all of the form properties in your Action with
request.getParameter(paramName); but why would you ever do that? Using
the rest of the framework without FormBeans is like pushing your car
down the street instead of just starting the engine
Tran Nguyen Thanh Bao wrote:
Dear
needs file
upload...
-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 19:20
To: Struts Users Mailing List
Subject: Re: Action Form Bean required ???
You could access all of the form properties in your Action with
request.getParameter(paramName
check out the struts validation framework - there's a developer guide
on the Struts pages, and loads of info in books, on the archives,
etc.
HTH,
-jeff
On Monday, March 31, 2003, at 02:32 AM, Riyaz Mansoor wrote:
hi
consider an integer field in an action form
private int A = -1;
public void
Don't do that. Make all your form fields strings, use the validator plug
in, and convert from String to other type in your Action class. One good
reason to do this is that if the user were to type ouch in an Integer
field, it would be impossible to even tell them that ouch wasn't a valid
value
I don't understand.
I thought the Validation framework would check for Integer in an Integer field, then
return the appropriate message.
-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:41 PM
To: Struts Users Mailing List
Subject: Re: action
.
In the validator docs somewhere (and certainly in Programming Jakarta
Struts) it says to always use string fields in your actionforms, because
it's more flexible.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:58 AM
Subject: RE: action
Subject: Re: Action Form Design Problem
Does session propagate to the pop-up window and vice-versa?
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 1:47 PM
Subject: Re: Action Form Design Problem
Treat it as a multi-page form
Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Action Form Design Problem
Date: Wed, 19 Mar 2003 13:42:19 +0530
Yes, session propagates to child window. The problem is, if we have
single form bean for all the data, then the data is not logically
structured
Treat it as a multi-page form. Store the form bean in the session and have
both pages store their data in the same form bean. Your final submit action
will then have access to all the data.
David
From: Amit Keshav Kulkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL
Does session propagate to the pop-up window and vice-versa?
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 1:47 PM
Subject: Re: Action Form Design Problem
Treat it as a multi-page form. Store the form bean in the session
There are a few possibilities
* your bean (form-bean or other) does not have a property called
seriesnumber. Case is very important. Struts is looking for a
method named getSeriesnumber(). Make sure you have such a
method and that it is public
* the tag that is causing this error isn't
That's not a class, it's a value setup within the framework to store
beans in the request/session/whatever you told it to.
(Specifically, it is in org.apache.struts.taglib.html.Constants)
...
...
/**
* The name of this package.
*/
public static final String Package =
Because by default,
the html:form name
parameter is set to org.apache.struts.taglib.html.BEAN
which also defaults to your bean. You could alternatively name your form bean in the
html:form element
Regards,
Mark
*** REPLY SEPARATOR ***
On 02/28/2003 at 5:54 PM Alex
Because it doesn't matter what the name of your bean is. Stuts always
sets it as an attribute in your selected scope. The name of that
attribute happens to be org.apache.struts.taglib.html.BEAN.
if you were to call getClass() on that bean, you would see your class.
disclaimer
I think that is
Minor correction...It should have been,
Let us take the fruit example.
pardon my grammar
hemant
- Original Message -
From: hemant
To: struts
Cc: Sanjay Pamidiparti
Sent: Friday, June 21, 2002 11:12 AM
Subject: Action Form Dictating Value Objects?
Comrades,
Let
That is exactly what is happening, as is it is designed since all form beans
are singletons. but when you declare your bean in session (or
application/context) scope, the container will remember the data, even
though your bean is reset.
Mark
-Original Message-
From: Schmidt, Carl
Hi Hunt,
can be done in many ways..
one way being
generate errors in ActionForm but dont display in the jsp page by simple
skipping the html:errors/ tag from the file..
hope this is of some help
Anand
On Mon, Jan 29, 2001 at 04:24:37PM -0800, John Hunt wrote:
If a person invokes a ActionServlet
53 matches
Mail list logo