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 18:30
What is outfitting a workplace with video in a technology
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
You know the right answer?
Create a NetBeans project. The name of the project should be "yourNinerNetUsernameEx7". Create a js...
Questions
question
Mathematics, 25.09.2019 12:30
question
Chemistry, 25.09.2019 12:30
question
History, 25.09.2019 12:30
Questions on the website: 13722360