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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:12:51+00:00 2026-06-04T15:12:51+00:00

I want to implement the jQuery validation plugin for use in a web application

  • 0

I want to implement the jQuery validation plugin for use in a web application written in java and struts. I just want to use it to validate form inputs to see if they conform to certain rules before it’s submitted to a database. The project I’m trying to implement this in was written by someone else, I don’t have access to them, and I can’t rewrite it.

Here is one of the form inputs that I want to validate:

<html:text property="groomFirstName" maxlength="30" tabindex="1" styleId="groomFirstName"  size="15" onchange="properCase(this.id); needToConfirm=true;"   />

I’ve written some custom methods for the plugin. I have tested them on a simple HTML form, but I don’t how to make them work with the struts code like the line of code above.

  • 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-04T15:12:52+00:00Added an answer on June 4, 2026 at 3:12 pm

    The fact that Struts is used to generate the form is irrelevant. JavaScript executes in the browser, and HTML is HTML.

    The line of code above is not HTML. It’s a Struts JSP tag that is evaluated at server-side and generates HTML code that is sent to the browser. jQuery only cares about the HTML. And the above code will generate the following HTML:

    <input type="text" name="groomFirstName" maxlength="30" tabindex="1" 
           id="groomFirstName" size="15" 
           onchange="properCase(this.id); needToConfirm=true;" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement something with jquery, simple javascript and java but I don't
I want to implement a Facebook updates(user action and notifications) on my web application
I've a form that is being validated with Jquery's Validation Plugin and I need
I want to implement a jQuery Mobile application without browser history navigation (feel free
I've got a really big ModelForm and want to implement Ketchup jquery validation .
I am presently working on jquery mobile web app, I want to implement the
I like the resizable plugin by JQuery ui: http://jqueryui.com/demos/resizable/ I want to implement it
I've found this nice jquery plugin tag it! http://levycarneiro.com/2010/03/tag-it-tag-suggestions-editor-and-autocomplete-in-a-jquery-ui-plugin/ and want to implement it
Greeting, I'm using jquery Plugins/Validation library. I want to allow validation on submitting but
I'm building an ASP.NET MVC site where I want to implement jQuery AJAX calls

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.