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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:53:25+00:00 2026-05-18T08:53:25+00:00

i have some checkbox in my jsp page. there are some othe textfields in

  • 0

i have some checkbox in my jsp page. there are some othe textfields in the jsp page. i can populate the value of textboxs from database. like for name field i can fetch the value ‘myname’ from database and show it in jsp page. but i can’t fetch the value of the checkbox from database. like i have a field agriculture in my database and in jsp page. now i want if the value of agriculture in database is 1 then the checkbox of agriculture in jsp page will be 1 also. and if the value is 0 then the checkbox will be unchecked. how can i do it. please help. this is the code fragment oof my jsp page.

    <td><label class="desc"> Agriculture</label></td>
                    <td>                                
                            <html:text property="loanPurposeCodeInfoDTO.agriculture" styleClass="SingleLineTextField" size="30" tabindex="1"  ></html:text>
            <html:checkbox styleId="checkbox_isall" property="loanPurposeCodeInfoDTO.agriculture" ></html:checkbox>
                    </td>
  • 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-05-18T08:53:25+00:00Added an answer on May 18, 2026 at 8:53 am

    Make loanPurposeCodeInfoDTO.agriculture a boolean variable, and set its values to true when the value from database is 1, and false when database value is 0.

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

Sidebar

Related Questions

i have some html snip like this <input type=checkbox name=color value=red/>red <input type=checkbox name=color
I have some HTML code like this: <input id=fieldname-1 name=field_name[value][1] value=1 type=checkbox /> <input
I have some checkbox inputs like so: <input type=checkbox name=1 class=filter/> <input type=checkbox name=2
I need some help, I have some checkboxes like that <input class=some-class type=checkbox has-format=0>
I have some object (div, input/checkbox) in an HTML page. The values for their
I have some code <input type=checkbox id=chk value=value /> <label for=chk>Value </label> <br/> <input
I have some HTML that looks like this: <ul class=toggleList> <li><input type=checkbox name=toggleCbx1 id=toggleCbx1
I have a jsp page in which there is a html table. The contents
I have a jsp and I create a spring checkbox like this: <form:checkbox path=someList
I have some checkbox that looks like this <%= Html.CheckBox(Remember) %> <%= Html.Label(Remember, Keep

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.