so i thought to post what i know on this...
i recomend u to practice Struts basics tutorial on before this Netbeans official site.
1. new project>web>web application
i named mine as 'sampleJSP.jsp'
4.add html taglib
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="h" %>
5. Add a form tag to JSP using tag lib< action=" " onsubmit=" ">
< / html:form>
*important: superclass should be org.apache.struts.validator.ValidatorForm
7. Make getters and setters for text field in JSP
(if u create a propety called 'name' you dont need to do this, bcoz
Netbeans defaultly create for String 'name and int 'number'
(the Action path you give here can give in JSP)