on 05-19-2006 9:04 AM
Hello everybody,
in a normal java web application you have the possibility
to put an object into the servlet context.
This object is visible for all sessions(e.g. some configurations or global settings for the
web application).
Now my question:
Is there a possibility in a WebDynpro application to put such an object into a "global context" visible for all sessions?
So I am looking for a container in WebDynpro which has
the same behaviour like the servlet context in a web application.
Thank you for your ideas an suggestions.
Greetings
Anton
Hi,
To make a variable visible across application,create a bean in src-->packages. And Access it globally.
If u want an variable to be visible inside a view globally declare it in controller
//@@begin others
//@@end
Regards,
Vijayakhanna Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anton,
To make an Variable Global ,you have define variable at various levels based on Usage.
1)Ex: If you want to define Variable between two different Components . when A component is embedded into B Component then you have to define at Component Interface level and Mapping has to be Defined.
2) If you want to make Variable to be used within the component among the Iviews ,then you can define at Component Controller or Custom Controller and Mapping has to be defined at Iview Level.
3) If you want to use Variable between two Webdynpro Iviews then you have define the eventing mechanism to pass the values among the EP Webdynpro Iviews.
Hope this answer helps you.
Thanks
Madhan
Anton,
What's wrong with static class variable for this scenario?
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.