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 to call JSP from MRE domain in an HTML residing on MRE using POST method

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to call JSP from MRE domain in an HTML residing on MRE using POST method
 Login/Join
 
<Shalini>
posted
var _json_url=_ips+"/ibi_apps/WFServlet?IBIMR_domain=cityofho\/cityofho.htm&IBIMR_fex=app\/save_cap.jsp&IS_CONFIRM="+confirm+'&GRANT_YR='+_gryyear +"&IBIMR_random=" + Math.random();
alert(_json_url);

------CALL

$.post(_json_url,{ "data": json,"HEJ_ID":_hej_id },
function(data){ alert(data); });


My JSP file is in the MRE folder and the HTML I am call it from is also in the same folder. But I am enable to call the JSP file

Can some please guide me what I am doing wrong.
 
Report This Post
Virtuoso
posted Hide Post
I don't think WFServlet was designed to "run" JSP files. As far as i know, it's purpose is to make the proper connection to the Reporting Server to load/run .fex and .htm files.

I think JSP pages should be placed in a valid Context location as per you Application Server, and not as MRE resources.

In a classic model you would define an application context in Tomcat or whichever app server you use and place your JSP file there.

You should then be able to run your JSP page directly from your browser by using something like:

yourhost[port]/myjsp/save_cap.jsp?IS_CONFIRM=Y&GRANT_YR=2012


If that worked, then you can use the very same URL to perform your Ajax call.

I just don't see it working from within the MRE, but I can obviously be wrong. The fact that I've never seen that done like that does not mean it's not possible ... it just looks strange to me.


Beyond that, make sure you use properly encoding when creating your URL. I doubt "\/" is a valid way to escape "/" in your parameter values. You should use %2F instead.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
<Shalini>
posted
Thanks a lot. It is running from http://localhost:8080/approot/...FIRM=Y&GRANT_YR=2012.


I wanted it to run from MRE.
 
Report 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 to call JSP from MRE domain in an HTML residing on MRE using POST method

Copyright © 1996-2020 Information Builders