cancel
Showing results for 
Search instead for 
Did you mean: 

Error bean & messages in logon page of portal

Former Member
0 Kudos

Hi,

I analysing portal logon.par. In all JSP files i saw only error.getmessage(), but no where error.setmessage(). Could anyone explain me where the error message has been set in error bean?

Thanks,

Srikanth.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member189631
Active Contributor
0 Kudos

Srikanth,

Its possible to display the customized error message in logon page.

You need to add the cutom error message in the corresponding text file under umelogonbase.jar.

Just extract the logonbase.jar into your local system and find out the text file which contains error messages and edit the file.

Double click on the jar / open with winzip and add the modified text file into unelogonbase.jar to overwrite the old file the uplod the logon par file along with the modified jar.

Ram

Former Member
0 Kudos

Hi,

where do you generate this error? In a login module?

I have had a similar problem (my error message was created in a custom login module) and resolved using std properties, like Jorg said.

If you want a way to display your own message in umLogonPage.jsp, you have to create new ErrorBean and assign it to current ErrorBean error

error = new ErrorBean(new Message("Your message"));

Hope this helps

regards

Cristian

Edited by: Cristian Fusi on Nov 11, 2009 1:07 PM

Former Member
0 Kudos

Hi,

I wanted to use my own message key instead of std. messages in jar file. How can send custom messages using errorbean.

Thanks,

Srikanth.

Former Member
0 Kudos

Hi Srikanth,

Did you figure out a way to do this?. I have the same requirment.

Please share if you have any info

Thanks

Ravi

0 Kudos

Hi;

If you want to customize the error messages

you can try to change some properties in PORTAL-INF/Lib/umelogonbase.jar.

For example

logonMessages_en.properties ->

PASSWORD_TOO_SHORT=Invalid new password (must be at least {0,number,integer} characters long)

Hope this helps.