Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-02-05
1
Medium Priority
?
419 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

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

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

For some reason Google Apps has decided to reserve 'www' for your new domain which results in an error when trying to map the web address 'www' to a certain site in your Google Sites. The error is 'this address is already being used' and after some …
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

879 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