Skip to Content
avatar image
Former Member

NWDS - JSP & Java

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 20, 2009 at 02:38 PM

    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 http://www.exampledepot.com/egs/javax.servlet.jsp/usebean.jsp.html

    Also check this for the entire set of JSP examples http://www.exampledepot.com/egs/javax.servlet.jsp/pkg.html

    Let me know if you need any further information

    Regards,

    Vivek

    Add comment
    10|10000 characters needed characters exceeded