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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:23:00+00:00 2026-06-11T16:23:00+00:00

I have a table, following is my code: <table id=div1 style=display:none> <tr><td>Host Name</td><td>Directory</td><td>User Name</td><td>Password</td></tr>

  • 0

I have a table, following is my code:

<table id="div1" style="display:none">
        <tr><td>Host Name</td><td>Directory</td><td>User Name</td><td>Password</td></tr>
        <c:if test="${empty location.fEvents}">
        <tr><td><form:input path="userEnteredHostNameString" size="30" maxlength="200"/></td>
            <td><form:input path="userEnteredDirectoryString" size="30" maxlength="200"/></td>
            <td><form:input path="userEnteredUserNameString" size="20" maxlength="20"/></td>
            <td><form:input path="userEnteredPasswordString" size="20" maxlength="20"/></td>
        </tr>
        </c:if>
            <c:forEach items="${location.fEvents}" var="item" varStatus="loop">
                <tr><td><form:input path="fEvents[${loop.index}].hostName" size="30" maxlength="200"/></td>
                <td><form:input path="fEvents[${loop.index}].directory" size="30" maxlength="200"/></td>
                <td><form:input path="fEvents[${loop.index}].userName" size="20" maxlength="20"/></td>
                <td><form:input path="fEvents[${loop.index}].password" size="20" maxlength="20"/></td></tr>
            </c:forEach>
        </table>

whatever this ${location.fEvents} comes to either empty or with values..if User wants…user can add/delete a row and the values of the row should save back in the database..

what is the best way to do it..can we do it in spring or we need to use javascript..suggestions are really appreciated

EDITED: How can add validation errors to these fields if they are empty or null(just to the above code without javascript)

  • 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-11T16:23:01+00:00Added an answer on June 11, 2026 at 4:23 pm

    You can do it with both Spring and JavaScript. But if the data is supposed to change on the backend, you need to make JavaScript do XHR requests. Google “JavaScript AJAX”.

    About validation:
    If your validation is not critical (i.e. only a convenience) you can do it client-side.

    If your validation is “critical”, you should first implement it on the server, and then when it works perfectly you can implement a simpler version for the client so they don’t have to reload as much. Using GWT you can share the validation code.

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

Sidebar

Related Questions

I have the following code to generate a table listing brand/model/submodel/style for a group
I have a table like the following : code ---> INTEGER name ---> CHAR
I have a table layout with the following code <table cellspacing=0 class=photogalleryTable> <tbody> <tr>
I have the following code which creates a new table. var html = '<table>';
I have the following code that produces a background image in a table cell.
I have the following code to access a HTML table. my $table = $tree->look_down(_tag
I have the following code <table cellpadding=2 cellspacing=2> <tr> <td>Factory:</td> <td> <asp:TextBox ID=txtFactory runat=server
Hi I have the following table: Doc | code | Qty | Next 5211386
I have the following code, which will retrieve a filename from a table and
I have table that I insert data with following query (from c# code): INSERT

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.