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     How Does JSP Get Incorporated Into The Execution Of FEX/HTML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How Does JSP Get Incorporated Into The Execution Of FEX/HTML
 Login/Join
 
Member
posted
We've recently upgraded from 5.2 to 7.1.1 (Developer Studio/Web Server/Tomcat). With the upgrade comes the ability to incorporate JSP with our FEX/HTML code.
Since we do not have a formal training project I've been tasked with finding out how to put this new stuff to work.
I'm familiar with JSP (more dangerous than effective), WebFOCUS and HTML. Just don't know where to start to tie everything together.
Any suggestions where to start?

Thanks


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
 
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005Report This Post
Master
posted Hide Post
Install the Webfocus client where you have your web server installed. Then in your jsp call WFServlet or cgi-bin based on your Webfocus installation. And also change edasprof.prf to point your fex folder.

Hope this helps


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
I was really looking for documentation on how to integrate jsp with fex. Do the jsp scripts reside in the same folder as the fex files? If not where do they go and how do they call fex?

Thanks,


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
 
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005Report This Post
Master
posted Hide Post
You can have your JSP in your current folder whatever you have now.

For ex: In Tomcat, you can save your JSP in

c:/tomcat/webapps/test/jsp/*.jsp

and you can save your FEX folder under
c:/ibi/apps/test/*.fex

or c:/tomcat/webapps/test/webfocus/*.fex

if you are saving your fex files under tomcat directory then you need to add that settings in edasprof.prf file.

App Map test c:/tomcat/webapps/test/webfocus
App Path test


In general, Webfocus client installs in webserver. All the requests will go through web server. So, when you call the report using

http://webservername/ibi_apps/WFServlet?&IBIF_ex=test.fex

you will get your report.


Hope this helps


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
Thanks, that helps a lot. But what URL do I use to start the jsp that calls the fex?
If save my jsp (date.jsp) under c:/tomcat/webapps/test/jsp/date.jsp what URL do I use to run it without having to use the :8080 port?


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
 
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005Report This Post
Master
posted Hide Post
http://servername:8080/test/jsp/date.jsp


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Silver Member
posted Hide Post
Briefly - Tomcat has a built in web server that is set to listen on port 8080. By default a web browser makes requests on port 80. To make the request on anything other than port 80, you need to specify the port (":8080").

So as you can see you need to either point an existing web server (that by default listens to port 80) such as IIS or Apache to your install of Tomcat OR tell Tomcat's built in web server to listen to port 80 instead of port 8080.

Assuming you don't have an existing web server I'd just change the Tomcat port. I'm not sure where you've installed Tomcat but look for a file called Server.xml in the Tomcat "Conf" folder. You should see an entry for the Catalina service. Change the connector port from 8080 to 80. Restart Tomcat and you should be able to make requests to that server without using the port number.

-EJL
 
Posts: 41 | Registered: January 06, 2006Report This Post
Member
posted Hide Post
I really wanted to have the IIS serve the .jsp requests on port 80 and forward them to tomcat.
How does this majic get setup in IIS?

Thanks,


Ron Woods
San Antonio Express-News
Release: WebFOCUS 7.1.1
OS/Platform: Windows XP SP2 x86 32bit
O/P Formats: Primarily pdf and xls
 
Posts: 22 | Location: San Antonio, Tx | Registered: October 20, 2005Report This Post
Silver Member
posted Hide Post
I'm not well versed in IIS setup but if you really need to use it, here is the url with directions. There may be something more specific from IBI.

http://tomcat.apache.org/connectors-doc/howto/iis.html

We have IIS running on some servers around here but there's very little reason for us to use it with our Tomcat applications. The webserver in Tomcat isn't optimized for static content but that's really not a problem if most of your stuff is dynamic. Even at that, our web traffic isn't very large so we're comfortable without using IIS or Apache for our internal users.

This message has been edited. Last edited by: EJL,
 
Posts: 41 | Registered: January 06, 2006Report This Post
Member
posted Hide Post
I have been asked to find out how we can use JSPs instead of the standard launch pages provided by the MRE. I would like to clarify what I have read in this thread.

1. Deploy the JSP on the same Web Server as used by WebFOCUS
2. Add a HTML file to the MRE which calls the deployed JSP.
3. The JSP can call the fex to run the report.

Is this the recommended approach, or should the HTML file be a driver which calls the JSP to get the parameters, then call the fex with those parameters.
 
Posts: 8 | Registered: January 12, 2006Report This Post
Expert
posted Hide Post
Why reinvent the wheel when IB provides the BID which is almost entirely JSP. It even has authentication / authorisation taken care of for you which you can even point at Active Directory if required.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Thanks Tony,

Are you saying that you can deploy JSPs in the Business Intelligence Dashboard and if can you point me in the direction of the relevant manuals?

Thanks

Declan
 
Posts: 8 | Registered: January 12, 2006Report This Post
Virtuoso
posted Hide Post
quote:
Is this the recommended approach, or should the HTML file be a driver which calls the JSP to get the parameters, then call the fex with those parameters.


I'm guessing this is not the recommended approach!

I would suggest you use the tool as designed. WebFOCUS provides an interface for building HTML lauch pages for existing reports ... use it. If you go down the JSP world, your going to have to be very careful with your security and all kinds of other things that web focus development environment shields you from. And besides, why bother have the JSP preform reflections to get the parameters when the existing interface already does that for you?


"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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How Does JSP Get Incorporated Into The Execution Of FEX/HTML

Copyright © 1996-2020 Information Builders