public class Processor {
public Processor() {
}
public String getHTML() {
WebConversation conversation = new WebConversation();
WebRequest req = new GetMethodWebRequest(“http://www.abc.com/login”);
try {
HttpUnitOptions.setScriptingEnabled(true);
HttpUnitOptions.setExceptionsThrownOnScriptError(false);
WebResponse res = conversation.getResource(req);
WebForm form = res.getForms()[0];
String formName = form.getName();
form.setParameter(“user”, “test”);
form.setParameter(“password”, “pwd”);
WebResponse formResponse = form.submit();
String htmlText = formResponse.getText();
return htmlText;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
}
I am currently working on setting up Oracle WebCenter/Oracle Weblogic portal for developing a sample application. One of the aspects we need to take care of is provide navigable links to other core as well as support applications. In the production set up all the applications will be hooked up using Single Sign On(SSO), however in the demo version we are not using a SSO setup. Each application has its individual login page. Therefore, while navigating from one application to another, or from the portal to individual application, the user needs to supply security credentials, this is irritating from an user experience point of view.
I am currently working on setting up Oracle WebCenter/Oracle Weblogic portal for developing a sample application. One of the aspects we need to take care of is provide navigable links to other core as well as support applications. In the production set up all the applications will be hooked up using Single Sign On(SSO), however in the demo version we are not using a SSO setup. Each application has its individual login page. Therefore, while navigating from one application to another, or from the portal to individual application, the user needs to supply security credentials, this is irritating from an user experience point of view.