Hi,
I am using latest JRE 21 and latest eclipse EE.
My project Structure:
-Java Resources
>src/main/java
>arjun codes
>DemoServlet.java
-src
>main
>
java
>arjuncodes
>DemoServlet.java
>webapp
>META-INF
>WEB-INF
>lib
>web.xml
>index.jsp
codes:
index.jsp
DemoServlet.java
web.xml
within <web-app>:
Error: When i enter 2 numbers and then click on submit, this is the error:
Error in browser: Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Error in eclipse debugger:
java.lang.ClassNotFoundException: arjuncodes.DemoServlet
Conclusion: clearly its not able to find DemoServlet class, but I cant figure out what else path name i could have given in <servlet-class> in web.xml (refer the code above for web.xml).
I am learning
servlets and
jsp so please bear with me.
Much thanks and Regards
I am expecting that after clicking on submit, it should redirect to page and sum should be written on this new redirected page