OPS-App integration

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OPS-App integration

c.harder
Hi all,
I'm getting frustrated. ;-( The third day and I haven't found a way to integrate my ops-app in portal.
I'm using iframe for integration. Is there away to read attributes of jsp-request in ops-app? So that I can use in jsp "request.setAttribute("test","test");" and in custom-processor of ops-app "request.getAttribute("test");".
Can I pass the session of portal to ops-app?

Thanks
Clemens



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: OPS-App integration

c.harder
Yeahh!
Success! ;-))

jsp:
<iframe name="iframe" src="http://localhost:8080/ois/dvz3?userid=<%= request.getUserPrincipal()%>"></iframe>

ops-processor:
ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT);
HttpServletRequest request = (HttpServletRequest) externalContext.getNativeRequest();
String userid=request.getParameter("userid");

That's it. Request Posting by danc was a nice hint.

Feel free, if you know a better solution!

have a nice weekend
Clemens



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: OPS-App integration

Erik Bruchez
Administrator
Glad you found a solution!

-Erik

[hidden email] wrote:

> Yeahh!
> Success! ;-))
>
> jsp:
> <iframe name="iframe" src="http://localhost:8080/ois/dvz3?userid=<%= request.getUserPrincipal()%>"></iframe>
>
> ops-processor:
> ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT);
> HttpServletRequest request = (HttpServletRequest) externalContext.getNativeRequest();
> String userid=request.getParameter("userid");
>
> That's it. Request Posting by danc was a nice hint.
>
> Feel free, if you know a better solution!
>
> have a nice weekend
> Clemens


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws