On 4/17/2018 6:42 AM, Burton Rhodes wrote:
> Also, How would I include everything except the email body field with the
> s:url tag?

Unfortunately, I couldn't find a simple way :(

However, as a workaround, instead, in your email form jsp, could you put
the email body field as a POST param and the rest short fields which
need validation as GET params (i.e. in a query string inside action url
using s:url)? Because then you can use <meta http-equiv="refresh"
content="3;url=<s:url includeParams="get"/>"/> which only counts GET
params i.e. only query string which doesn't include email body but
includes other validation needed fields.

But if I were you, I prefer to use two actions for such requirement.
action1 which doesn't have ExecAndWait interceptor but has others like
validation, gets form data and stores them as a single object inside
session with a unique key every-time i.e. a GUID. Then action1 redirects
to action2 and also passes that key to action2. action2 behaves like a
mail sender and only has ExecAndWait interceptor. action2 gets then
deletes data from session by that key and the rest is same as your
current single action :)

Regards.

Reply via email to