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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:41:18+00:00 2026-06-13T10:41:18+00:00

BACKGROUND I am learning Struts 1.x and currently on the validation framework. PROBLEM I

  • 0

BACKGROUND

I am learning Struts 1.x and currently on the validation framework.

PROBLEM

I have it in a semi-working condition. Currently it is showing the validation errors, but in a javascript alert.. and then the validation summary (the thing generated by <html:error>) is blank.. well, it has 3 bullet points where the validation errors are supposed to be, but no text.

  1. I would not have expected it to use a javascript alert. I only want the validation summary. How can I turn this off, if possible?
  2. Why is the validation summary missing text?

EDIT

Here is some of the code, if it helps.

struts-config.xml

<form-beans>
        <form-bean name="ProductActionForm" type="actionForms.ProductActionForm"/>
    </form-beans>

validation.xml

<form name="ProductActionForm">
            <field property="name" depends="required">
                <arg key="ProductActionForm.name"/>
            </field>
            <field property="price" depends="required,float">
                <arg key="ProductActionForm.price"/>
            </field>
            <field property="quantityInStock" depends="integer,intRange">
                <arg0 key="ProductActionForm.quantityInStock"/>
                <arg1 name="intRange" key="${var:min}" resource="false"/>
                <arg2 name="intRange" key="${var:max}" resource="false"/>
                <var>
                    <var-name>min</var-name>
                    <var-value>0</var-value>
                </var>
                <var>
                    <var-name>max</var-name>
                    <var-value>9999</var-value>
                </var>
            </field>
        </form>

JSP HTML:

<html:javascript formName="ProductActionForm" />
        <html:errors></html:errors>
        <html:form action="/AddProductAction" method="post" onsubmit="validateProductActionForm(this);">
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <td>Name: </td>
                        <td><html:text property="name" /></td>
                    </tr>
                    <tr>
                        <td>Price: </td>
                        <td><html:text property="price" /></td>
                    </tr>
                    <tr>
                        <td># In Stock </td>
                        <td><html:text property="quantityInStock" /></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" class="btn btn-primary" value="Submit" /></td>
                    </tr>
                </tbody>
            </table>
        </html:form>

EDIT 2

Here are some screenshots:

Showing javascript alert:
Showing javascript alert

Showing blank validation summary:
Showing blank validation summary

  • 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-13T10:41:19+00:00Added an answer on June 13, 2026 at 10:41 am

    Hi Matt Here we go There are 2 types of Struts1 Validations

    1. Validate using ActionErrors validate in Bean itself(show summary)

    2. Validate using xml and configure everything here itself.(javascript alert)

    for your case you used second type that is correct,But to get summary alone check this link thats all, if you get problem in link or its example , Please ping me.

    This is the example

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

Sidebar

Related Questions

I'm learning android but have a pretty fair background in java so am a
I'm currently learning ColdFusion. I have a background in PHP and I am a
Hey guys I'm just learning javascript, I have some html and css background though.
I'm currently learning C# and .NET (coming from a UNIX background), and have just
Hi I have background in Java and currently learning C++. In Java it is
I'm learning ruby (have a java/groovy background) and it looks like when writing methods,
Some background info: I am currently writing a bootloader in protected mode while learning
I'm learning Objective-C, and have a C/C++ background. In object-oriented C++, you always need
I am currently learning F# and functional programming in general (from a C# background)
BACKGROUND I am learning Java and currently on JSF. I come from an ASP.NET

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.