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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:54:28+00:00 2026-06-16T22:54:28+00:00

Client-side validation doesn’t work for me. First I thought that it is a myeclipse

  • 0

Client-side validation doesn’t work for me. First I thought that it is a myeclipse fault that doesn’t copy them to the root folder but then I discovered the js and css files reside in the struts core jar. Now I wonder what I should do! Should if I find and copy all js and css files from their appropriate folders to the webRoot or there is an intelligent workaround like changing the configuration? Should struts copy them by self?

I use Tiles with Struts. Could it be the problem?

My JSP files are in the WEB-INF folder! Can it have caused some problem?

Can using something like struts2-jquery plugin solve my problem?

I use struts2!

My struts2 filter configuration is

  <filter>
    <filter-name>struts2</filter-name>
    <filter-class>
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
    </filter-class>
  </filter>
  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>*.action</url-pattern>
  </filter-mapping>

    <listener>
    <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
  • 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-16T22:54:30+00:00Added an answer on June 16, 2026 at 10:54 pm

    The specific problem here is the filter configuration:

    <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>*.action</url-pattern>
    </filter-mapping>
    

    The recommended configuration (unless you specifically know what you’re doing) is to map to *:

    <filter-mapping>
      <filter-name>struts2</filter-name>
      <url-pattern>*</url-pattern>
    </filter-mapping>
    

    If you map only to *.action, non-action requests (like CSS and JavaScript) won’t be processed by the filter. S2 examines the request for files it (S2) knows about, like its own CSS and JavaScript files, and serves those requests itself even though they’re not action requests.

    This is documented in the S2 guides’ Static Content section.

    It’s perfectly valid to map to *.action, but then you do need to extract the static files and put them at their required location, at least if you intend to use the default S2 themes/JavaScript. That’s also optional: the framework is designed to get you started relatively quickly, but if you have specific needs that the framework doesn’t handle, using that part of S2 may or may not be the best choice.

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

Sidebar

Related Questions

Is it true that jquery unobtrusive client side validation doesn't work correctly till the
Inherited properties and MetadataType does not seem to work with client side validation in
In VS2010 and ASP.NET MVC 2, it seems that client-side validation (JQuery Futures or
My project is master/content. The client validation always scrolls the first control that is
I'm having the problem that I cannot get client-side validation to fire from within
Client side Validation and ValidationSummary is working fine for my project (MVC4 + Razor
I am using a client side validation and it is starting to get messy,
I am doing some client side validation in ASP.NET MVC and I found myself
I'm having problems with client side validation on our account creation form in MVC3.
I want to do some client side validation using javascript in ASP.NET page. I

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.