on 06-14-2011 11:32 AM
Hey
Im tryng to make a page, related to a top navigation node ( ( Role-Login ) Page will be default entry point of the role ) with a custom login form for users. Ive seen some guides and ive made the form, and its almost working the problem is:
when i click the submit form button i have to click a navigation node for changes to take effect this might be related to my form action (" ") i probably have to force refresh, im using a custom html with j_user and j_password fields only
I want the submit button to redirect the user to server/irj/portal after the login so he sees the corresponding items
Any suggestion ?
Anyone have any suggestion regarding this one?
I basicly wanna know what values should my form onaction and onsubmit have to do the job.
I want the form to redirect the user to /irj/portal and he should be authenticated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you will have to use com.sap.security.core.sapmimp.logon.LogonBean
Create a bean as following
<jsp:useBean id="logonBean" class="com.sap.security.core.sapmimp.logon.LogonBean" scope="session"/>
and then put onaction as
method="post" action="<%=inPortal?"":logonBean.getLogonURL(proxy, null)%>"
Regards,
Atul
Hi Phatinox ,
As you are using j_user and j_password then use below code:
action=
"/irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default";
// Or you can use -
// Or you can use -
//As irj/portal is default so if we are not writing anything in
//action then also it will go to the irj/portal
// It will be better if we use action="";
Regards,
Piyush
Thanks for the answer the portallauncher was something that i havent tried before.
It works but i have a problem:
this form is in a iframe and so action will refresh the content of the iframe window and not the parent one
ive made action: Javascript:redirect()
with parent.window.location.href = portallauncherurl;
but it does not work, it takes me to the default login screen
how can i solve this?
also how can i control authentication failure and error messages at client-side? AJAX?
Edited by: Phatinox on Jun 16, 2011 5:55 PM
Hi ,
In Form tag you try
<Form ..... target="_parent">
Please let me know .If its not working then please explain in details what you have done till now
because from above comments i did not get much idea.. i just got that you want to login to the portal
using j_user and j_password.
Regards,
Piyush
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.