Here it is - this is my way - a design pattern copied
from non-strus programs.

==========================
in your jsp
<html:hidden property="formName"
value="Form-EditUser"/>
===========================
in your action class
        EditUserForm thisForm = (EditUserForm) form;
        String formName = thisForm.getFormName();

        if (formName == null ||
!formName.equals("Form-EditUser")) {
                // Came from forward from another form
                // Display default form.
        } else { 
             // came from our form validate it.
        }
=====================
Keith.
--- Māris Orbidāns <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> >It's common to have code in your action class that
> >detects whether it was started from it's form being
> >posted or elsewhere. (lots of posts about how to
> test
> >for this). 
> 
> 
> How to do it ?
> 
> >If coming from elsewhere you just ignore
> >whatever values are in the formbean.
> >Does this help?
> 
> thanx a lot
> 
> 
> Maris
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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

Reply via email to