on 09-19-2009 8:07 PM
Experts,
THis is for CRM. I have a button called 'Go' in JSP (developed using NWDS)
1. When I click on the button, how can I capture the events?
2. After clicking on the event, I need to call the Java class to perform some backend activity. Pls guide me how?
3. After this, goto next page called result.jsp.
I've gone thro, "Development and Extension Guide u2013 SAP E-Commerce 7.0", but I dont understand how to intergrate the JSP & actions.
Please advise with steps & code..Appreciate your help..
BM
Hello there,
The simplest way I would recommend will be create a web module project in NWDS.[File ->New Web Module Project]
Create 2 JSP pages in the webproject[ A.jsp and B.jsp]
The first JSP page will have tags like this.
<body>
<form action="B.jsp">
<button >Submit </button>
</form> </body>
Once the Submit button is submitted the execution goes to the 2nd JSP page as provied as submit.jsp here.
In the second JSP page you can read the parameters from first page and perform the Java Operation. Also you can make use of Java Beans for the back end call. After this you can forward it to a another page.
Java Beans with code sampe [Removed by the moderator.]
Also check this for the entire set of JSP examples [Removed by the moderator.]
Let me know if you need any further information
Regards,
Vivek
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 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.