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:
<action name="getDataJson" class="com.mypackage.MyAction" method="getData"> <result type="json" /> </action> and then call the action with "getDataJson.action". Unfortunately, when I try this a NullPointerException occurs in the action code. It seems, some parameters are not properly initialized. What I'd like to know is: what is the recommendet way of calling an existing action to get JSON results? Is it a good idea to do this at all? Cheers, Markus -- Neu: GMX DSL bis 50.000 kBit/s und 200,- Euro Startguthaben! http://portal.gmx.net/de/go/dsl02 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org