Skip to Content
author's profile photo Former Member
Former Member

Open the new window by using window.open

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 14, 2005 at 06:58 AM

    Hi,

    >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

    >instantiated?

    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.

    regards

    Thomas

    Message was edited by: Thomas Ritter

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 07:40 AM

    Hai,

    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.

    Regards,

    venkatesh.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.