Solved

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

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange 2010, exchange 2013 1 67
replace a word with other 1 45
jboss 7.1 start up error 1 41
ejb entity bean example issue 2 17
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

830 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