What is the best way or best practise to access the session scoped component in servelt pipeline?

Hi Experts,
What is the best way or best practise to access the session scoped component in servelt pipeline?
Please share your thoughts.
Thanks,
ankV

To resolve components in the session scope you should be using DynamoHttpServletRequest.resolveName(). And of course the DynamoHttpServletRequest can also be used to resolve global and request scoped components so it is pretty handy to use. You can get the DynamoHttpServletRequest request associated with the current thread from ServletUtil.getCurrentRequest().
You can also reference a session scoped component from another session (or request) scoped component's property file. E.g. to access profile component (which is session scoped) from your custom session scoped component you would typically do this:
$class=com.company.MyCustomComponent
$scope=session
profile=/atg/userprofiling/Profile

Similar Messages

  • What is the difference between component(Y, Pb, Pr) and component(R,G,B)?

    [I previously posted this question in another thread as hadn't realised how to post new question]
    Q. What is the difference between component (Y, Pb, Pr) and component (R,G,B) ?
    I’d previously thought I was reasonably savvy on all things HD, but when I turned my thoughts to looking into getting a mac mini to run part of my home cinema I realise I have some confusions around the above.
    Here’s what I think I know:-
    The mac mini has a DVI output of the type which can output both digital and analogue, and so via physical adapters it could be used to connect to displays that take HDMI or VGA style RGB leads.
    I know on the market I can get a DVI to Component cable lead which would therefore lead me to assume it could drive my HD plasma with component input (Y,Pb,Pr), as I currently drive the HD TV via component cable with a SKY HD box (720p and 1080i), an xbox 360 (720p) and a progressive scan DVD player (480p), all through a Denon AV-amp.
    The problem is, I’ve heard somewhere that the DVI to component is R,G,B only and that it is not Y, Pb, Pr which is making me wonder it a) this will work and b) if I really understand component video afterall.
    I notice the Apple TV outputs Y,Pb,Pr but colours them red, green and blue, so am even more confused….
    Hopefully someone can help educate me on this !

    Thanks for this.
    My Plasma is a Panasonic 42" Viera March 2005 model. No HDMI, No VGA.
    It can process signals up to 720p and 1080i via the component (an interestingly it makes a huge difference over SD even though the native panel is 480..!?!)
    Am I right in thinking that the iPod component cable will also be R,G,B and therefor might be a suitable trial? Ie. if the TV accepts the input from the iPod then it should work for the mini?
    Only other thing of note is I'm doing all this via my Denon 1707 AV amp which does have the facility of upscaling, but I imagine it needs to stick to one format?
    Thanks.

  • What is the difference between Component,Server,Tool and Software?

    HI,
    What is the difference between Component,Server,Tool and Software?
    SHABEER

    Hi
    Every individual part that constitutes in making an SAP System is called a COMPONENT.e.g DB instance, Java CI, ABAP CI etc
    SERVER is the actual composition of different components of SAP.e.g. a database alongwith can instance would constitue an application server.
    TOOLS are the products from different organisations (SAP or Non SAP) that can be used for different functionalities like keeping a check on jobs, monitoring of the system , e.g Tivoli
    SOFTWARES are a kind of tool that help you to bring up results from the system in a user acceptable format. These are utilities that act as interfaces between the user and the system.
    regards
    Chen

  • What is the different between component and component type in extract struc

    Hi All,
    What is the different between component and component type in the Extract Structure?
    I used them, but I never really know the different between them yet.
    Thanks,
    Grace

    The difference between Component and Component Type are:
    Component This is essentially the field name in the extraction structure. These can either be SAP delivered field names or custom field names (e.g. Y* or Z*).
    Component Type This defines the data definition for the field, along with associated attrributes and descriptions for anything using that Component Type, to define the corresponding Component. If you double-click on any Component Type in an extraction structure, it will show you the definitions that have been setup for that Component Type (will display as Data Element but it's essentially synonymous - Component Type refers to structures and Data Elements refer to tables).

  • What makes the session database so scalable in the Enterprise Edition?

    What makes the session database so scalable in the Enterprise Edition?
    How does it avoid becoming a bottleneck?

    If you are enterprise customer then Sun has a good program called ASCSP program whereby they answers your architectural questions. They also help to give an estimate of the hadb nodes etc as per your requirements and shall give you performance tips to scale it . This might mitigate your scalability issues.
    Hope this helps !!!

  • What is the mean of Component.getTreeLock()

    hi
    Somebody knows what`s the mean of Component.getTreeLock();
    when Component setSize(), the getTreeLock() should be
    synchronized.
    which object is synchronized?
    Thanks in advance
    uya

    getTreeLock() will return the locking Object for component. I think it is used to syncronise the component object.

  • Can we access the session scoped variable by simply using its name

    The Java EE 6 Tutorial contains a "Duke's Bookstore Case Study Example”. I could not understand following statements of this case study:
    *bookdetails.xhtml*
    {code}
    <h:outputText value="#{selected.title}"/>
    {code}
    *BookstoreBean.java*
    {code}
    public String details() {
    context()
    .getExternalContext()
    .getSessionMap()
    .put(
    "selected",
    getFeatured());
    return ("bookdetails");
    {code}
    I want to know can we access the session scoped variable in bookdetails.xhtml by simply using its name as done above?

    It is basic Expression Language (EL) functionality, it isn't even specific to JSF. And it isn't specific to the session scope either, you can put beans in any scope (page, request, session, application, flash, conversation, whatever custom scope you create) and reference it using EL by only its name. The thing that you have to take care of is that the bean lives in SOME scope, which can be achieved using JSF specific annotations or configuration files, through CDI or by manually putting the bean in a specific scope through Java code. It's flexible, which is the nature of the Java platform.

  • What is the "Session Client"?

    Hi.
    Could you please let me know what the "Session Client" is?
    It can be given to each user, and seems to be used for "the filtering in content models".
    This might be a basic question, but I don't really understand how I can use it.
    I could not find any descriptions in the HANA manuals.
    Thank you,
    -mamoru

    HI Mamoru,
    the "session client" is a NetWeaver heritage.
    SAP ERPs data model allows the separation of clients (business clients - not pieces of software) in a way that the same technical system can be used by several clients (business clients) while having all data separated.
    That way a user "JONES" in ciient "100" can only access data from client "100" and not from any other client.
    These clients can be created by the system admins at will and differ from customer system to customer system.
    Now if you want to create an analysis model for ERP in HANA it's obviously required to take care of this client modelling.
    Our developers decided to handle this requirement by creating a session variable $$CLIENT$$ that can be assigned to a HANA user.
    Whenever this user logs on to HANA this variable is set for this session and the current value is used in the analytic view, attribute view or wherever you used it.
    For more information check the SQL reference manual at "SESSION_CONTEXT", "ALTER SESSION SET..." and "ALTER USER SET PARAMETER..."
    regards,
    Lars

  • What is the difference between component and sub-assebly?

    Experts,
    What is the diffence between sub-assembly and a component?
    in my report if user enters component it should display sub-assembly. if it is reverse should not get component for that.
    is there any function module for this?
    I tried in CS15 but not get exact information.
    please help me...

    Hi,
    component is nothing but one of small product. So many no.of products could combine and they will give one big product. For that particular component one or more sub-assemblies can be used.
    Sub-assembly will contain one or more no of  small contents.
    14' inch boltnut is one of sub-assembly for the one big component.
    In that boltnut sub assembly  might contains bolt , nut and washer. That is called sub-assembly.
    Thanks,
    Shankar

  • What is the use of Component Controller in WD4A

    Hey Folks,
                   I have been reading tutorials and notes on WD4A.I understood basic architecture of WD4A but still i cant understand details of different Controllers like components controller,custom controllers,interface controllers etc.In which methods of controller i should code??.

    Hi Nirad,
    Controllers are heart of WebDynpro Components, since programming logic and data are defined in these entities.
    For example: ComponentController is accessible from all the views and windows in the WebDynpro Component. Hence we can declare the Attributes, context and the methods in the component controller which can be accessible in all the other controllers present in the WebDynpro Component.
    You can also find more information about controllers in the thread:
    Re: Controllers
    Best regards,
    Suresh
    Message was edited by:
            Suresh Honnappanavar

  • What are the major scenarios to customize DAF pipeline ?

    Hi,
    In which purpose DAF pipeline need to be customized.
    Please tell me what are scenarios to customize the DAF pipeline.
    Thanks In Advance.

    Some of the probable scenarios where we might want to customize the DAF pipeline: autologin based on a custom logic; implementing SSO; to set some request attributes based on request URI and/or parameters which can be used by the subsequent servlets/filters or other components; detect device type based on user-agent and other parameters/attributes; trigger a custom event on some action like page view etc.

  • What's the difference between Component's isDisplayable() and isVisible() ?

    hi,
    I have a question about java.awt.Component.
    Is there difference between isDisplayable() and isVisible() ?
    can you help me ?
    thanks.

    thank you very much.
    sorry, i am a new commer in Swing.
    What the meaning of "a native screen resource" according to
    isDisplayable() description?
    thanks a lot

  • What are the differences between component and module

    hey guys... i was just wondering if someone could enlighten me on the differences of components and modules?
    im creating a new project in flex, and not sure which one to use.. or even if it matters... lol
    my login is going to have a login at the begining, and once the login is entered correctly, it goes to a panel selection window, where teh customer will select the panel they have in their house... and once that happens, i'll have a datagrid on the left side of the screen and multiple viewstacks with images which display to the right...
    so if any one has a suggestion, i'll greatly appretiate it

    I'll answer my own question since there were no replies yet. Others may want to know the answers to the same question. Most of my questions are answered on this link:
    http://www.videohelp.com/forum/archive/diference-betwen-mov-dv-files-and-dv-file s-t362973.html
    Any other comments always appreciated.

  • I18N - Translation Best Practises?

    Hi.
    I always wanted to ask this, now my level of desperation is high enough again. Are there any translation best practises?
    Background: I've developed countless multi-language applications on NW2004s (7.0).
    I always tried to do the translation job at the end of the development phase, because I have the following pain points:
    1) Initial translation is easy (but really a joke): copy xlf file, rename it, translate contents, etc. That's fine. But if I add further elements, e.g. adding some UI elements to a view's layout, it's pain to add the deltas to the other xlf files. There is no automated way of adding the missing keys, at least I do not know a tool for eclipse. Is there one? Does SAP plan to provide such a tool? What's your best practise when it comes to translation of deltas?
    2) What I do is the following: I check out all xlf files and their corresponding property bundles (for what are they checked in anyways?), add the missing keys to all xlf files and generate the property bundles with right mouse click -> I18N tools -> Create properties file
    When I rebuild the web dynpro and test it, I often get a wild mixture of e.g. english and german texts on the same view. Even if all files are correct. Does anybody know this problem and can explain it?
    Thanks, Karsten

    Karsten,
    That is the standard approach for the Translations.
    1) - With my best of knowledge, there are no tools to copy the keys for .xlf files for other languages than english. You can write a simple java application, where it compares source and target files and inserts the missing keys in the .xlf file.
    2) May be the keys are not mapped properly to the new elements. That is the reason, you are seeing some in english and some in other languages. We will have the same problem quite often.
    From your NWDS - go to package Explorer - go your project - src folder.
    Open your .xlf file in Text Editor(Not in S2X editor)- copy the new element from english to german(.xlf ) file , change the text and rebuild the application.
    Now you will see correct results. Usual reason for this, missing keys or misplaced keys.
    these days, i am working new approach for translation, let me know how is this approach.
    Need your opinion on Web Dynpro Translations Approach
    Regards,
    Sridhar

  • Advice or best practise information about 1 or 2 clients in SAP R/3 DEV

    I'm searching for advice or best practise information about clients in a SAP R/3 development system.
    Reason for this is that we are up to refresh our SAP R/3 development system and up to now we have two clients on it:
    -     One customizing/development client without master data, transaction data et cetera
    -     One local test client with master data, transaction data and so on
    One of our developers suggested to only have one client on development, where we could customize, program and test. So that client would be with master data, transaction data et cetera.
    What would be your advice or what would be best practise for the development system: 1 client (with data) or 2 clients (one clean customizing and one with data). And what are the most important reasons to do it so.
    Maybe there is already some good (SAP) information about this specific subject, but up to now I havenu2019t found it yet.

    Maybe I've asked my question too broad. I'll try to narrow it down.
    Up to now we always had two clients on our SAP R/3 development system:
    - Client 200 - Customizing/development only. No other data in this client
    - Client 400 - Local test client with master data and transaction data. New customizing is copied from client 200 to test
    The reason for having those two clients are:
    - It feels someway good to have a customizing-only client
    - We've always done this before
    A developer suggested to only have one client in our SAP R/3 development system for the following reason:
    - You'll never need to copy the customizing (tr.SCC1) first to be able to test it
    - You can work in one client and don't need to login in the other client to test it (for example: ABAP reports)
    - For customizing of easy setting (for example producthiërarchie, as we don't test it everytime in client 400) it is possible to forget copying it into client 400 (test client). With one client, you can not forget it
    The reasons of this developer seems very valid and up to now we haven't found a convincing/compelling reason to make a good choice for one or two clients.
    Please, try to convince us with good reasons to choose for one or two clients.

Maybe you are looking for