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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:47:17+00:00 2026-06-15T20:47:17+00:00

Any Idea how to remove the error below? It is from my validation.xml. It

  • 0

Any Idea how to remove the error below? It is from my validation.xml. It is already redundant for me… Thank you.

    Username must not be blanks
    Password must not be blanks

Username must not be blanks ---> How to remove this?
UserName:   
Password must not be blanks ---> How to remove this?
Password: 

Actually what i want to do is the error message to be on the right side of the field.

UserName: ___________________  * Username must not be blanks
Password:____________________  * Password must not be blanks    
  • 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-15T20:47:19+00:00Added an answer on June 15, 2026 at 8:47 pm

    Use the simple template for your form.

    <s:form theme="simple" ...>
    

    And then use the <s:fielderror> tag for put your field errors wherever you want.

    <s:form ...>
        <s:textfield key="field1"> 
        <s:fielderror>
             <s:param>field1</s:param>
        </s:fielderror>
        ...
    </s:form>
    

    Then you only have to play with CSS to achieve that layout.

    EDIT: It seems that if you put <s:fielderror> your field errors will be in a list. You have two options, edit the template fielderror.ftl that it’s inside the struts2.jar or access to the specific error with <s:property> like this:

    <s:property value="fieldErrors.get('field1').get(0)" /> 
    

    This code will only extract the first validation error of the field.

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

Sidebar

Related Questions

Any idea why sendSynchronousRequest is causing a leak below? Instruments states that the responsible
Any idea why the following code is not working mysql credentials are correct, have
Any idea how to go about formatting the data so I can export from
I'm getting this error on the commented line. Any idea why? Fatal error: Call-time
carrierwave is giving me this validation error: Image You are not allowed to upload
Any idea why I am getting this error: Exception encountered: #<NoMethodError: undefined method `assert_valid_keys'
I am having heap space errors with the below code. Anybody have any idea
I haven't been able to remove compile errors using boost::signals. Any idea would be
Any idea on how can I track users bookmarking event? I want to find
Any idea why I see in the manage applications Running tab, both my application

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.