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

  • Home
  • SEARCH
  • 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 9282683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T18:26:17+00:00 2026-06-18T18:26:17+00:00

I have a table (inside a div) containing some input fields in my JSP.

  • 0

I have a table (inside a div) containing some input fields in my JSP. Having trouble with one of the rows. I have 3 dropdowns in 3 different cells in my second row. These 3 dropdowns are being displayed on top of each other instead of being next to each other. So instead of

[Select 1] [Select 2] [Select 3]

I am getting:

FIRST
SECOND
THIRD

When I view the rendered HTML, it appears that new rows are being inserted automatically after each drop down. Need help displaying the 3 drop downs next to each other.

Code:

 <s:form action="insNewAct" namespace="/">
   <table>
     <tr> 
      <td><s:textfield name="jobName" label = "Job Name" size="20" /></td>
      <td>&nbsp;</td><td>&nbsp;</td>
     </tr>
     <tr>
      <td>          
        <s:select 
        label = "Job Schedule"
        headerKey="-1" headerValue="Hour"
        list="{'1', '2', '3', '4'}" 
        name="hour"/>
      </td>
      <td>
        <s:select 
        headerKey="-1" headerValue="Minute"
        list="{'01', '02', '03', '04', '05' }" 
        name="minute"/>   
    </td>
    <td>      
        <s:select 
        headerKey="-1" headerValue="AM/PM"
        list="#{'A':'AM', 'P':'PM'}" 
        name="ampm"/>
    </td>
    </tr>
      <tr>
        <td><s:submit value="Submit" name="submit" align="center"/></td><td>&nbsp;</td><td>&nbsp;</td>
      </tr>
 </table>
 </s:form>  
  • 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-18T18:26:19+00:00Added an answer on June 18, 2026 at 6:26 pm

    The default Struts 2 theme “xhtml” puts form elements in table rows.

    If you want to use the “simple” theme:

    <s:select label = "Job Schedule"
              headerKey="-1" headerValue="Hour"
              list="{'1', '2', '3', '4'}" 
              name="hour"
              theme="simple"
              />
    

    The caveat is that this will then not support the built-in error messages provided by the validation framework, although they can be handled manually for small chunks of “simple” theme functionality.

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

Sidebar

Related Questions

I have div having class name .modalPopup inside the div I have multiple table
I have table inside a div tab. The table has 40 rows in it
I have one div inside which I have one table. In this table as
Having a strange rendering issue with Safari: I have a table inside a div.
I have two div's, one above the other and both have a table inside
I have a div. Inside that div I have a table with 2 rows.
I have a div inside of a table which is inside of a form
I have a div inside a table cell. When I click in the table
I have a table inside a form. It has two columns, the first one
i have table unser it i have one td with elemets inside the menu

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.