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     Call a JSP from a focexec with parameters without any authentication

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Call a JSP from a focexec with parameters without any authentication
 Login/Join
 
Member
posted
Hi

1) My issue is the following: I am unable to run a report from BOTLDATA using the field REPORT which is a BLOB field.

=> Is it possible using WebFOCUS to create a focexec to read and correctly
display the content of this field ?

2) As a workaround, I have tried to execute getreport.jsp from a focexec.
I am using the REPORTID and VERSION fields in the JSP call.
But, we hit the LOGON page.
Once authenticated, more calls using the JSP are directly displaying the report.

=> What should be coded in the focexec to directly feed the userid and &
password ?
Currently, we have coded :
TYPE=DATA, COLUMN=HISTOPDF, URL=getreport?(id=REPORTGID version=VERSION),$ "

Thanks for your investigation.
Sevim
 
Posts: 6 | Location: Luxemburg | Registered: May 09, 2003Report This Post
Virtuoso
posted Hide Post
You might want to consider makeing copies of two files:
/library/liblogon.jsp and /library/libgetreport.jsp (<- is the actual jsp that is called when you refer to getreport.jsp), and put them in your own directory under the rcaster web application [for example /mylibrary).
In your new liblogon.jsp, there are parameters for establishing the user/pass (IBIB_user, IBIB_pass) that you can pass as parameters on the url.
You then alter the "response.sendRedirect" method in liblogon.jsp to call your new libgetreport.jsp instead of the servlet call that is currently there.
Then you can alter the libgetreport.jsp and remove all the stuff you do not want the users to see or have access to (like the delete option).

Now, no one on this forum would ever recomend that you send the userid and password as part of a url, but that is your call. At a minimum, you might want to have the url call a html page that contains a form with the user/pass that will call the /mylibrary/liblogon.jsp via a auto submit post action. Although that is not secure, it is more secure that putting a user/pass as plain text query string.

Hope this helps.


"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
Have you read the documentation of how to define a Blob as long text, and use the Focus format of TXnnn to describe it? Search the tech doc (top of page) on the word BLOB, and choose the database you are working with..
Also you need to let the database know that the BLOB is text, ENGINE [DB2] SET CONVERSION LONGCHAR {ALPHA|TEXT|BLOB}


Release 7.6.9
Windows
HTML
 
Posts: 226 | Registered: June 08, 2003Report 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     Call a JSP from a focexec with parameters without any authentication

Copyright © 1996-2020 Information Builders