Setting Cross-context cookie on a filter

Hi Folks...
I'm building a module of a web app... this module is kind of a separated application... i mean.. it has a different context.
The servlets and jsp of the main app is found at the context /diret
The servlets and jsp of the module (wich will be included in the main app's jsp or opened in a frame) are at the context /ce
The session of the module (/ce) is controled by the main app... I have a filter in the module that makes a request to the mais app (/diret) asking if the session for the curent user is up. If it is, it gives to me de sessionId of the main app, and i must put that on a cookie. if it's not, then a must redirect to the login page.
The problem is that it is not setting the cookie. The first servlet of the module is included in a jsp at the main app, than a http request is made to the module context. Before executing the module servlet, it goes through the filter that tries to set the cookie, exactly like should happen... no errors are thrown. But it seems that the response that is passed to my filter is been ignored when the request focus return to the main app. The cookie setted at the module context is not sent to the user's browser...
Does somebody knows what is happening?

Hi -
I'm clear on the spry:if part, and have set it up and it runs
great. My
limited JavaScript is giving me trouble with the add observer
part. For
instance, the onclick function I have set up for the master
dataset I am
working with is:
function rl_selMfg(mfgID) {
dsSeries.setURL("index_test_spry_xml_series.asp?MfgID=" +
mfgID);
dsSeries.loadData();
(In this scenario, dsMfg is the master dataset; dsSeries is
the detail.
The above is called from an onclick event on a record from
the master
dataset).
I need to pass the "mfgID" variable from the row selected in
the master
list to this function. How can I do that with an observer?
Thanks,
Rod
Donald Booth wrote:
> Hi Rod,
> We have a sample of this exact thing here:
>
http://labs.adobe.com/technologies/spry/samples/SetCurrentRowSample.html
>

Similar Messages

  • Setting cross-domain cookies in Safari using iframe

    Hi,
    I want to load url inside iframe. It works in all browsers. Except in safari browser.
    I have written code as
    On designer page
    <div id="containFrame" runat="server">
    And on code behind
    protected void Page_Load(object sender, EventArgs e)
                GenerateFrame("http://www.dotnetobject.com");
    private void GenerateFrame(string urlsrc)
                string frame = "<iframe id='ifrm' style='width: 956px; height: 500px'";
                frame += " src='" + urlsrc + "' ></iframe>";
                containFrame.InnerHtml = frame;
    I am using safari browser version 5.1 (7534.50).
    Here in Preferences (Privacy tab) for Block Cookies have three options as
    1. From third parties and Advertiser
    2. Always
    3. Never
    If I selects option as Never then this code work successfully. But Not for 1 and 2 option.
    Here my quesion is, how to handel this problem cross-domain cookies problem?
    Thanks,
    Bhanudas

    sadly... i couldn't find other workaround than making a new subdomain of the main domain.
    i have abc.com that embed def.com in an iframe. the only workaround so far is make a new subdomain def.abc.com and map that as a CNAME to def.com.
    when i call the page in iframe, i call def.abc.com, which matches the same domain, thus cookies can be read or written.
    this becomes a problem with you have a lot of different websites to embed, and not all site owners care to do binding of the new host on their webserver.

  • ADF Faces: Cross context forward

    Hi all,
    I am trying to set up an simple example for a cross context forward from one ADF Faces/BC app to another. Can anyone provide me some code snipet to perform this?
    App1 has a page1.jsp, as soon as this page is brought up, i would like it to be automatically to forwarded to App2/page2.jsp.
    I have a javax.servlet.filter set up in App1, but i'm not exactly sure how to manipulate the doFilter method to explicitly set a new URL for the forward.
    Any suggestions is appreciated.
    Wes

    Hi,
    I don't think a forward works. Instead you need to perform a redirect
    Frank

  • Cross context.. why ?

    I have a set of common servlets that sit in my tomcats common/lib folder.
    These servlets interact with a variety of jsp's running on their own contexts.
    Any session data is not available to the other jsps because they all have cross context=false
    However...
    One of the servlets is a filter that catches changes to a particular session variable, and adds or removes items from a vector. This vector holds a list of current users online, and regardless of which context I view this list from, it shows ALL the users from every context.
    I'm guessing therefore, that filters that are deployed in the common/lib folder do not honor the cross context = false definition set in the context xml file. Why is there not one Vector per context ?
    Your comments would be much appreciated.

    The vector is probably a static member of the filter class. Use the application scope to store a unique vector for each application instead.

  • "cross context" and SUN ONE Application Server 8

    Hi All,
    I was running an application in tomcat which had "cross-context" set to true. I tried to deploy it under SAS but it doesn't work, when it requests a resource from a different context it is not found. When I go directly to that context it gives me the resource.
    Can anyone tell me what I should do to enable "crosscontext" (I had to do that to solve this problem in tomcat
    Kind regards,
    Marco Laponder

    In your web app's sun-web.xml, add this property:
    <sun-web-app>
    <property name="crossContextAllowed" value="true"/>
    </sun-web-app>

  • Cross Context Web Applications

    Hi there,
    I'd like to know if it is possible to enable/disable cross context references for web application(s) with Weblogic Server 8.1? With Tomcat this is achvied by setting the attribute "crossContext" of the element "Context" to "true" in Tomcat's "server.xml" configuration file (see http://tomcat.apache.org/tomcat-5.0-doc/config/context.html). Is this also possible with Weblogic 8.1? If yes, how?

    If you're talking in perspective of Java components (servlets, JSPs, etc), you would not need to code them differently for each browser.
    However, you would want to consider these issues when you use HTML/DHTML/Javascript specifics.
    [w3schools|http://w3schools.com/] is the correct place to look for those.

  • Error "Lead selection not set for context node"

    Hi everyone,
    I've got a Tree control in WebDynpro ABAP and I've implemented an "expand all" button.
    Here's the coding:
    METHOD expand_node_rec.
      DATA lo_el_child TYPE REF TO if_wd_context_element.
      DATA lo_node_children TYPE  wdr_context_child_map.
      DATA wa_lo_node_children LIKE LINE OF lo_node_children.
      DATA lo_nd_child TYPE REF TO if_wd_context_node.
      DATA lo_kschl TYPE klschl.
      DATA lv_has_children TYPE boolean.
      lo_el_child = node->get_element( ).
      lo_node_children = node->get_child_nodes( ).
      node->get_attribute( EXPORTING name = 'KSCHL' IMPORTING value = lo_kschl ).
      node->get_attribute( EXPORTING name = 'HAS_CHILDREN' IMPORTING value = lv_has_children ).
      IF lv_has_children = abap_true.
        node->set_attribute( name = 'IS_EXPANDED' value = abap_true ).
      ENDIF.
      LOOP AT lo_node_children INTO wa_lo_node_children.
        lo_nd_child = wa_lo_node_children-node.
        me->expand_node_rec( node = lo_nd_child  ).
      ENDLOOP.
    ENDMETHOD.
    However I'm getting the error above: "Lead selection not set for context node".
    Any suggestions?
    Edited by: DEVELOPMENT THEMIS on Jul 7, 2011 6:34 PM

    hi developement Themis,
    I think u didn't diclare "node" as context node. So declare it as a context node before using as a context node..as below
    DATA node  TYPE REF TO if_wd_context_node.
    or u can use  "lo_nd_child " as ur context node in ur program in place of "node"
    then I think this error will be removed.
    thanks,
    simadri

  • How to set the Context path to AAA/BBB in Weblogic 5.1?

    Hi folks,
              I want to deploy a web application and set the servlet context as:
              AAA/BBB. Put more simply, my application should be accessible via the
              following:
              http:localhost:7001/AAA/BBB/main.jsp
              where http://localhost:7001/AAA/BBB maps to my document root.
              One work around is to set the context to AAA:
              weblogic.httpd.webApp.AAA=WebAppLocation
              And in the deployment descriptor (web.xml) to register all servlets
              with a BBB/ prepended to the desired alias:
              <servlet-mapping>
              <servlet-name>main</servlet-name>
              <url-pattern>BBB/main.jsp</url-pattern>
              </servlet-mapping>
              But this solution does not work for me. Parts of the application refer
              the context root (AAA) and create URLs relative to that. These URLs
              will not have the BBB part. Searching for it in the code and replacing
              it is not desirable (we do not own the code). Does anyone have any
              suggestions?
              Thanks in advance,
              Musafir
              

    What you have done for changing the context root to "/" is all fine but it is important to know that there is a ROOT.war in the deploy folder of JBoss which by default gets bound to "/" context. You must be getting the error message like "Web mapping already exists for deployment" when you would be starting your JBoss server after changing your context root to "/". So either you can completely remove the ROOT.war from the deploy folder or change the context-root of ROOT.war by updating its web.xml like:
    <web-app>
    <display-name>Welcome to JBoss</display-name>
    <description>
    Welcome to JBoss
    </description>
    *<context-param>*
    *<param-name>context-root</param-name>*
    *<param-value>/jboss-root</param-value>*
    *</context-param>*
    <servlet>
    <servlet-name>Status Servlet</servlet-name>
    <servlet-class>org.jboss.web.tomcat.service.StatusServlet</servlet-class>
    </servlet>
    </web-app>
    and also update the jboss-web.xml of ROOT.war:
    <jboss-web>
    <security-domain>java:/jaas/jmx-console</security-domain>
    *<context-root>/jboss-root</context-root>*
    </jboss-web>
    I hope this serves your purpose.
    There can be a workaround also by modifying the index.html of ROOT.war in the deploy folder of your server and redirect request to your web application using meta refresh like:
    <meta http-equiv="refresh" content="0;URL='/store'">

  • How to do set apps context in java concurrent program

    Hi,
    Can any body help me in setting apps context in Java Concurrent program. I tried using AppsContext class and methods but did not work.
    Thanks for help in advance
    Pavan

    Go on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
    You will get class file FDExtractAndFormatting.
    Decompile it to get source code.
    Thanks, Avaneesh

  • I can't get my iphone 5. Ios 7, to accept cookies. I have set the 'block cookies' field ti either never or from third parties. I have cleared history and cookies and data, restart the iphone. Please help...

    I upgraded my iphone to os 7 two days ago. However, now it cant accept cookies at all. I have set field 'block cookies' to never or from third parties. I have cleared history and cookies, then reboot my iphone. I have tries to force close all applications. Still, cant accept cookies. Please help...

    Make sure you have the latest iTunes version installed and hopefully you have the most recent backup of your iPhone.  Do a DFU restore.  While it's plugged in to your computer, press and hold the Home and Sleep/Wake buttons together until the screen is off.  When the screen's off, release only the Sleep/Wake button and keep holding down the Home button.  Wait until you see in iTunes on your computer to show that it detected it in recovery mode.  When it does, proceed with the restore.  It will be restored and updated to the latest iOS 7.0.2.  If you have a backup, restore from that backup once iOS 7.0.2 is successfully installed on your iPhone.
    If your iPhone still won't activate, I agree with gail, you will have to get in touch with that developer.

  • Not able to set the context

    Hi All,
    I am not able set the context to an xml file in JFPREAMBLE CONTEXT file. Can any suggest me how to fix it?

    context.setAttribute("myTest", "mkmmkmmkm");
    String output = (String) getServletContext().getAttribute("testMe");You set "myTest" but try to get "testMe"

  • How I can set ORG_ID context (for Oracle Apps Views) in ODI designer tool?

    Hi All,
    I want to get data from apps views (like OE_ORDER_HEADER_V) into our data warehouse detination table using ‘Oracle Data Integrator’ tool.
    The issue is that when I reverse Oracle Table or Synonym directly, everything works fine i.e. after 'Interface' execution, I can see how many rows imported into destination table from this source Oracle table/synonym.
    But when I use Apps view as a source then 'Interface' executes fine with ‘no error’ but NO rows imports to the destination table.
    I believe, the only difference is that I am not able to set Org_Id before executing ODI interface so it is not picking the data.
    Please let me know the steps/instructions to set org_id context on apps view then reverse in ODI Designer tool.
    Please note that I can set org_id using SQLPlus successfully as given below (and see data using the same Apps view). What to do in ODI designer tool to achieve similar data:
    begin
    fnd_global.apps_initialize(0, 21623, 660);
    mo_global.init('ONT');
    end;
    -- connect using apps/apps at Vision SQLPlus
    -- User_Id -> 0 (<-- SYSADMIN )
    -- Responsibility_Id-> 21623 (<-- Order Management Super User )
    -- Application_id -> 660 (<-- ONT )
    -- select count(*) from oe_order_headers_v where rownum < = 100
    I would appreciate your quick help in this.
    Thanks in advance.

    Set org context in 11i:
    ===============
    The SQL command to set the ORG_ID prior to running a script is:
    SQL> execute dbms_application_info.set_client_info(&org_id);
    Enter the org_id when prompted.
    If using Toad
    Begin
    fnd_client_info.set_org_context(&org_id);
    End;
    Set org context in R12
    ================
    The SQL command to set the ORG_ID prior to running a script is:
    SQL> exec mo_global.init('AR');
    exec mo_global.set_policy_context('S','&org_id');
    Enter the org_id when prompted.
    The procedure - mo_global.set_policy_context has two parameters
    p_access_mode & p_org_id
    p_access_mode Description
    S In case you want your current session to work against Single ORG_ID
    M In case you want your current session to work against multiple ORG_IDs
    p_org_id: Only applicable if p_access_mode is passed value of "S"
    If using Toad
    Begin
    mo_global.set_policy_context(‘S’, &org_id);
    End;

  • Step by Step to configure cross-context in Weblogic 10.3.2

    Hello Everyone,
    How to configure a web application to allow cross context calls in Weblogic 10.3.2?
    Please let me know the solution on this?
    Thanks,
    Praveen

    Hi Praveen,
    Maybe you could take a look at [Using Sessions and Session Persistence|http://download.oracle.com/docs/cd/E17904_01/web.1111/e13712/sessions.htm#WBAPP300]
    Hope it helps,
    Luis

  • Unable to set DFF context value

    Hi,
    i want to set DFF context value with a variable, so i tried first to set it with a constant.
    in the controller's PR
    super.processRequest(oapagecontext, oawebbean);
    // first, find the flexfield's handle
    OADescriptiveFlexBean oaDFF;
    oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("DescFF");
    oapagecontext.writeDiagnostics(this,"oaDFF=>"+oaDFF ,1);
    // default the Attribute Category (DFF context)
    oaDFF.setFlexContext(oapagecontext,"QuietanzaErarioStato");
    oaDFF.processFlex(oapagecontext);
    but it doesn't take any effect, the context's pickilist remains blank.
    However i tried the same code with another DFF and it worked. i am wondering if there is some differences between the two DFF.
    Any help will be appreciated, it'quite urgent
    Thanx

    Hi,
    Please create a new region thru personalization before the region where u r DFF is present. Use re-order to take the new region before the DFF region.
    Set the controller to that new region and the code that you mentioned. This process will sets the context.
    Kindly refer the dev guide as i found the above solution from devguide it self.
    Thanks
    Raghava

  • Firefox won't delete cookies even after set to clear cookies on firefox exit

    I have use custom settings for remembering history in firefox.
    I set to clear history on firefox close. Under this settings, I set to clear cookies, active login and cache. But whenever firefox exits it doesn't remove cookies.
    Also, I set to keep cookies till firefox closes. Still the cookies appears.
    This is a big security issue for me..When I click restore previous session, firefox restores the login into sites also which I don't want

    Got It!!!
    Go To: Firefox/Tools/Options/Privacy/Tracking Checked box/Tell websites I do not want to be tracked/ History Firefox will: Never Remember History/ You may also want to: clear all current history/ Clear now/ click OK, ---> got it, that is your answer.<-- (Right click the left image below to open in a new tab)
    And it is my answer as well, as I was confounded with this problem for some time. Now after you do this close your Firefox browser, and open back up Firefox browser, and there will be maybe only one or two cookies, depending on your browsers' home page.
    I tried other methods to get rid of persistent cookies that would not delete by, CookieKiller, and TACO Targeted Advertising Cookie Opt-Out, those did not help, and I tried the methods listed on these links but they did not work:http://webdevwonders.com/clear-dom-storage/
    Also this method did not work:http://justplainobvious.blogspot.com/2009/03/firefox-wont-delete-cookies.html
    Next to make your Firefox browsing possible, go to/Firefox/Tools/Options/Privacy/,Tracking Checked box/Tell websites I do not want to be tracked, History Firefox will: Use custom settings for history, unchecked box Always use private browsing mode, unchecked box Remember my browsing history, unchecked box Remember download history, unchecked box Remember search and form history, checked box Accept cookies from sites, checked box Accept third party cookies, Keep until: I close Firefox, checked box clear history when Firefox closes, /settings all nine boxes checked/ click --->OK! (Right click the right image below to open in a new tab)
    All Cookies are gone/history/deleted.

Maybe you are looking for

  • Sound blaster card not found when installing softw

    Hi guys if any one can help me much appreciated. I have read alot of the forums and have tried creatives advice. I installed the drivers for my audogy 2 zs soundcard fine. It sees it in device manager as creative audigy audio processor wdm and i can

  • How to open a Character mode report in report designer 2.5

    I am trying to open a character mode reoprt in Report Designer 2.5 and .. getting an error message: Waring: Character-mode report 'XYZ' is being opened as bit-mapped report. Warning: Page width of report '<report name>' changed to fit the font for a

  • CS5 Crashing on MacBook Pro (Possibly Adobe Bridge)

    Using OSX 10.6.3 on MacBook Pro with 8Gb RAM and no previous issues or  crashes (ever!) I have just purchased and installed Adobe Master Collection. It seems to work fine when installed on Macbook Pro but after a restart: I am unble to move mouse aro

  • Workspace resets

    Occasionally my workspace resets to the default layout, even though my custom one is selected. Re-selecting the custom one brings it back, but the next time I use photoshop, there's a fairly good chance that I'll need to do it again. (Minor issue, bu

  • Why on windows 2000 xp sp2 am I getting a message that firefox is notresponding

    I have another computer a Vista and when they are both running { or not} I get the firefox is not responding. It will suddenly stop for no reason some times 1 min. some times up to 5 min.