Solved

How to fetch data from JSP installed as war file on SAP XI/PI

Posted on 2014-02-05
1
414 Views
Last Modified: 2014-03-07
I have a war file containing jsp and servlet.
I need to fetch some response data from JSP/Servlet class.

The war file got installed on SAP XI/PI without any error using NWDS by BASIS team.
 
I could see some HTML data on to welcome page.
I am planning to get the required java data from JSP.

Is there any issues in that approach?
0
Comment
Question by:jgdvishnu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
jgdvishnu earned 0 total points
ID: 39913622
Steps:-
1) Making the contentType="application/XML;charset=UTF-8"
2) returning the class's method will return the value on to the page directly.

As shown below
<%@ page language="java" contentType="application/XML; charset=UTF-8"
    pageEncoding="UTF-8" import="<ClassName>"%>  


<% String id = request.getParameter("id");
    String shipname = request.getParameter("shipname");

if ((id != null) && (shipname != null)){
	
String concatString = new ClassName().helloFromC(id, shipname);
out.println("Concat String: "+concatString);
out.flush();
}%>

Open in new window

0

Featured Post

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question