All,

I know this question has been asked before, but I couldn't find the answer in the 
archive.

I would like to be able to selectively display an error, depending on what exactly it 
was. Here is the code from my validate method in my VacationFinderForm:

if (retCal.before(depCal))
    errors.add("returningMonthError", new 
ActionError("finder.error.returnbeforeleave"));

And in my JSP:
<logic:present name="vacationFinderForm" property="returningMonthError">
        <tr>
                <td colspan="2">
                        <pkghtml:error property="returningMonth" />
                </td>
        </tr>
</logic:present>

Without the <logic:present> tags everything works fine, except the display isn't what 
I need it to be. I think the problem lies in the arguments being passed to the 
logic:present tag, but I can't figure out what they should be.

Thanks in advance,

-= James

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

Reply via email to