Mitesh K Agrawal wrote:Hi ,
As you are using struts 2 , definetlly you'll have struts.xml file where you can mention your desired action url, in which you can even mention which method of which Action class need to be called and which jsp need to be returned back as response.
Uh .... yes, of course I know I can change my struts.xml file and do this. But if I wanted a JSP, I would use normal Struts. I am trying to AVOID writing an entire jsp to the screen.
Let me explain how AJAX works: I make an AJAX call to the server, and the server sends me back some data. It does *NOT* send back a JSP.. It sends back some data that I can inject into the existing page without having to do a page refresh. That is the goal of AJAX, not writing a jsp file. All that works. So what I am trying to find out now is whether I can dynamically call a different method from my AJAX call rather than just calling execute. I can have the execute method examine the parameters I send to it, and based on the parameters, it can call a differenet method in its class, that I know. But can I dynamically call a different method? That's the question I am asking.
--Dennis