Matthew J. Vincent wrote:
Hey everyone!

I hope to not get flamed, but it's getting late here and I'm tired of looking through the archives. Should every Action have an associated ActionForm?
No. Only updateable actions need a formbean.

Is it a bad idea to read a parameter directly from the
request in the Action?

No.

I have a page where I need to show details for a
particular item in our database. People will be directed to this page via a url http://127.0.0.1/foo/bar.do?id=123.
If I need an ActonForm,
what's the best way to set this up in the struts-config.xml? Thoughts?

You don't need an action form.
in action get the parm id, create a pojo bean and put in scope.
(if you need to edit that, then you need a form bean, and you need to get a handle on to that bean)
.V

Thanks in advance!

Matt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to