A hyperlink is a get, and if coded correctly a get shouldn't have side
effects, and so at first blush validation might seem redundant.
Although, the struts controller doesn't distinguish between get and
post. If there is a validator associated with the course action, then
it would be called regardless of whether the request is coded as a
hyperlink or form. I note that the link takes a parameter, and if the
parameter is required to consummate the get, then validation would
seem appropriate.
HTH, Ted
<http://www.husted.com/ted/blog/>
On 4/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Should the Action class validator be getting called when a hyperlink is
clicked? This is the behavior I am experiencing. My hyperlink is coded as
follows:
<s:url id="url" action="course!remove">
<s:param name="course.id">
<s:property value="id" />
</s:param>
</s:url>
The hyperlink is outside the form tags!
--
Scott
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]