Solved

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

Posted on 2014-02-05
1
394 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoresClump  challenge 31 108
count7 challenge 12 69
eclipse formatting 6 40
github account with ecipse 1 16
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now