i am doing a simple JSP servlet and i just need help in what im missing to finish my task. all i need to do is get the input of firstname and age and display them in a out.println(); thats it !! ive tried looking around how how to do this and im stuck

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
100%

i am doing a simple JSP servlet and i just need help in what im missing to finish my task.

all i need to do is get the input of firstname and age and display them in a out.println();

thats it !!

ive tried looking around how how to do this and im stuck

<form>
First Name: <input name="firstname" type="text">
Age: <input age="age" type= "text">
<input type= "submit">
</form>
<%
if(request.getParameter("firstname") !=null){
out.println("Your first name is: "
+ request.getParameter("firstname"));
out.println("Your age is:
+ request.getParameter("age"));
}
Transcribed Image Text:<form> First Name: <input name="firstname" type="text"> Age: <input age="age" type= "text"> <input type= "submit"> </form> <% if(request.getParameter("firstname") !=null){ out.println("Your first name is: " + request.getParameter("firstname")); out.println("Your age is: + request.getParameter("age")); }
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT