click below
click below
Normal Size Small Size show me how
SYSINTEG - L5
Forms in SpringToolSuite
| Question | Answer |
|---|---|
| used to create an HTML form for user input. •important for gathering user data that can be transferred to a server for processing. | Form |
| 2 ATTRIBUTES REQUIRED IN <FORM> | Method action |
| attribute specifies how to send the form-data to the server when the form is submitted. | Method |
| : Appends the form data to the URL. : Suitable for non-sen | GET |
| Sends the form data as HTTP POST transaction | POST |
| specifies where the form data should be sent when the form is submitted. | action |
| Example Register Page using GET Create a function that calls the Register.jsp | @GetMappingip ("/registerform") public string regForm (){ return "Register.jsp"; |
| Example Register Page using GET | localhost:9090/process?pname=Sam@ppass=121212 |
| display the data in query parameter when form is submitted even though you used Password it will show the unmask values. | GET |
| check if a cell is empty or not. | isBlank() |
| redirect to the same page. | redirect:/<link of getMapping> |
| •resizable array •Can store any type of object | ArrayList |
| Important Attribute Name: | var items |
| variable name that hold each values | var |
| call the variable name where all the data is coming from | items |