Hello,

How can I get the session from my main application to the application in the
iframe? here is the scenario:

1. I have a large wicket application then we agree to separate the reporting
from main application.
2. The said report application is also a wicket and jasper but embedded into
iframe.

eg. class TestIframePage extends WebPage {

      publiuc TestIframePage() {
      
       final String reportServerUrl =
"http://localhost:8282/reports?reportname=";;
        
        final StringBuilder build = new StringBuilder();
        build.append(reportServerUrl).append(getReportName());
        
        final WebMarkupContainer wmc = new WebMarkupContainer("wmc");
        wmc.add(new SimpleAttributeModifier("src",build.toString()));
        add(wmc);

  }

   @Override
    public String getReportName()
    {
        return reportName;
    }

}

...and the html file is.....

TestIframePage.html

<html>
    <head>
        <title>Reports</title>
    </head>
    <body>
                
                        <iframe wicket:id="wmc" width="500" height="500">
                
                </iframe>
                
    </body>
</html>

3. As of now it's working fine...now the problem is I want the main
application session will be passed to report application in the iframe. So
that i can authenticate the user from the main application. You, might said
that I could pass using parameter but we already discuss that but for
security reason we cannot pass it through paramater. I have to securely get
the session or paramaters from main application to iframe application.

Any idea.

Thanks a lot.
Cheers.

-- 
View this message in context: 
http://www.nabble.com/Wicket-%2B-iframe-Session-Question-tp22218613p22218613.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to