cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro VS. Java Servlet

Former Member
0 Kudos

Hello,

Can anyone answer me following questions ?

1) Can I somehow combine Webdynpro project and Java servlet? I need to call Java Servlet from the link of Webdynpro View. Can I somehow packaged my servlet classes in Webdynpro and expecting that it will be run.

Or I must deploy servlet standalone (into servlet container) ?

2) How can I deploy and run simple Java Servlet ?

I must to embed it in j2ee web project (resulting in .war) and than deploy ? and how ? or I must to embed .war in whole j2ee aplication project (resulting in .ear) and deploy ?

3) When I call standalone servlet from Webdynpro aplication to do work through url link, can I somehow find out which user is logged, in servlet ?

4) How can I code in Webdynpro, that on action (referenced by button activate) it will appear a new web browser window, in which I can paste some data that want to obtain by reading a file from another url-link (obtained by RFC call). I cant paste simple link, because of firewall.

5) when I try to make RFC call, in webdynpro action (referenced by button click), it will make an exception with message < 'mshost' missing >. But when make pure Java application which has this code, it will run ok (I use a jco library).

Thanks for anyone who can answer some of my questions.

(also posted to Webdynpro Forum)

Accepted Solutions (1)

Accepted Solutions (1)

guru_subramanianb
Active Contributor
0 Kudos

Hi,

I can probably answer some of your questions.

1)For this scenario look into "Linkto URL" UI element in webdynpro.Based on some event transfer the control to the servlet by providing the absolute path.

2)After deploying your servlet,go to the address bar

http://<ur was servername:port no>/<ur appl name>/<ur context root name(ur servlet name)>

Before this in ur web.xml have any enntry for ur servlet in the <servlet> node and <url pattern> node

3)Probably you have use HttpSession object for the same something similar to this HttpSession ses=request.getSession();

Hope it helps.

Regards,

Guru

P.S :- If you find answer satisfactory consider rewarding points.

Answers (0)