cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing Portal Logon page

Former Member
0 Kudos

Hi,

While customizing the logon page i am facing an issue.

I have added 2 jsp pages, 1 bean, 1controller and 1 utility file. i am trying to navigate from one jsp to another using the controller class by writing the onSubmit method in the controller. This feature is not working even after adding a new component in portalapps.xml for this controller.

The initiallize method in this controller is working as i am able to view the initial jsp.

Please help me in resolving this issue.

Thanks and Regards

Gopi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Closing the ticket

shaila_kasha
Contributor
0 Kudos

Hi Gopi,

If you are tying to use the jsp pages make sure we handle the events with switch cases..

like if state is 'initial' go to initial.jsp file and if 'final' go to final.jsp file.

please try including this code.. at your jspdyn page

public void doProcessBeforeOutput() throws PageException {

switch (state) {

case INITIAL_STATE :

this.setJspName("Initialpage.jsp");

break;

case FINAL_STATE :

this.setJspName("Finalpage.jsp");

break;

}

}

public void onSubmit(Event event) throws PageException {

state = FINAL_STATE;

}

public void onBack(Event event) throws PageException {

state = INITIAL_STATE;

}

Please let us know what implementation for customization login page are you required to do.

hope this scriplet of code helps you.

Regards,

Shaila