cancel
Showing results for 
Search instead for 
Did you mean: 

Servlet is not working in NWDS

Former Member
0 Kudos

Hi Experts,

i have created j2ee(web module project) in nwds.

in that i have html page with 2 input fields,on submit it should call servlet (java servlet file).

Note: i have done servlet mapping in web.xml file

<servlet-mapping>

<servlet-name>AddServlet</servlet-name>

<url-pattern>/AddServlet</url-pattern>

</servlet-mapping>

i have tried with both servlet name and url pattern(when calling from submit action)

Submit action code:

<form action="/Addservlet" method=POST>

and i am getting error after submitting

404 Not Found

SAP J2EE Engine/7.00

The requested resource does not exist.

Details: Go to main page of this application!

can anybody tell me how to find out the url of the servlet?

and any document which gives the step by step procedure to dev the jsp/servlet project in nwds

Regards,

Vani R G

Accepted Solutions (0)

Answers (1)

Answers (1)

p_2_5_6_9_6_0
Active Participant
0 Kudos

Hi,

The solution is in the "Defining a URL pattern" section of this link:

[http://help.sap.com/saphelp_nw04/helpdata/en/13/e7bf3eb8b73614e10000000a114084/frameset.htm]

It seems that URL Pattern should be <url-pattern> / </url-pattern>

and

servlet name is <servlet-name> QuickReservationServlet </servlet-name>

Hope that this will help you in your project.

Thanks.

p256960