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     [CLOSED] java call jsp then call WebFOCUS fail

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] java call jsp then call WebFOCUS fail
 Login/Join
 
Member
posted
Dear Sir,

We know use JSP to call WebFOCUS is noproblem. User warite a JSP program to receive parameters from another web server, then call WebFOCUS to retrieve data feom database. We found remote java progrm call JSP is ok, but WebFOCUS program cannot run. We try direct call jsp program, it's ok.

It seems after java call jsp, jsp cannot summit task to call WebFOCUS. Following is jsp program. Any one have this experience ?

Best Regards,
B. H. Tang
<%@ page language="java" contentType="text/html;charset=Big5" pageEncoding="BIG5"%>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.io.*" %>


<%
	DateFormat   df   =   new   SimpleDateFormat( "yyyyMMddHHmmss"); 
	System.out.println(df.format(new Date()));
 	String IN_FILENAME = "C:\\" + df.format(new Date()) + ".xml";
 	 	
	String BILL_MONTH = request.getParameter("BILL_MONTH");
	String BILL_OFFICE = request.getParameter("BILL_OFFICE");

%>


<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=BIG5">
		<title>Please keyin file name</title>
	</head>
	<body onLoad="java_script: form1.submit[);">
		<form name="form1" method="post" target="_blank" action="http://192.168.106.50:8080/ibi_apps/WFServlet">
			<table>
				<INPUT TYPE="HIDDEN" NAME="IBIF_ex" VALUE="SAMPLE_3_XML">
				<INPUT TYPE="HIDDEN" NAME="BILL_MONTH" VALUE="<%=BILL_MONTH%>">
				<INPUT TYPE="HIDDEN" NAME="BILL_OFFICE" VALUE="<%=BILL_OFFICE%>">
				<INPUT TYPE="HIDDEN" NAME="IN_FILENAME" VALUE="<%=IN_FILENAME%>">
			</table>
		</form>
	</body>
</html>

This message has been edited. Last edited by: Kerry,
 
Posts: 4 | Registered: May 03, 2007Report This Post
Guru
posted Hide Post
Hi Tang,

A JSP page can call a WebFOCUS report with no probs.

All you need is to frame the URL for the report and pass it to a hyperlink or submit it on JSP form's action...

quote:



Along with this, if your FEX needs more params pass it on as query parameters with the URL.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Guru
posted Hide Post
Your JSP code does'nt show any call to WFservlet as below...

http:// Server : poprt
/ibi_apps?WFServlet?IBIC_server=DW&

IBIF_ex=samplehtml&IBIAPP_app=unwanted


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Expert
posted Hide Post
Could you pleae post your code within the code tags.

Seems your onload event has an error, there is a square bracket in the submit.

<body onLoad="java_script: form1.submit[);">


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
I have the same issue which B.H. Tang has. Any solution for this. Ramkumar, can you please put your suggestion inside the tag.


8.2.06
Windows, All Formats
 
Posts: 184 | Registered: December 27, 2013Report 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     [CLOSED] java call jsp then call WebFOCUS fail

Copyright © 1996-2020 Information Builders