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
Match the following. 1. show grouping of word processing tasks that can be performed quick access toolbar 2. shortcut location for commonly used elements scroll bars 3. organized commands used to modify documents ribbon 4. used to align and measure content in a word screen zoom bar 5. vertical and horizontal bars that are used to navigate through a document contextual tabs 6. displays the name of the document in use ruler 7. allows users to enlarge or shrink a visual of a word document title bar
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
You know the right answer?
Create a NetBeans project. The name of the project should be "yourNinerNetUsernameEx7". Create a js...
Questions
question
History, 01.09.2019 02:30