Oleg,

Hi.  Thanks for the post.  The current file name is set in my action before the
page is called.  BUT, I want to give the user the option to change the filename,
and forward back to this action to display the filter for the new file.  Hence,
my action doesn't need to DO anything, which prompted my question (I just need
Struts to set the filename property in my form bean).

Any ideas whether this is possible, or do I need to have a dummy action for it?

Thanks,

Dave





Oleg V Alexeev <[EMAIL PROTECTED]> on 06/07/2001 12:57:10 AM

Please respond to [EMAIL PROTECTED]; Please
      respond to Oleg V Alexeev
      <[EMAIL PROTECTED]>

To:   "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Re: Can I have NO action?!



Hello dhay,

Thursday, June 07, 2001, 1:34:00 AM, you wrote:

dlc> Hi.  I have a form where I display the current filename, and allow them to
dlc> change it.  As such, I don't need to do anything in the action, just let
Struts
dlc> populate the form bean.

dlc> How do I go about this?  Do I need an action that does nothing in its
perform
dlc> method?  Or can I set things up so no action is needed at all?

What is the source of current filename? Do you retrieve it in your
form class? It is wrong solution if so.

Struts uses scheme with Action class (contains all logic to retrieve,
process and store data), ActionForm class (used to store values
between pages or actions and to validate it after submit), JSP-page as
view (to display values which was processed by Action class and stored
in session or request scope). According to this scheme you need to
implement action if you display by JSP any values fetched from
external source.

--
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]








Reply via email to