Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8315315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:06:19+00:00 2026-06-08T21:06:19+00:00

I have class of Person : package Model; import java.util.Set; public class Person {

  • 0

I have class of Person :

package Model;

import java.util.Set;

public class Person {
    private String firstName ; 
    private String lastName ; 
    private int id ; 

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    public void setId(int id) {
        this.id = id;
    }


}

I created jsp form with details of Person :

<fieldset>
        <legend>Create new customer</legend>
        <form action="CreatePersonServlet" method="GET">
            ID : <input type="text" name="id" /> <br /> 
                        First Name : <input type="text" name="firstName" /> <br /> 
                        Last Name : <input type="text" name="lastName " /><br /> 
        </form>
</fieldset>

I have CreatePersonServlet servlet with the method :

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        Person newPerson= new Person () ; 


    }

what I should write in order that the newPerson object will be filled with all his memeber according to the request sent from the jsp form .
in jsp i know it like this

<jsp:useBean id="newPerson" class="Person" scope="session"/>
<jsp:setProperty name="newPerson" property="*"/>

but now the member’s details not on the session but in the request

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:06:20+00:00Added an answer on June 8, 2026 at 9:06 pm

    you can retrieve the session object from request object using

    HttpSession session = request.getSession(false);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

package pkgPeople; import java.io.Serializable; import java.text.DecimalFormat; public class Person implements Serializable{ private String name;
I have a simple person class: package simpleApp.entities; public class Person { private String
Suppose i have class Person { public int Id {get;set;} public string Name {get;set;}
I have class Person class person{ int ID ; sting FirstName ; string Last
Example-I have a person class Public Class Person Private _fname As String Public Property
I have class Person: public class Person : INotifyPropertyChanged { private String name =
Lets say I have class Person { public Person(int age, string name) { Age
For example i have public class Person { public int Id {get;set;} [Required()] public
i have class like below class Person { public string Name{get;set;} public string Surname{get;set;}
I have a class like this, public class person { name Name {set; get;}

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.