subject

Create a NetBeans project. The name of the project should be "yourNinerNetUsernameEx7". Create a jsp file called signup. jsp
Download the "signup_template. jsp" file provided with this exercise.
On the web, query string is a part of a URL. It starts after the question mark: http://test. com/webcontent/userController?param 1=val1&param2=val2
A query string is indicated by the ? symbol and contains one or more pairs of parameter/value. They are separated with &. By using query string, clients can send data to the back-end application (application running on server).
In a servlet, to read the value of a specific parameter we can call getParameter method in the request object which is an instance of HttpServletRequest.
Modify the appropriate method of so that it reads the value of a parameter called task, and responds with a simple html displaying that value.
For example, if a client requests: http://127.0.0.1:8080/projectName/m embershipController?task=placeOrder
they should see "Task is placeOrder" in their browser.
Which method did you change? Why?
Modify the previous method so that:
if the parameter task does exist and its value is signup, the user sees the content of signup. jsp Hint: Use getRequestDispatcher method to forward the request to signup. jsp:
getServletContext().getRequestDispa tcher(pathToJSPFile).forward(reques t, response)
If the parameter task does not exist or its value is not equal to signup then the user sees a simple html displaying an appropriate error message to the client. (e. g., Error! The task parameter is required, only signup value is valid.)
Set the method attribute of the form in signup. jsp to post. In this way, the form data is sent back to the back-end in the body of an HTTP Post request.
Set the action attribute of the form in signup. jsp to /[Your Project Name]/membership. By doing so, when a user clicks on the submit button in the form, the form data will be sent back to membershipController which is mapped to .

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:00
What does a sperm cell plus egg cell equal in total?
Answers: 1
question
Computers and Technology, 21.06.2019 22:30
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
question
Computers and Technology, 22.06.2019 02:00
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
You know the right answer?
Create a NetBeans project. The name of the project should be "yourNinerNetUsernameEx7". Create a js...
Questions
question
Mathematics, 24.09.2019 16:30
Questions on the website: 13722362