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, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
You know the right answer?
Create a NetBeans project. The name of the project should be "yourNinerNetUsernameEx7". Create a js...
Questions
question
Biology, 08.05.2021 03:20
question
Biology, 08.05.2021 03:20
question
Physics, 08.05.2021 03:20
question
Mathematics, 08.05.2021 03:20
Questions on the website: 13722367