Hi i am a java learner.Can anybody pls guide me abt struts in eclipse

Dani AI

Generated

For a Java beginner like , a short, practical path is most helpful. 's pointer to tutorials is a fine start; the next steps are to pick a Struts branch (Struts 2 for new learning unless you must maintain an old Struts 1 app), set up a web project in Eclipse, and get hands-on with a single Action -> JSP flow so the concepts stick.

Try this concise workflow:

  • Install Eclipse IDE for Enterprise Java Developers (includes the Web Tools Platform) and a servlet container such as Apache Tomcat.
  • Create a Dynamic Web Project (or use a Maven archetype) so dependencies are managed.
  • Add Struts libraries via Maven dependencies or place JARs in WEB-INF/lib. For Struts 2, the core artifact is provided by Apache.
  • Configure web.xml and the Struts configuration (struts.xml or the appropriate config for your Struts version), create one Action class and one JSP form + one result page.
  • Run on Tomcat, check console for mapping and startup messages, then iterate.

Quick troubleshooting tips: confirm the Struts filter/mapping is correct in web.xml, ensure all required JARs match the framework version, and look at server startup logs for ClassNotFound or configuration parsing errors. For official references and downloads consult the project docs: Apache Struts and Eclipse Web Tools information at Eclipse. For a long-term view, also compare Struts with modern alternatives (for example Spring MVC) before choosing a framework for new projects.

Recommended Answers

All 2 Replies

Yes, sure. Here is help

Thanks a lot. I am sure that it will guide me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.