Wendy,
 
Here is the portion that defines the action:
 
        <action path="/submit" 
                type="segev.SubmitAction" 
                input="/submit.jsp" 
                name="submitForm"
                scope="request" 
                validate="true">
        <forward name="success" path="/submit.jsp"/>
        <forward name="failure" path="/submit.jsp"/>
       </action>

Obviously this definition does not make the initial action go through the 
'execute' method.  I don't know what changes are necessary here.  Any 
suggestions?
 
The starting page is index.jsp that looks like this:
 
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:redirect forward="submit"/>
 

Wendy Smoak <[EMAIL PROTECTED]> wrote:
From: "elisegev1" 
> Can anyone suggest why the 'execute' is never called before the
> initial display of the form?

What URL do you use to get the initial display of the form?

It sounds like you're allowing direct access to the JSP rather than forcing
everything to go through an Action. The system doesn't know that a certain
JSP 'belongs' to a certain Action. Many people use a separate 'setup'
action, I do it with DispatchActions that know to do different things based
on a request parameter.

-- 
Wendy Smoak


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




                
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.

Reply via email to