Help coderanch get a
new server
by contributing to the fundraiser

Prashant Dasari

Greenhorn
+ Follow
since Oct 28, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Prashant Dasari

Do you still get 404 error?

WEB-INF/ ProductForm.jsp
WEB-INF/ProductDetails.jsp



Put the files ProductForm.jsp and ProductDetails.jsp in WebContent. Right click on ProductForm.jsp and Run as -> run on server. Select the server -> remove all except the project. Now you should atleast see the jsp without the error.
13 years ago

WEB-INF/lib/web.xml



web.xml must be in WEB-INF and not WEB-INF/lib
13 years ago

I need ProductForm.jsp to appear once I click on Run.
I haven't put anything under <welcome file> tag and manually writing ProductForm at the end of the url.



If you don't put anything in <welcome file> tag how can you expect ProductForm.jsp to show up when you click run?

I've taken out struts.xml of app02b package.



I don't understand this. I think app02b is the name of your project. Under this project You will find Java Resources:src. This folder must contain struts.xml.
13 years ago
When I started, I wanted to learn from the tutorials online, but I did not understand much. Then a couple of books helped me. I started with struts1 and switched over to Struts2. I felt Struts2 is easier to learn than Struts1. Starting with Struts1 helps us to understand the flow of execution better. You can learn Struts2 without learning Struts1, but a brief introduction of Struts1 helps.

The books which helped me:-
Professional Jakarta Struts 1.1 by James Goodwill, Richard Hightower
Struts 2 Black Book
13 years ago
JSP code:



Servlet code:

13 years ago
JSP
Hi Rohan,

Hope this helps...

user.jsp


UserAction.java


struts.xml


success.jsp


All the best
13 years ago