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     calling jsp from fex and vice versa

Read-Only Read-Only Topic
Go
Search
Notify
Tools
calling jsp from fex and vice versa
 Login/Join
 
Member
posted
Hi all,

Is it possible to call a JSP from FEX and vice versa.

My requirement is

1. from an FEX i need to pass a value to jsp

2. jsp takes the parameter and executes a query to fetch some values.

3. I will edit those values and update the table

4. Once it is done i need to go back to the parent fex.

Thanks,
Kummy
 
Posts: 23 | Registered: April 20, 2007Report This Post
Expert
posted Hide Post
You're asking for a lot!

Here is half the work - calling a JSP from a FEX:

1) calljsp1.fex runs a report with drill-down on COUNTRY column calling calljsp.fex

-*-- calljsp1.fex ----------------------

TABLE FILE CAR
SUM
SALES/D10
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, FOCEXEC=CALLJSP (COUNTRY=COUNTRY), $
ENDSTYLE
END
-RUN

2) calljsp.fex has HTML to call test1.jsp passing the selected COUNTRY

-*-- calljsp.fex -----------------------

-DEFAULT &COUNTRY = 'FRANCE';

-HTMLFORM BEGIN
<HTML>
<BODY OnLoad="document.forms[0].submit();">

<form method="post" action="/eqcontrol/jsp/test1.jsp">
<input type="hidden" name="PARM1" value="!IBI.AMP.COUNTRY;">
</form>

</BODY>
</HTML>
-HTMLFORM END

3) test1.jsp displays the value that was passed.

<!-- test1.jsp --------------------- -->
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>

<HTML>
<BODY>
<head>
<c:set var="PARM1" scope="application" value="${param.PARM1}" />

<%
String vParm1 = (String)request.getParameter("PARM1");
out.println("Parm Name: PARM1: " + "/ Parm Value: " + vParm1);
%>

</BODY>
</HTML>


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
thank you francis,

can i know in which folder i should keep my JSP.

may i know the specific path and settings i need to take care to achieve this.
 
Posts: 23 | Registered: April 20, 2007Report This Post
Expert
posted Hide Post
Now you are asking non-WebFOCUS questions. You have to add an alias of the folder you keep your JSP in to the Java container app (Tomcat, New Atlanta...). This is done differently depending on the Java container app.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     calling jsp from fex and vice versa

Copyright © 1996-2020 Information Builders