cancel
Showing results for 
Search instead for 
Did you mean: 

comunicate with one jsp page to another

Former Member
0 Kudos

HI

in jspdynpage how should i communictae one jsp to any other file

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi chitta,,

Sorry couldnt reply was busy in the morning..

I have sample simple code ..it may help u

Now in ur controller

looks like this

public static final int PAGE1 = 0;

public static final int PAGE2 = 1;

int PAGE_STATUS = PAGE1 ;

public void doProcessBeforeOutput() throws PageException {

switch (PAGE_STATUS) {

case PAGE1 :

this.setJspName("page1.jsp");

break;

case PAGE2 :

this.setJspName("page2.jsp");

break;

}

}

public void onMyButtonClick(Event event) throws PageException {

try {

PAGE_STATUS = PAGE2;

} catch (Exception e) {

PAGE_STATUS = ERROR_PAGE;

}

Cheers

Swathi

Do offer pts nd ncourage:-)

Former Member
0 Kudos

i have sent a sample code to ur mail id

Hope it clicks

Cheers

Swathi

Do offer pts nd ncourage:-)

Answers (2)

Answers (2)

0 Kudos

Hi,

Check this:

http://help.sap.com/saphelp_nw04/helpdata/en/95/cfa441cd47a209e10000000a155106/frameset.htm

Greetings,

Praveen Gudapati

p.s. Points are always welcome for helpful answers

Former Member
0 Kudos