[email protected] wrote:
I'm trying to use the #saction tag where I pass a parameter into the action being called. (Struts 2, Velocity 1.5)

Like this:

#saction( "id=vehicleAction" "namespace=/admin/fleet/vehicle" "name=search" "executeResult=true")
#sparam("name=when" "value=now")
#end

I'd guess that due to Velocity issues the action tag is an inline tag (i.e., won't work with an #end). AFAIK only a few tags are multiline, like form.

The source seems to confirm my suspicion. The issue is that the directives have to define up-front if they're inline or multiline, so for "convenience" most of the Velo tags are declared inline to handle the most common use-cases.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to