Hello All I am using following construct to generate AJAX endpoint in a portlet application (JSR-286 based).
<s:url action="/CaseTaskPortlet/view/ScrollingAction.nextRecords" portletUrlType="resource" id="nextURL" /> I have a form field to be carry forward on multiple pages and it started coming as array. While troubleshooting, I noticed that request is bringing this value twice. Also in AJAX call from jQuery function I ensured that data getting submitted has only one value. I investigated it further and then I found that generated url, is capturing values from the action stack. And it carry forward old value stack to next values. Now I dont want to carry forward these values, what are my options? I tried includeContext="false", and includeParams="none", both didn't give me desired results. Can someone please help me to "not to include values from the old stack"? Here is example of what is happening: *First request execution * [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Key : struts.portlet.mode [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Value : Values : 0 view [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Key : selectedOfficeCode [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Value : Values : 0 CO [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Key : struts.portlet.action [3/12/14 15:16:48:572 PDT] 00000023 SystemOut O Value : Values : 0 /CaseTaskPortlet/view/CaseTaskPortlet/view/TaskViewAction.navigateToApplications *Second request execution * 3/12/14 15:16:56:555 PDT] 00000023 SystemOut O +++++++++++++++++ Resource Request +++++++++++++++++++++ [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : pagingBean.commandTypeCode [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 taskViewCMD [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : struts.portlet.mode [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 view 1 view [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : pagingBean.pageSize [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 20 [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Key : selectedOfficeCode [3/12/14 15:16:56:555 PDT] 00000023 SystemOut O Value : Values : 0 CO 1 CO [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Key : struts.portlet.action [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Value : Values : 0 /CaseTaskPortlet/view/CaseTaskPortlet/view/ScrollingAction.nextRecords 1 /CaseTaskPortlet/view/CaseTaskPortlet/view/TaskViewAction.navigateToApplications [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Key : pagingBean.officeCode [3/12/14 15:16:56:556 PDT] 00000023 SystemOut O Value : Values : 0 CO *Thanks & Regards/ **सादर**,* *Gaurav Daga* *[email protected] <[email protected]> | +1.201.308.3242 | Web Presence <http://goo.gl/lW0nh> * Do not follow where the path may lead. Go instead where there is no path and leave a trail. - Harold R. McAlindon
