Wednesday, 25 November 2015

Oracle ADF - Change of jsessionid after login

Add the following line in your code.

Subject mySubject = Authentication.login(handler);
ServletAuthentication.runAs(mySubject, request);
ServletAuthentication.generateNewSessionID(request);

Monday, 19 October 2015

How to handle exception in JSP?

Ans: Friends, There are two ways to handle exception in JSP.

1.) errorPage
2.) isErrorPage

1.) errorPage: In case of error page you have to mention the jsp file name where you want to handle the exception.It means you do want to handle the exception on same page.

Syntax: <%@ page errorPage="sharma.jsp"%>  where sharma.jsp is a another jsp file where you handle your exception.

2.) isErrorPage: It works on value.It has two values true and false.If you use true value it means the page you are mentioning this property will also handle exception code.It will not transfer control to any other page.
Syntax: <%@ page isErrorPage="true"%>

What is entity cache in Oracle ADF?

Ans: To manage the updates of database.If we do some modification at an entity level then it will store in entity cache until we commit into database.So we can perform different task of data before committing into database using entity cache.It also increase query execution time and database performance.

What is View Accessors in Oracle ADF?

Ans: It is a kind of technic to access view object from another view object or entity object.