on 05-23-2007 8:49 AM
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
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);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you call the URL in the IFrame, add the user name and password values in the http URL as URL parameters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anita,
Here can u elaborate on the nature of the pop-up i.e URL's type (is it a jsp,servelet etc).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.