How to create and access cookie with in iView ?

Hi,
I have created iViews using .Net PDK for SAP.
Is it possible to create a cookie using code of iView and use this cookie to access an external application.
Regards,
Vikas Khandpur

U cud add this code to the java iview:
setting a cookie:
Cookie fCooky = new Cookie("flag","false");
response.addCookie(fCooky);
fCooky.setPath("/");
Reading the cookie:
Cookie[] cook = request.getServletRequest().getCookies();
for (int i = 0; i < cook.length; i++){
Cookie cc = cook<i>;
if(cc.getName().equals("flag")){
   response.write(cc.getValue()toString());
Iam not sure how u wud do it in a .NET Iview.
Sry!
Regards,
P.

Similar Messages

  • What are message tables and their role?How to create and access them ?

    hi,
    Can any body clarify me about What are messaging tables and their role(use) in DataBase?How to create and access them ?
    Thanks in advance
    Gopi

    If you have doubt that's you have an idea. So, explain your idea please, because I don't see what are "messaging tables".
    Did you say about Oracle database ? Apps ?...
    Nicolas.

  • How to export and import cookies with iMac?

    I have an IMac and a new MacBook air. How do I export cookies from the iMac and import to Mac
    Book Air?

    Thanks much for your reply. I was concerned that I don't remember some of the passwords I created for memberships on various sites and publications, and that because with cookies those URLs immediately recognize me, I don't have to try to retrieve or reset those passwords. I guess that Apple in its semi-infinite wisdom has decided we shouldn't ever have access to cookies on our Macs, and I'll have to contact those subscription websites and plead galloping senility, or something.
    It's a bit ironic that, well back in the last century --- 1985, for those old enough to remember such a year ever took place -- I was a Mac Early Adopter,  very proud to lug my 512K (!!) Mac back and forth to the office every day. But reality intervened ca. '95, when my workplace demanded that I abandon the Mac and  march in lockstep to Bill Gates' siren song, and so I couldn't return to the benevolent despotism of Applestan until my recent retirement. Old habits are a bit hard to break.  Thanks again,
    zedraster

  • How to create and access a Virtual Host on the J2EE WAS?

    Hello, I have searched through the Forums and help.sap.com and found a lot of information on how to set up a Virtual Host on the J2EE server but am having issues with it working.
    The goal is to provide a simple virtual host on the J2EE Portal server to host some static image and HTML files. Previously I had stored these files in the standard publicly accessible SAP J2EE folder location /usr/sap/<SID>/JCxx/j2ee/cluster/serverx/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/. This location is resolved to when using the URL <host>:50000 for example.
    The main issue here is that during Portal support pack applications this folder gets wiped out and we have to remember to save off any custom files and folders in this location and replace them.
    I would like to create a virtual host to store these static files (i.e., branding-image.jpg, etc...).
    I have run through the process of creating the virtual host both using Visual Administrator and <host>:50000/nwa but am not able to get the virtual host name to resolve properly.
    The following are the steps that I have taken. Let's assume the standard SAP portal (i.e., xSS, etc...) is running properly on <host>:50000.
    1. create virtual host via Visual Administrator/NWA called 'sapwebserver1' by using the Create Host option (takes on the attributes of the 'default' standard virtual host)
    2. change the root directory for this virtual server to a custom folder at E:/tmp/mimes (where E:/usr is where the J2EE files are all installed), no start files were set up and nothing else was changed in the new virtual host record, no permissions were changed on the /tmp/mimes folder from whatever the default Windows user permissions are normally set, I am using a local Windows  administrator account but I have not seen any reference in the help files or the examples that indicate that any specific permissions updates need to be made on the virtual host root folder
    3. restarted the J2EE server as well as the HTTP Provider service
    4. before updating the company DNS, I wanted to test this locally on the server and so have updated the server's local HOSTS file with a <host IP address>   sapwebserver1 entry
    5. from that server I can ping the sapwebserver1 virtual host name and it resolves properly to the machine's physical IP address
    According to all of the documentation and examples I have seen I should now be able to (from that server) launch a browser and access the static files in the virtual host by referring to http://sapwebserver1:50000/branding-image.jpg for example. This is not working and the browser just brings up a Cannot display the web page error in IE. By referring to the virtual host name sapwebserver1:50000 it's supposed to hit the J2EE server and based on the host name sapwebserver1 realize that it should resolve to the root directory E:/tmp/mimes. This is not happening. Just as a test I have created a copy of the 'default' virtual host and called it sapwebserver2, updated the local HOSTS file for this entry, and tried to see if that would work like the 'default' host. My expectation was that http://sapwebserver2:50000 would behave the same was as http://<host>:50000 but it too fails to resolve just like the sapwebserver1 virtual host refernce.
    Would anyone happen to have any pointers on what to do next? I just want a simple virtual host to be able to serve up some static images and files.
    Thanks for any insight or assistance you might be able to provide here.
    Graham

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • How to create and access Global variable in Microsoft Lightswitch(VB)?

    How to create an integer datatype Global variable in Microsoft Lightswitch 2011(VB) and access it in pre-process query to set value? Can it be accessed and set like Me.Application.<MyGlobalVariable> = 999
    Thnx.
    jajjaar123

    If you want to create integer datatype Global variable in lightswitch, you can refer to (Eric Erhardt) blog
    Create and Use Global Values In a Query

  • How to create an Access Point with Two MI424WR (GigE for Verizon FiOS) Routers?

    I understand that these routers are fairly new and I cannot seem to find hardly any information on them.  I have a fairly large home and I just happen to have two MI424WR's Gig E routers.  One is my main and the other I would like to create into an Access Point.  Has anyone done this with these routers?  I have found plenty of previous information on previous routers similar to these, but I have yet to find any instructions on how to do this with these routers. 
    Please help!
    Mark
    http://www.actiontec.com/products/product.php?pid=214

    How are you going to connect them?  cat5 or coax?
    cat5 instructions:
    Can I use my wireless or an extra router along with the Verizon provided router?
    coax instructions:
    Can I get an ethernet connection in a room with only coax?

  • How to Create and adjust masks with SDI output or Dual monitor output activated?

    Hi all Speedgrade community.
    For me one of the biggest problems I constantly encounter is managing masks within speed grade.
    The tools are great, but if your using and external reference monitor for grading there is no way you can manage
    masks and see what your doing on that "external" screen. Is there a way of activating dual screen or ddi output and keeping
    the viewer active in the GUI?
    When I know I'm going to be managing a lot of fine tuning grading, I usually always switch to Scratch or Resolve, and that breaks my Adobe CC round tripping workflow
    AE<-->PP<-->SG
    Thanks for any help.
    KR
    Leigh
    iMac 27"
    Aja IO 4K
    DreamColor Z27X
    HDLink 3D DisplayPort
    Wacom Intuos

    Hi Fran
    Thanks for your response.
    Is it just me, or does the pointer, when sent over to the SDI output, not respond as well
    as when it's on the GUI?
    Anyway, I'm quit confident we'll see an update to the way video is routed within Speedgrade
    in a near future.
    Leigh

  • How to create a transport request with query and only with its structure.

    HI guru,
                how to create a transport request with query and only with its structure.transport request should not  include any other query items like ( variables, conditions...etc)
    thanks in advance.
    venkata

    Hi,
    Goto RSA1 and then Transport Connection -> In SAP Transports select Object Types-> Query Elements -> Then select Query->Give Technical name of the query and then select for transfer. In the right side you can choose the components which you wanted to transport.
    Regards,
    anil

  • How do  create a slide show with both video and photos in elements 12

    how do  create a slide show with both video and photos in elements 12

    Hi Brian
    You can batch process a set of prepared slides from Full Edit (see image) using:
    File >> Process Multiple Files
    In the PMF dialog you can choose filename, date, or description (caption)
    Make sure you choose a separate destination folder to your source folder so as tot to permanently overwrite your originals.
    Click image to view

  • If user disable cookie how to set and use session with URL Rewritting

    if user disable cookie how to set and use session with URL Rewritting by append session ID in url

    If cookies are disabled, then app server will automatically try to use URL rewriting for session control. Programmer's responsibility is to encode any links or redirects using
    response.encodeURL("/yourPage.jsp")
    and
    response.encodeRedirectURL("/yourPage.jsp")
    See API for details
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String))

  • How to create a Access list on core switch to bloxk all Internet Traffic & allow some specific Internet Traffic

    Hellp Everyone,
    I am trying to create a Access-List on my Core Switch, in which I want to allow few internet website & block the rest of them.
    I want to allow the whole Intranet but few intranet websites also needs access to the internet.
    Can we create such Access-List with the above requirement.
    I tried to create the ACL on the switch but it blocks the whole internet access.
    i want to do it for a subnet not for a specific IP.
    Can someone help me in creating such access list.
    Thanks in Advance

    The exact syntax depends on your subnets and how they connect to the Internet. If you can share a simple diagram that would be much more informative.
    In general just remember that access-lists are parsed from the top down and as soon as a match is found, the processing stops. So you put the most specific rules at the top. also, once you add an access-list, there is an implicit "deny any any" at the end.
    The best approach is to create some network object-groups and then refer to them in your access list. From your description, that would be something like three object-groups - one for the Intranet (Intranet), one for the allowed servers that can use Internet (allowed_servers), and a third for the permitted Internet sites (allowed_sites).
    You would then use them as follows:
    ip access-list extended main_acl
    permit any object-group intranet any
    permit object-group allowed_servers object-group allowed_sites any
    interface vlan
    ip access-group main_acl in
    More details on the syntax and examples can be found here:
    http://www.cisco.com/en/US/docs/ios-xml/ios/sec_data_acl/configuration/15-2mt/sec-object-group-acl.html#GUID-BE5C124C-CCE0-423A-B147-96C33FA18C66

  • How to create the Access sequence for the Vendor+material+plant combination

    Hi all
    Please let me know How to create the Access sequence for the Vendormaterialplant combination..
    Whats the use? What its effect in purhcase and taxe..
    brief me please

    Hi,
    you are asked to maintain the access sequence for the tax condition for which you are putting 7.5%.
    goto OBQ1 or img..financial accounting new...global settings.... taxes on sales and purchases ......basic settings.....
    find the tax condition type. see in it which access sequence is attached.
    if there is none then use JTAX used for taxes in India.
    or you can create the similar one for your.
    to create the same goto OBQ2.
    new entry or copy JTAX.
    and assign the access sequence to condition type.
    this will resolve your problem if you just need to assign the access sequence.
    regards,
    Adwait Bachuwar

  • How to create and call a COM component in Java

    Hi All,
    can you suggest how to create and call a COM component..or if have any sample simple application can you send it to me...i will try to develop my project.
    actually i am configuring a OCR Engine using SDK which is in VB .Net when i contacted their support they told that if i have any sample COM based component Project they will help me...
    So please can you help in this.
    Thanks in advance.

    As said by my fellow posters Java Devolopment Environment (Except Microsoft implementation of JVM,this is no longer supported by MS themseleves) does not provide an built-in support to serve this cause.
    If you are looking to devolop a custom based solution the below is a good place to start with where end user is talking about Java <=> JNI <=> Native <=> COM connectivity.
    [http://bloggershetty.blogspot.com/2004/12/java-jni-com-activex-bridge-lots-of.html]
    However,if you are looking for ready made solutions ?
    Implementation any one of the solutions stated below might serve your cause.
    Open Source Solutions:
    [http://j-interop.org/]
    [http://www.danadler.com/jacob/]
    Commercial Solutions:
    [http://javacombridge.com/]
    [http://www.jnbridge.com/]
    [http://www.nevaobject.com/j2cdetails.asp?kw=java%20com%20bridge]
    [http://j-integra.intrinsyc.com/]
    Hope this might help :)
    REGARDS,
    RaHuL

  • How to create and implement a new work schedule rule successfully?

    Dear Community,
    How to create and implement a new work schedule rule successfully?
    In other words, what are all the basic steps to create and implement a new work schedule rule successfully?
    Thanks in advance.

    Hi,
    Follow the below steps to create Work Schedule:
    Holiday Calendar
    Transaction Code: SCAL
    Holiday calendar comprises of list of paid holidays to be given to employees on festivals by the company.
    Personnel Area/SubArea Groupings
    Go to SPRO --> Time Management --->Work Schedules --> Personnel SubArea Groupings
    Maintain perosnnel area/Subarea groupings for work schedule.
    i.e. Suppose in Mumbai you have WS = GEN ( 10 to 6) and in Chennai you have WS = NORM ( 8 to 4 )
    Work Schedule
    Go to SPRO --> Time Management --->Work Schedules -->Daily Work Schedules
    Go to SPRO --> Time Management --->Work Schedules -->Period Work Schedules
    Daily Work Schedule is actually your office timings with breaks (paid /unpaid) i.e. Planned Working Time which is then included
    in Period Work Schedule to make a week ( M T W T F S S )
    Daily Work Schedule (i.e. Day) -
    > Period Work Schedule (i.e. Week)
    Work Schedule Rules
    Go to SPRO --> Time Management --->Work Schedules -->Work Schedule Rules and Work Schedules
    After doing above mentioned configurations,maintain employee group/subgroup groupings in which you have to define which calendar is applicable for which type of employees for which work schedule.
    You will maintain this work schedule in infotype 0007 - Planned Working Time of employee via transaction code - PA30

  • How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    1) Since JSTL libraries are provided as Web application libraries, they must be deployed before the Web application that is using JSTL functionality is deployed. The libraries can be deployed using the Administration Console or with the command-line weblogic.Deployer tool.
    Here’s an example of deploying a JSTL 1.2 library using the weblogic.Deployer command-line:
    java weblogic.Deployer -adminurl t3://localhost:7001
    -user weblogic -password weblogic
    -deploy -library
    d:/beahome/wlserver_10.3/common/deployable-libraries/jstl-1.2.war
    This command deploys the JSTL 1.2 library using the default library-name, specification-version and implementation-version defined by the MANIFEST.MF in the library.
    After a library is deployed, the extension-name, specification-version and implementation-version of the library can be found in Administration console. This information can also be found in the MANIFEST.MF file of the library WAR file.
    For more information on deploying a Web module refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/deployment/deployunits.html
    2) To reference a JSF or JSTL library, a standard web application can define a <library-ref> descriptor in the application’s weblogic.xml file. Here is an example:
    <library-ref>
    <library-name>jsf</library-name>
    <specification-version>1.2</specification-version>
    <implementation-version>1.2.0</implementation-version>
    <exact-match>false</exact-match>
    </library-ref>
    For more information on referencing a Web application library refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/programming/libraries.html
    3) Create a sample JSP in your application and JSP should look as shown below
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>TestJSTL</title>
    </head>
    <body>
    <c:set var="topic" value="JSTL" />     
    <c:out value="${topic}" />
    </body>
    </html>
    4) Create WAR and deploy and test.
    Edited by: Murali Veligeti on Jul 26, 2012 9:00 AM

Maybe you are looking for

  • How do I use Page Grouping to make my form/subforms flow across multiple pages?

    I have every text box set to flow, but one page is not flowing into the next. For one thing, it stops entirely. For another, the content is interfering with the Master Page. I read than Page Grouping can alleviate this issue, but I have no clue how t

  • I am trying to take out my fan in my Compaq Presario CQ50 but I can't access it....?

    I am following this guide (http://www.insidemylaptop.com/remove-mot- and I skipped removing the memory, WIFI, and DVD. I don't want to do all that. Right now I am at the part where you take over the top cover but I can't get it off. Do I have to go t

  • Redeeming iTunes credit has worked before, but not now.

    I have an iTunes credit that won't apply when I make an inapp purchase. It went straight to the bank account. Before, iTunes credits were applied before other means were applied. Any suggestions?

  • IP Address reversed?

    First thing - this is *not* a question about Reverse DNS. I've recently replaced our router at home and since then our DNS is resolving one of our company's domain names incorrectly - specifically the IP address is being returned in reverse order. So

  • Monitor window problems in CS4?

    I just upgraded to CS4 from an older version.  I have Premiere Pro 4.2.1.  I'm using it on a Windows XP machine. The monitor window is not behaving at all as expected. I imported a Photoshop file to use as a still for a few seconds.  The thumbnail in