

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A strut is a structural component that is commonly used in engineering, architecture, aeronautics, and anatomy. Struts generally work by resisting longitudinal compression, but they may also serve in tension
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


1.Student Model Class: public class Student { private String name; private String usn; private String department; }
2. Struts Action Class: import com.opensymphony.xwork2.ActionSupport; public class StudentAction extends ActionSupport { private Student student; public String execute() { return SUCCESS; } } 3. Struts Configuration File (struts.xml):
/studentInfo.jsp /studentForm.jsp4. JSP File for Student Form (studentForm.jsp): <%@ page contentType="text/html;charset=UTF-8" language="java" %>
Student Form Student Information Form5. JSP File to Display Student Information (studentInfo.jsp): <%@ page contentType="text/html;charset=UTF-8" language="java" %>
Student Information Student Information <p>Name: </p> <p>USN: </p> <p>Department: </p>