Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting response from Servlet in WDPJ

Hello,

I have been provided with an Servlet URL to get some details to be populated in an WebDynpro Application.

How should i invoke the servlet url inside the webdynpro application?

Regards

Bobu

replied

Although I haven't tried it myself, I believe you could just use the normal java URL connection, i.e.

URL url = new URL("http://yourdomain/YourServlet");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
            
BufferedWriter out = new BufferedWriter( new OutputStreamWriter( conn.getOutputStream() ) );

and then handle the response of your servlet

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question