Proccessing parameters inside Struts action

2009-10-12 Thread Michael Varlik
Hi, I'm using a Struts2 action to devliver JSON data. This action is calleb by an Ajax HTTP request. Now, I need to send some parameter along with the request. The sending of the parameters works fine but I don't know how to access them from within the struts action. So my question is: what is

Adding Json to existing action

2009-10-27 Thread Michael Varlik
Hi, I need to call an existing struts action within my application from a JavaScript function. I thought it might be possible to create an additional entry in the struts mapping file like this: and then call the action with "getDataJson.action". Unfortunately, when I try this a NullPointerEx

Re: RE: Adding Json to existing action

2009-10-27 Thread Michael Varlik
t; > > >-Original Message- > >From: Struts Two [mailto:struts...@yahoo.ca] > >Sent: Tuesday, October 27, 2009 9:24 AM > >To: Struts Users Mailing List > >Subject: Re: Adding Json to existing action > > > >You can either use Json plugin or write

Re: RE: Adding Json to existing action

2009-10-27 Thread Michael Varlik
o not what I expected. I guess I have missed something. Since this is the first time I use struts, I have no idea what I did wrong. Any hints are appreciated. Cheers, Markus Original-Nachricht > Datum: Tue, 27 Oct 2009 16:09:25 +0100 > Von: "Michael Varlik" &g

Re: RE: Adding Json to existing action

2009-10-28 Thread Michael Varlik
that if you are using 2.1.7+]. > > To learn how to do that, take a look at the a sample provided in struts 2 > in action. That should do it as well. > > Hope this helps. > > > > > --- On Tue, 10/27/09, Michael Varlik wrote: > > > From: Michael Varlik &g

Re: RE: Adding Json to existing action

2009-10-28 Thread Michael Varlik
s Mailing List > Betreff: Re: RE: Adding Json to existing action > can you show us your action mapping and the relevant parts of your code? > > musachy > > On Tue, Oct 27, 2009 at 8:50 AM, Michael Varlik wrote: > > I just noticed a mistake I made. When adding the paramet