Focal Point
Call a jsp from a focexec.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5701097881

October 02, 2006, 02:03 PM
newtofocus
Call a jsp from a focexec.
I am wondering if there is a way to call a JSP page from a focexec and interprets its return code. Few lines of sample code would be greatly appreciated.

Thanks.


WF7.1.4 Prod/Test, MRE, self serve, DM
October 02, 2006, 02:22 PM
Francis Mariani
You can call a JSP page like you would call an HTML page. In that JSP page, depending on the "return code" you could branch to a WebFOCUS program.


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
December 07, 2006, 04:21 PM
albert918
Francis,

Would you please show some sample code to call a JSP Page from a .fex procedure and "Analyze" the Text Stream?

Thanks.

Zhi


ZML
December 11, 2006, 10:23 AM
Francis Mariani
Zhi, could you please provide a little more detail of what you'd like to do?

Thank you,


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
December 15, 2006, 03:25 PM
albert918
I wanted to call JSP (Servlet) Page (which may or may not be on the same WebSerever as WebFocus)
to generate graphs. Then based on the results of the JSP (Servlet), the WebFocus .FEX Procedure
analyzes the HTML Code and write out the custom HTML Tags.

The process will need to do something like the following:

-* a .FEX Procedure is called

-* The .FEX Procedure calls the JSP / Servlet Page
objectxxxJsp = Navigate("http://myserver.mycompany.com/jspgraphPage.jsp?graphParm1=..&....");

-* Suppose the JSP Page generated some HTML Code like:
--
--
....


-* QUESTION **;
-* 1) What is the FEX syntax to call the JSP Page (as the Navigate line)?

I wanted to see some working example code so that I understand how to call a JSP (or any other webpage) within a FEX.

-* 2) Is there any way to examine all the HTML Tags inside the objectxxxJsp object when the .FEX is being executed?

-* 3) Is there any way to re-write the contents of the above " ..." back into the WebFocus HTML Page, while the .FEX is being executed?

Thanks.

Zhi


ZML