You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Muneer Malik <tu...@gmail.com> on 2011/03/15 01:36:33 UTC

JSON Plugin - my execute method is being called twice

Can someone help here? using the JSON plugin - my execute method is being
called twice.

Thanks

-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Re: JSON Plugin - my execute method is being called twice

Posted by Muneer Malik <tu...@gmail.com>.
also noticed:

6 times constructor called
2 time execute

This is when validation is true

DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax <init>- In
the constructor
DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax <init>- In
the constructor
DEBUG [http-8080-4] net.xxx.emr.workflow.action.insertHeparinAjax <init>- In
the constructor
DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax <init>- In
the constructor
DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax
customExecute- I am in the Heparin Code AJAX
DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax <init>- In
the constructor
DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax <init>- In
the constructor
DEBUG [http-8080-6] net.xxx.emr.workflow.action.insertHeparinAjax
customExecute- I am in the Heparin Code AJAX


On Mon, Mar 14, 2011 at 9:24 PM, Muneer Malik <tu...@gmail.com> wrote:

> If I don't use the sj:dialog (just regular form)
>
> and just the form with Ajax - its calling only once.
>
> but when validate is true, then the action is called multiple times.
>
> So believe something is definitely not right when used with validation and
> sj:submit being used inside dialog.
>
> Thanks
>
>
>
> On Mon, Mar 14, 2011 at 9:03 PM, Muneer Malik <tu...@gmail.com> wrote:
>
>> <s:form   action="insertHeparinAjax"   namespace="/patient/workflow"
>> method="post" id="formHeparinDialog" name="formHeparinDialog" theme="simple"
>> >
>>
>> <sj:submit
>>      targets="heparinResult"
>>      button="true"
>>      openDialog="heparinDialog"
>>      value="Authenticate And Save"
>>      indicator="heparin_indicator"
>>      id="heparinSubmit"
>>      validate="false"
>>      formIds="formHeparinDialog"
>>  onSuccessTopics="successHeparinDialog"
>>
>>      />
>>
>>
>> its the same action configured !
>>
>> Best,
>> Muneer
>>
>>
>> On Mon, Mar 14, 2011 at 8:58 PM, satyanarayana katta <
>> saty.prasad@gmail.com> wrote:
>>
>>> Check if the action is submitted twice!  If you are using js submit of
>>> the form explicitly and form tag also has the same action configured.
>>>
>>> Sent from my iPhone
>>>
>>> On Mar 14, 2011, at 6:45 PM, frans@meruvian.org wrote:
>>>
>>> > We got current json plugins also have problem parse json
>>> >
>>> > I think the json jar is the current issue
>>> >
>>> > We modify to use jackson
>>> >
>>> > Anyone?
>>> >
>>> > The actionmapper using jackson we put in github.com/blueoxygen/cimande
>>> >
>>> >
>>> > /m/
>>> >
>>> > -----Original Message-----
>>> > From: Muneer Malik <tu...@gmail.com>
>>> > Date: Mon, 14 Mar 2011 19:36:33
>>> > To: Struts Users Mailing List<us...@struts.apache.org>
>>> > Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>>> > Subject: JSON Plugin - my execute method is being called twice
>>> >
>>> > Can someone help here? using the JSON plugin - my execute method is
>>> being
>>> > called twice.
>>> >
>>> > Thanks
>>> >
>>> > --
>>> > Confidentiality Notice
>>> > -------------------------------
>>> >
>>> >
>>> > THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
>>> > CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
>>> > DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED
>>> RECIPIENT, OR
>>> > THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
>>> > INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
>>> > DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.
>>>  IF YOU
>>> > HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
>>> > tutti786@gmail.com OR BY TELEPHONE AT <817-458-1764> <817-458-1764>
>>> 817-458-1764.
>>> >
>>> >
>>> > THANK YOU.
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>>
>> --
>> Confidentiality Notice
>> -------------------------------
>>
>>
>> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
>> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
>> DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
>> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
>> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
>> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
>> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
>> tutti786@gmail.com OR BY TELEPHONE AT <817-458-1764>817-458-1764.
>>
>>
>> THANK YOU.
>>
>
>
>
> --
> Confidentiality Notice
> -------------------------------
>
>
> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
> DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
> tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.
>
>
> THANK YOU.
>



-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Re: JSON Plugin - my execute method is being called twice

Posted by Rodrigo Esteban Cares Guarda <rc...@gmail.com>.
Yes, you can try this.

Greetings

El mar, 15-03-2011 a las 10:16 -0500, Muneer Malik escribió:
> You mean have all your action logic in getJSON?
> 
> 
> 
> On Tuesday, March 15, 2011, Rodrigo Esteban Cares Guarda
> <rc...@gmail.com> wrote:
> > Hi,
> > if you have the method "execute" and "getJSON" in your action class, try
> > comment the "execute" method.
> >
> > Greetings
> >
> > El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppert escribió:
> >> if you are using validation it is normaly that you get two requests.
> >> the first request is for validation and the second is the expected request.
> >>
> >> Johannes
> >>
> >> --
> >> View this message in context: http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >
> > --
> > Rodrigo Esteban Cares Guarda
> > Egresado Ingeniería Civil Informática
> > Universidad Austral de Chile
> > 1º GUP Taekwondo WTF
> > Fono: (09) 98364117
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 

-- 
Rodrigo Esteban Cares Guarda <rc...@gmail.com>


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


Re: JSON Plugin - my execute method is being called twice

Posted by Muneer Malik <tu...@gmail.com>.
You mean have all your action logic in getJSON?



On Tuesday, March 15, 2011, Rodrigo Esteban Cares Guarda
<rc...@gmail.com> wrote:
> Hi,
> if you have the method "execute" and "getJSON" in your action class, try
> comment the "execute" method.
>
> Greetings
>
> El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppert escribió:
>> if you are using validation it is normaly that you get two requests.
>> the first request is for validation and the second is the expected request.
>>
>> Johannes
>>
>> --
>> View this message in context: http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> --
> Rodrigo Esteban Cares Guarda
> Egresado Ingeniería Civil Informática
> Universidad Austral de Chile
> 1º GUP Taekwondo WTF
> Fono: (09) 98364117
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED
RECIPIENT, OR THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS
MESSAGE TO THE INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY
DISSEMINATION, DISTRIBUTION OR COPYING OF THE COMMUNICATION IS
STRICTLY PROHIBITED.  IF YOU HAVE RECEIVED THIS COMMUNICATION IN
ERROR, PLEASE NOTIFY IMMEDIATELY AT tutti786@gmail.com OR BY TELEPHONE
AT 817-458-1764.


THANK YOU.

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


Re: JSON Plugin - my execute method is being called twice

Posted by Rodrigo Esteban Cares Guarda <rc...@gmail.com>.
Hi, 
if you have the method "execute" and "getJSON" in your action class, try
comment the "execute" method.

Greetings

El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppert escribió:
> if you are using validation it is normaly that you get two requests. 
> the first request is for validation and the second is the expected request.
> 
> Johannes
> 
> --
> View this message in context: http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

-- 
Rodrigo Esteban Cares Guarda
Egresado Ingeniería Civil Informática
Universidad Austral de Chile
1º GUP Taekwondo WTF
Fono: (09) 98364117


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


Re: JSON Plugin - my execute method is being called twice

Posted by Johannes Geppert <jo...@apache.org>.
if you are using validation it is normaly that you get two requests. 
the first request is for validation and the second is the expected request.

Johannes

--
View this message in context: http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Re: JSON Plugin - my execute method is being called twice

Posted by Muneer Malik <tu...@gmail.com>.
If I don't use the sj:dialog (just regular form)

and just the form with Ajax - its calling only once.

but when validate is true, then the action is called multiple times.

So believe something is definitely not right when used with validation and
sj:submit being used inside dialog.

Thanks



On Mon, Mar 14, 2011 at 9:03 PM, Muneer Malik <tu...@gmail.com> wrote:

> <s:form   action="insertHeparinAjax"   namespace="/patient/workflow"
> method="post" id="formHeparinDialog" name="formHeparinDialog" theme="simple"
> >
>
> <sj:submit
>      targets="heparinResult"
>      button="true"
>      openDialog="heparinDialog"
>      value="Authenticate And Save"
>      indicator="heparin_indicator"
>      id="heparinSubmit"
>      validate="false"
>      formIds="formHeparinDialog"
>  onSuccessTopics="successHeparinDialog"
>
>      />
>
>
> its the same action configured !
>
> Best,
> Muneer
>
>
> On Mon, Mar 14, 2011 at 8:58 PM, satyanarayana katta <
> saty.prasad@gmail.com> wrote:
>
>> Check if the action is submitted twice!  If you are using js submit of the
>> form explicitly and form tag also has the same action configured.
>>
>> Sent from my iPhone
>>
>> On Mar 14, 2011, at 6:45 PM, frans@meruvian.org wrote:
>>
>> > We got current json plugins also have problem parse json
>> >
>> > I think the json jar is the current issue
>> >
>> > We modify to use jackson
>> >
>> > Anyone?
>> >
>> > The actionmapper using jackson we put in github.com/blueoxygen/cimande
>> >
>> >
>> > /m/
>> >
>> > -----Original Message-----
>> > From: Muneer Malik <tu...@gmail.com>
>> > Date: Mon, 14 Mar 2011 19:36:33
>> > To: Struts Users Mailing List<us...@struts.apache.org>
>> > Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>> > Subject: JSON Plugin - my execute method is being called twice
>> >
>> > Can someone help here? using the JSON plugin - my execute method is
>> being
>> > called twice.
>> >
>> > Thanks
>> >
>> > --
>> > Confidentiality Notice
>> > -------------------------------
>> >
>> >
>> > THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
>> > CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
>> > DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT,
>> OR
>> > THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
>> > INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
>> > DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF
>> YOU
>> > HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
>> > tutti786@gmail.com OR BY TELEPHONE AT <817-458-1764>817-458-1764.
>> >
>> >
>> > THANK YOU.
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> Confidentiality Notice
> -------------------------------
>
>
> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
> DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
> tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.
>
>
> THANK YOU.
>



-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Re: JSON Plugin - my execute method is being called twice

Posted by Muneer Malik <tu...@gmail.com>.
<s:form   action="insertHeparinAjax"   namespace="/patient/workflow"
method="post" id="formHeparinDialog" name="formHeparinDialog" theme="simple"
>

<sj:submit
     targets="heparinResult"
     button="true"
     openDialog="heparinDialog"
     value="Authenticate And Save"
     indicator="heparin_indicator"
     id="heparinSubmit"
     validate="false"
     formIds="formHeparinDialog"
onSuccessTopics="successHeparinDialog"

     />


its the same action configured !

Best,
Muneer


On Mon, Mar 14, 2011 at 8:58 PM, satyanarayana katta
<sa...@gmail.com>wrote:

> Check if the action is submitted twice!  If you are using js submit of the
> form explicitly and form tag also has the same action configured.
>
> Sent from my iPhone
>
> On Mar 14, 2011, at 6:45 PM, frans@meruvian.org wrote:
>
> > We got current json plugins also have problem parse json
> >
> > I think the json jar is the current issue
> >
> > We modify to use jackson
> >
> > Anyone?
> >
> > The actionmapper using jackson we put in github.com/blueoxygen/cimande
> >
> >
> > /m/
> >
> > -----Original Message-----
> > From: Muneer Malik <tu...@gmail.com>
> > Date: Mon, 14 Mar 2011 19:36:33
> > To: Struts Users Mailing List<us...@struts.apache.org>
> > Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> > Subject: JSON Plugin - my execute method is being called twice
> >
> > Can someone help here? using the JSON plugin - my execute method is being
> > called twice.
> >
> > Thanks
> >
> > --
> > Confidentiality Notice
> > -------------------------------
> >
> >
> > THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
> > CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
> > DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT,
> OR
> > THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
> > INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
> > DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF
> YOU
> > HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
> > tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.
> >
> >
> > THANK YOU.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Re: JSON Plugin - my execute method is being called twice

Posted by satyanarayana katta <sa...@gmail.com>.
Check if the action is submitted twice!  If you are using js submit of the form explicitly and form tag also has the same action configured.

Sent from my iPhone

On Mar 14, 2011, at 6:45 PM, frans@meruvian.org wrote:

> We got current json plugins also have problem parse json
> 
> I think the json jar is the current issue
> 
> We modify to use jackson
> 
> Anyone?
> 
> The actionmapper using jackson we put in github.com/blueoxygen/cimande
> 
> 
> /m/
> 
> -----Original Message-----
> From: Muneer Malik <tu...@gmail.com>
> Date: Mon, 14 Mar 2011 19:36:33 
> To: Struts Users Mailing List<us...@struts.apache.org>
> Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> Subject: JSON Plugin - my execute method is being called twice
> 
> Can someone help here? using the JSON plugin - my execute method is being
> called twice.
> 
> Thanks
> 
> -- 
> Confidentiality Notice
> -------------------------------
> 
> 
> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
> DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
> tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.
> 
> 
> THANK YOU.
> 

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


Re: JSON Plugin - my execute method is being called twice

Posted by Muneer Malik <tu...@gmail.com>.
ok - my observation


if I use the sj:submit by itself then the JSON plugin is called only once
(confirmed from Chrome developer tool).
IF I add the sj:submit inside the sj:dialog - it is called twice
IF I add the validation then it is called 6 times

it seems like the sj: tags is creating issues

can we get this checked out?

Thanks

On Mon, Mar 14, 2011 at 8:45 PM, <fr...@meruvian.org> wrote:

> We got current json plugins also have problem parse json
>
> I think the json jar is the current issue
>
> We modify to use jackson
>
> Anyone?
>
> The actionmapper using jackson we put in github.com/blueoxygen/cimande
>
>
> /m/
>
> -----Original Message-----
> From: Muneer Malik <tu...@gmail.com>
> Date: Mon, 14 Mar 2011 19:36:33
> To: Struts Users Mailing List<us...@struts.apache.org>
> Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
> Subject: JSON Plugin - my execute method is being called twice
>
> Can someone help here? using the JSON plugin - my execute method is being
> called twice.
>
> Thanks
>
> --
> Confidentiality Notice
> -------------------------------
>
>
> THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
> CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
> DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
> THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
> INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
> DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF
> YOU
> HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
> tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.
>
>
> THANK YOU.
>
>


-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.


THANK YOU.

Re: JSON Plugin - my execute method is being called twice

Posted by fr...@meruvian.org.
We got current json plugins also have problem parse json

I think the json jar is the current issue

We modify to use jackson

Anyone?

The actionmapper using jackson we put in github.com/blueoxygen/cimande


/m/

-----Original Message-----
From: Muneer Malik <tu...@gmail.com>
Date: Mon, 14 Mar 2011 19:36:33 
To: Struts Users Mailing List<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: JSON Plugin - my execute method is being called twice

Can someone help here? using the JSON plugin - my execute method is being
called twice.

Thanks

-- 
Confidentiality Notice
-------------------------------


THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY
CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM
DISCLOSURE UNDER APPLICABLE LAW.  IF YOU ARE NOT THE INTENDED RECIPIENT, OR
THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION,
DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED.  IF YOU
HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT
tutti786@gmail.com OR BY TELEPHONE AT 817-458-1764.


THANK YOU.


Re: JSON Plugin - my execute method is being called twice

Posted by Brian Thompson <el...@gmail.com>.
On Mon, Mar 14, 2011 at 8:03 PM, Dave Newton <da...@gmail.com> wrote:

> On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik <tu...@gmail.com> wrote:
> > Can someone help here? using the JSON plugin - my execute method is being
> > called twice.
>
> So far, it sounds like it's being called twice for some reason.
>
> Any other information available?
>
> Dave
>


Probably, but I'd almost be willing to put money on it being PRIVILEGED,
CONFIDENTIAL AND EXEMPT FROM DISCLOSURE :P

Brian

Re: JSON Plugin - my execute method is being called twice

Posted by Dave Newton <da...@gmail.com>.
On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik <tu...@gmail.com> wrote:
> Can someone help here? using the JSON plugin - my execute method is being
> called twice.

So far, it sounds like it's being called twice for some reason.

Any other information available?

Dave

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