Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     CopySessionVarToWFVar

Read-Only Read-Only Topic
Go
Search
Notify
Tools
CopySessionVarToWFVar
 Login/Join
 
Platinum Member
posted
I am tryiong to copy a session variable to a Web Focus variable.

httpsessionvar = theName
wfvar = MYVAR
CopySessionVarToWFVar(httpsessionvar,wfvar)
RETCODE NE 0
IBIF_ex=courses

MYVAR (pass)

theName is my session variable which i set from JSP. After setting this i call a Web Focus procedure using:
ort/ibi_apps/WFServlet?IBIF_ex%20=getuser.fex%20&%20IBIC_server=EDASERVE">

This is my site.wfs code
and my entry in the client for
WFEXT is ibi.webfoc.WFEXTDefault
But i always get an error. Anything which needs to be changed?
 
Posts: 109 | Registered: January 31, 2006Report This Post
Virtuoso
posted Hide Post
Sorry if these questions seem stupid:

- is the jsp in "/ibi_apps"?
- are you creating the session with "getSession()" or getSession(true)" in your jsp?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Platinum Member
posted Hide Post
The JSP is in ibi_apps
im creating a session variable with
HttpSession sess = request.getSession(true);
sess.getAttribute( "theName" )


i tried both getSession and getSession(true)

This message has been edited. Last edited by: Karanth,
 
Posts: 109 | Registered: January 31, 2006Report This Post
Master
posted Hide Post
you shoud be using setAttribute to create the attribute. If it were me I would create the attribute with 1 jsp and then use another jsp to check.display the attribute before even trying to get WebFOCUS involved. This way you know that teh jsp is working correctly.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
yes i did the same but still it does not copy to the Web Focus variable
 
Posts: 109 | Registered: January 31, 2006Report This Post
Master
posted Hide Post
I think you just missing the SET.

wfvar=MYVAR
sessionvar=theName
<call>CopyHTTPCookieToWFVar(sessionvar, wfvar)

<if>MYVAR EQ "null"
  IBIF_ex=ERROR
<else>
  IBIF_ex=courses
<endif>

<SET>MYVAR(pass)




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
no I have the SET in site.wfs. While copying and pasting i dont know how it got missed out.
 
Posts: 109 | Registered: January 31, 2006Report This Post
Master
posted Hide Post
What Version of WebFOCUS are you using




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Master
posted Hide Post
Sorry you need the call on the from of the
CopySessionVarToWFVar(httpsessionvar,wfvar)
<call> CopySessionVarToWFVar(httpsessionvar,wfvar)




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
This worked finally. thanks a lot, Texas
 
Posts: 109 | Registered: January 31, 2006Report This Post
Member
posted Hide Post
I have the WebFocus WebServer and AppServer on different Unix Computers.

The URL to HTML page works fine
http://ftwaxwfcp001.iss.bnr.com/approot/en_rel/test_jsp.html

But the URL to JSP does not work
http://ftwaxwfcp001.iss.bnr.com/approot/en_rel/test_jsp.jsp
(I also tried .com:8080 ...)

Is there already a default JSP Engine on the WebServer?
How should I try the URL for the JSP?

Thanks.

Zhi


ZML
 
Posts: 3 | Registered: October 13, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     CopySessionVarToWFVar

Copyright © 1996-2020 Information Builders