Hello,

W dniu 26 lipca 2011 16:13 użytkownik Emi Lu<em...@encs.concordia.ca>  napisał:
It seems that I found the problem. When I commented out ajax section
"onclick="return ajax_check_search_table('check_search_opr')"", the error is
gone. But I need ajax check support.

Did you try to call check_search_oprProcessAction.action directly ?
And maybe it's better to JSON plugin instead of home made protocol ?

Situation is:
=====================
(1) a.jsp
 part1 -> search form
 part2 => huge calculation in ActionClass.java;
          results are shown by using displaytag


(2) Checks are needed in part1, but I need avoid calculation in part2.

   Moreover, a.jsp only part1 will be reloaded, but not the whole page.

   pa...@a.jsp calls method1 in ActionClass.java


(3) JSON/jquery sj:submit seems does not support "action" parameter, it could not dispatch to another method, isn't ?

<sj:submit targets="result"
  button="true"
  validate="true"
  validateFunction="customeValidation"
  onBeforeTopics="removeErrors"
  onSuccessTopics="removeErrors"
  value="Submit"
  indicator="indicator"
action="method1ProcessActionClass" //does not dispatch! while s:submit works
/>



Could you suggest a good way?
====================================
(1) Do not reload whole jsp
(2) Calculation must be done through ActionClass.java (extends ActionSupport) The calculation is through database queries, so have to be done through action class.

According to the check results, display error message to users through pa...@a.jsp

 Only if no error return, part2 will be calculated and reloaded.

Thanks alot!
Emi





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to