cancel
Showing results for 
Search instead for 
Did you mean: 

Set user and password calling an url in Iframe

Former Member
0 Kudos

Hi,

on a web dynpro I have an Iframe calling an url, but this url asks for authentication showing a popup for user and password before displaying the page.

I have to set these informations so that the popup is not diplayed and the user can see only next page. Is there a way to do this?

Regards,

Anita

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

No, it is not an iview, it is an external system.

I know that IFrame is deprecated but I don't know what to use instead.

Yestarday I've coded the following code, but it is not working.

Config.registerSmbURLHandler();

String location = "http://XYZ";

String domain = "ZZZ";

String user = "XXX";

String password = "YYY";

try {

Config.setProperty(

"jcifs.netbios.hostname",

Config.getProperty(

"jcifs.netbios.hostname",

InetAddress.getLocalHost().getHostName()));

URL url = new URL(location);

BufferedReader reader =

new BufferedReader(new InputStreamReader(url.openStream()));

String line;

while ((line = reader.readLine()) != null) {

System.out.println(line);

}

Former Member
0 Kudos

Hi,

i'm still investigating the type of the popup, but I've tried passing parameters and it is not working. In there any other solution I can try? Are there specific classes to set this informations?

Regards,

Anita

Former Member
0 Kudos

Hi,

Are you calling the URL of a portal page/iview? If so, then make sure that you have all the user mappings in place. By the way, the iFrame control has been deprecated. You might want to take care of that.

Regards,

Satyajit.

Former Member
0 Kudos

Hi Anita,

Assuming a jsp page that you are calling then you can append the Username and password with the url.

i.e. : URL + & parameter name = value ... and so on.

Now you need to conditionally suppress the popup by picking it up from the URL

you can use request.getParameter("Name of the Parameter").

Regards

Amit

Former Member
0 Kudos

Hi,

When you call the URL in the IFrame, add the user name and password values in the http URL as URL parameters.

Former Member
0 Kudos

Hi Anita,

Here can u elaborate on the nature of the pop-up i.e URL's type (is it a jsp,servelet etc).