Dave Newton wrote:
--- Mansour <[EMAIL PROTECTED]> wrote:
I didn't know that I can use hidden fields to pass objects back.

You can't. All you can get back from an HTML form is a
string. That's just the way HTML works.

In other words, you mean what ever goes in the
constructor of the action, goes into the Preparable.

The bottom line, is it's useless then. Just one more

fancy term to add the framework. right?

Wrong, but my fault because in haste I described it
wrong. By looking at the JavaDocs for either of the
interfaces you mentioned you would have seen that I
was wrong pretty quickly.

NO, it's not your fault. It's my fault that I trusted you and took your word. (just kidding) :)

>From Preparable:

"Preparable Actions will have their prepare() method
called if the PrepareInterceptor is applied to the
ActionConfig."

About built-in XWork type conversion, I had a quick look at the tutorial for type conversion and I don't

think that's what I want.

It depends on what you're trying to do, which would be
something you'll want to elucidate if you want more
effective help.

As far as I can tell you want to pass the ID of an
object in either a URL or a form then use that ID in
an action to retrieve the object and do whatever you
need to do with it.

Did the CRUD tutorial not give you the information you
think you need? It's not clear to me where you're
having issues; form and parameter handling is pretty
well covered in both the wiki and the sample apps.

Yes, it gave me most of the information I need. So, in order to retrieve an object to perform an operation on it, I have to write a DAO. Well, I wasn't really looking froward for this adventure. I thought there's a way like .net of jsf to store the object in the session and retrieve when needed. But it turned out that I have to add some more pages to bookmarks to read about the DAO and how to write them. Unless you have an advice.



d.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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

Reply via email to