I use the javascipt 'window.open' to open a new window. I pass the controller name (XXX.do) to the paramerter 'name'. When I want to pass a parameter to XXX.do, I can pass it like this.
name = "XXX.do?key=11"
However, is it possible to pass an internal table or a model class to the XXX.do by this way?
Moreover, I would like to another question for my knowledge. Everytime when I call this function 'window.open', how can the controller class be instantiated?
>However, is it possible to pass an internal table or a
>model class to the XXX.do by this way?
That is not possible. When you need a data source which can accessed by more than one controller use an application class.
>Moreover, I would like to ask another question for my
>knowledge. Everytime when I call this
>function 'window.open', how can the controller class be
The controller will always be instantiated by the MVC framework. Furthermore when your application is stateful the controller will be cached, of course. So everytime the controller is called from a web browser the framework will load the cached version or if it is a stateful application instantiate a new one.
Message was edited by: Thomas Ritter
It is not possible to send an interal table in the URL as there is limit to the number of character that u send in the URL around 255 chars,
You can go by storing the internal table in the serverside cookie, from the caller application and retive it from the called application.
There is no limit to the size of the data you store in the internal table.