Skip to Content
0
Former Member
Aug 02, 2006 at 12:47 PM

Portal- Page navigation

272 Views

Hi,

I have a JSP page namely select.jsp. this page has a button. when I click the button it should show another jsp called display.jsp. I have put both the jsps in /pagelet folder only.

I have written the code in JSPDynapage as below:

public void doProcessBeforeOutput() throws PageException {

// this.setJspName("MyAccountList.jsp");

switch (state)

{

case INITIAL_STATE:

this.setJspName("select.jsp");

break;

case DISPLAY_SELECT:

this.setJspName("Display.jsp");

break;

}

}

public void onButtonClick(Event event) throws PageException

{

state=DISPLAY_SELECT;

}

But it's not working.

Can anybody help me how can I solve this?

Thanks,

Amutha

A