on 12-04-2008 2:30 PM
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
Closing the ticket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.