rohit prabhu

Greenhorn
+ Follow
since Dec 05, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rohit prabhu

Has anyone got the idea of how this thing could be resolved.It would really be great help.
18 years ago
After further r&d we have realised that the AuthFilter.TARGET_URL cannot be set in WLS8.1SP4.Is there any other way we can set the target URL so that J_Security_Check will always forward to the same URL for eg:-Menu.jsp
18 years ago
problem is due to the authentication mechanism that I am using.I am using Weblogic 8.1 sp4 and use WLS provided authenctication i.e. I have a login.jsp with action=j_security_check.In the WLS I have defined users and groups.

What is happening is as follows:
1. The user enters the URL.
2. The user is directed to the login page. The user enters the valid login credentials.
3. The request is directed to the requested URL.
4. The user performs a select operation. A set of records appear on the screen.
5. The user selects a record and modifies the existing record. But the user does not save the change. After a period greater than the session timeout, the user clicks on the "Save" button. The session is timed out and the request is redirected to the main login page.
6. The user again enters the valid login credentials, but the page is directed to the action mapping for the 'update' operation instead of the Main page, due to which a NullPointerException occurs, as the framework tries to retrieve data that is not available and populate the form.

The reason is that with WLS security implementation the URL is stored and after successful Login this URL is dished out.
What I would like to know is how can I make the j_security_check always forward to the same page e.g. Menu.jsp rather than using URL stored before timeout occurred.

Hope someone can help me on this....

Thanks & Regards,
Rohit
18 years ago
HI After further debugging I have reached a conclusion that the problem is due to the authentication mechanism that I am using.I am using Weblogic 8.1 sp4 and use WLS provided authenctication i.e. I have a login.jsp with action=j_security_check.In the WLS I have defined users and groups.

What is happening is as follows:
1. The user enters the URL.
2. The user is directed to the login page. The user enters the valid login credentials.
3. The request is directed to the requested URL.
4. The user performs a select operation. A set of records appear on the screen.
5. The user selects a record and modifies the existing record. But the user does not save the change. After a period greater than the session timeout, the user clicks on the "Save" button. The session is timed out and the request is redirected to the main login page.
6. The user again enters the valid login credentials, but the page is directed to the action mapping for the 'update' operation instead of the Main page, due to which a NullPointerException occurs, as the framework tries to retrieve data that is not available and populate the form.

The reason is that with WLS security implementation the URL is stored and after successful Login this URL is dished out.
What I would like to know is how can I make the j_security_check always forward to the same page e.g. Menu.jsp rather than using URL stored before timeout occurred.

Hope someone can help me on this....

Thanks & Regards,
Rohit
18 years ago
I am facing a major problem in struts.I have a code for session time out.
After that it brings me to the login page.But Once i login again it throws a null pointer Exception.I have cleared the session as well.But still for some reason the values are stored in the request.Is there a place in struts where we need to clear the values?Because of which it is getting these walues even after clearing the session.
Please if anyone could give a answer immediately.
Thanks in advance..
18 years ago
Well u r fuction doesnt do any thing.it does return a value as well.
Write return null; in the fuction and the rest would work.
18 years ago
get Set are not used in HTML.I think it would be better if you give more details.get and set are used in jsp's and java for getting values or setting values.
18 years ago
JSP