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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:00:10+00:00 2026-06-10T13:00:10+00:00

The value fetched from select property is null. The code for jsp is.. <nested:select

  • 0

The value fetched from select property is null.

The code for jsp is..

<nested:select property="role.roleSID">
                    <logic:iterate name="roleList" id="roleListId">
                        <html:option
                            value="<bean:write name='roleListId'  property='roleSID'/>">
                            <bean:write name='roleListId'  property='roleName' />
                        </html:option>
                    </logic:iterate>
                </nested:select>

And the code for Action class is..

Long roleSID = userForm.getRole().getRoleSID();

The listbox is correctly populated with the expected values. But while fetching the selected value, the null is returned.

Can you tell me where i’ve gone wrong

  • 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-10T13:00:12+00:00Added an answer on June 10, 2026 at 1:00 pm

    I tried another way which gave me expected result.

    The jsp content is ..

    <html:select property="roleSID">
    <html:options collection="roleList" property="roleSID"
                            labelProperty="roleName" />
    </html:select>
    

    And the action content is ..

    Long roleSID = userForm.getRoleSID();
    

    And the UserForm is a form bean which contains roleSID attribute with getters and setters.
    The roleList contains collection of Role objects which in turn containd roleName, roleSId attributes. UserForm also contains Role bean as nested.

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

Sidebar

Related Questions

I am unable to set value for ef_name fetched from db. There are multiple
I want to fetch a selected value from a drop down 'select' list of
'view_act.php' file <?php $query = mysql_query('select * from activities'); $check=mysql_num_rows($query); if($check==0) { echo No
I need to select a top row for each category from a known set
I wanted to know is there anything equivalent to: select columnname from tablename Like
I have a variable like Doctor and Surgical I take this value from Mysql
How do I create a flat file with values fetched from a database (
I want to find the highest AutoIncremented value from a field. (its not being
My current setup: Form Dropdown List (populated by SQL) Users select an item from
I have a populated dropdown list from mysql on one page. What code should

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.