As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi we are trying to pass cookies into our servers to set &VARS and are not having much luck. Here is the code I am setting in the 'customer settings' section of the server: ----------------------------------------------------------------------------- wfvar1=ClassFilter wfvar2=SubClassFilter wfvar3=CustomerFilter
I am not sure if I am setting it right or what exactly is going on but essentially we are trying to pass a class, subclass, and account number from a cookie to 3 &VARS (classfilter, subclassfilter, customerfilter).
Any help would be great, thanks.
PS: the [call] and [set]s are actually in <> but I cannot use those when I post here.
dev: WF 7.6.5 w/IIS + Tomcat
prod: WF 7.6.5 w/IIS + Tomcat
Posts: 153 | Location: Chicago, IL | Registered: February 24, 2006
CopyHTTPCookieToWFVar public java.lang.Long CopyHTTPCookieToWFVar(java.lang.String[] output, javax.servlet.http.HttpServletRequest request, java.lang.String cookieName, java.lang.String wfVarName)This method copies the contents of an HTTP cookie into a WFServlet variable.
Parameters: output - The array of one string that will be used to return ampersand delimited name/value pairs back to the caller. This argument is an internal argument that WFServlet passes to each user method that gets called from the WFS file. request - The current HTTPServletRequest passed from the servlet. This argument is an internal argument that WFServlet passes to each user method that gets called from the WFS file. cookieName - The name of the HTTP cookie from which the value should be retrieved. wfVarName - The name of the WF Servlet variable that will contain the value. Returns: Returns 0 Upon Success Returns 999 Upon Failure
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I'm not sure if I've confused the issue, but I used the same name everywhere, I just added a prefix where necessary - w for web, c for cookie, v for variable.
The first thing I would do is verify that the cokkie values you want to pass actually exist.
I use the following JavaScript to display the cookies for the current page:
javascript:if(document.cookie.length<1){alert('No cookie for this site.')}else{alert('Cookie for this site:'+document.cookie)}
I've got this code embedded in a Shortcut on the Links toolbar of IE.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server