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 8330615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:10:34+00:00 2026-06-09T02:10:34+00:00

I needs to populate values for listboxes , textboxes .. almost all the form

  • 0

I needs to populate values for listboxes , textboxes .. almost all the form input elements from my servlet . Because sending the object to the JSP page and populating the values for the input elements there (using any tag libraries JSTL) i found it difficult.

Is there anyway for setting all the Input Element values from the servlet itself? For example if i needs to set the value for textfield , then in my servlet

TextFieldBean tf = new TextFieldBean("userName");
tf.setValue("Test");

In my jsp page

<input type="text" name="userName">
  • 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-09T02:10:36+00:00Added an answer on June 9, 2026 at 2:10 am

    That’s what all MVC frameworks (that I know about) allow doing. Here’s an example with Stripes:

    // in the Stripes action:
    public Resolution displayForm() {
        this.userName = "Test";
        return new ForwardResolution("/displayForm.jsp");
    }
    
    // in the JSP
    <s:form beanClass="com.foo.bar.SubmitFormAction" method="post">
        User Name : <s:text name="userName"/>
    </s:form>
    

    MVC frameworks have their own learning curve, but they offer huge services (data binding being one of them). Pick one and learn: Stripes, Spring MVC, Play, … there are dozens of them. I like Stripes for its simplicity and good design.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# application that needs to populate a list of all the
I have an html form and I need to populate one of the input
I need to populate the date time values in two textboxes at a same
I need to know how to populate a Label with values from Store .
I need to populate a JAX Bean from XML, however there is no setter
I need to populate a .net DataGridView from a collection physically (without data binding)
I have this form, in which i need to populate a combo box with
I have 2 listboxes, the first listbox stores data pointers for each items Object
I have a form with a select element that I need to populate with
Okay this is what I have so far. I have a form that needs

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.