Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
New Relic recently released its Synthetics product that allows for the creation of performance monitors that periodically test a site's performance. If you wish to test an interactive workflow New Relic employs Selenium WebDriverJS to run those test…
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.

705 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