on 01-11-2005 12:25 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more question. As far as the second response JSP is concerned, does that need to have an associated DynPage with it? Or can it be any JSP located in the /pagelet folder?
-Vu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Thanks for the response. I followed the example from the PDK and also did it your way. Nothing happens when I click the button. Do I have to use HTMLB button to get my request/response objects populated correctly?
-Vu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.