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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:32:26+00:00 2026-05-17T20:32:26+00:00

Is it a must to use the struts2-jquery plugin to be able to run

  • 0

Is it a must to use the struts2-jquery plugin to be able to run jQuery code in a struts2 application?

I am working on a struts2 web app
jQuery file: WebContent/js/jquery-1.4.3.js
JSP pages location: WebContent/pages/*.jsp

THDFindYourQuote.jsp is the default page of the application:
I have a simple script in THDFindYourQuote.jsp

[script type="text/javascript" src="../js/jquery-1.4.3.js"][/script]
[script type="text/javascript"]
$(document).ready(function(){
alert('I am in the JSP code now!!');
});

The above script is executed when i access the url:
localhost:8081/ CloseQuote/pages/THDFindYourQuote.jsp

the same script does not work when I access the URL:
localhost:8081/ CloseQuote/

I am having the same problem in other JSPs. The script works when i access the jsp using the full path URL. It does not work when I access the jsp with action urls ..please help

  • 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-05-17T20:32:27+00:00Added an answer on May 17, 2026 at 8:32 pm

    Is it a must to use the struts2-jquery plugin to be able to run jQuery code in a struts2 application?

    No. I don’t use that plugin and I use jQuery in all of my Struts2 applications. Just include it in the UI layer the same as you would in a PHP application, a Ruby application, etc.

    It looks like the problem is that you are using relative URLs. Try using absolute ones.

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

Sidebar

Related Questions

I have gwt web project, which must use application.properties (on client side) loaded as
I am working on grails application. I must use H2 for development and Oracle
I have a ~2MB file that my Google AppEngine server must use (not serve)
I have a PhoneGap/Cordova project that means I must use a combination of JQuery
I have an application that must use a library that I didn't write and
I understand from the official documentation on unowned relationships that the app must use
When I run $ rspec spec/ I receive this error: You must use ANSICON
I'm working on updating one of our applications. It must use .NET 2.0. One
disclaimer: I must use a microsoft access database and I cannot connect my app
I wrote an application that must use serial ports on Linux, especially ttyUSB ones.

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.