Hi,
I am fairly new to NW development. I've developed a new JSPDynpage.
I've exported a Par file and deployed it into my portal and created an iView by using "New from Par".
The JSP associated with the JSPDynPage is just a form that takes in data. Upon clicking the submit button, I want to be taken to a subsequent JSP for processing.
In my <form ...> tag, I have "changePassword.jsp". When I click the button, I get an error, saying changePassword.jsp not found.
My question is, can't I use the classical way of manipulating request/response objects via multiple JSPs, or do I have to use IPortalComponentRequest in one portal component.
Thanks.
Hi,
If you r using JSPDynPage and using HTMLB button, u can pass onClick event. Then when u click on button, the control comes back to
public void doProcessAfterInput() method. There you can set flag and call ur a new Jsp page. Let me give u an example.
public void doProcessBeforeOutput() throws PageException {
switch (state) {
case ChangePass_State :
this.setJspName("ChangePassword.jsp");
break;
default :
this.setJspName("Init.jsp");
break;
}
}
public void onChangePasswdButtonClicked(Event event) throws PageException {
state = ChangePass_State ;
}
this is easy and simple as control will be in ur scope.
See examples in SAP EP Java Development, you will find many solutions.
Hope this Helps.
Thanks,
Praveen
Hi Praveen,
Thanks agian for you response. I have a small test case which is not working. Please refer to this thread:
Cannot get simple JSPDynPage to WORK :(
I have 2 JSPs in my pagelet folder and am never redirected to the 2nd one. This is very strange.
Thanks!
-Vu
Add a comment