Good morning,
A question about struts2 + jquery form validation:
in jsp:
=========
<form>
... ... lots of tags
<s:submit action1 onclick="return check_action()">
<s:submit action2>
<s:submit action3>
</form>
If check_action returns false, action1 will never be called!
JAVA action
================
private InputStream inputStream;
check_action()
{
check tag1 against DB; //whether dup, wrong info etc
check tag2 against DB;
... ...
PrintWriter out = res.getWriter();
res.setContentType("text/html");
if(error)
{
out.println("<li>Error info</li>");
...
}
else
{
out.println(1);
}
out.flush();
return SUCCESS;
}
The part gives me headache is that how to submit hundreds of tags in the
form in JSP?
I do not want to use action?tag1=..&tag2=.. ... tag300=....
Is there a way, form values can be submit automatically?
Thanks a lot!
--
Lu Ying
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org