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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:59:52+00:00 2026-06-17T07:59:52+00:00

My company uses custom tags in our JSPs to wrap JavaScript. I cannot get

  • 0

My company uses custom tags in our JSPs to wrap JavaScript. I cannot get IntelliJ to treat the content of these tags as JavaScript. Here is a simple example of what our tag looks like.

<ui:script>
  //Include javascript here...
  alert('Any code in here is treated as JavaScript');
</ui:script>

Any suggestions? I’ve tried using Language Injections, but I cannot find the right settings.

I just noticed that the problem is more linked to using JSP-specific language within the <ui:script> tag. A nastier example (notice the ${selectedReportID} tag that’s breaking everything):

<ui:script>
    new Kamino.DependencyLoader({
        source: [
            '/static/js/modules/folders/Report.js'
        ],

        onSuccess: function () {
            new Kamino.Report({
                id: '${selectedReportID}',
                element: 'content-reporting-report-list'
            });
        }
    }).load();
</ui:script>
  • 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-17T07:59:53+00:00Added an answer on June 17, 2026 at 7:59 am

    This is what worked for me in IntelliJ IDEA 12.

    Here is the JSP snippet with custom tag (aui:script) that renders some javascript code:

    before

    As you can see, it is plain text, i.e. alt+enter gives no suggestions etc.

    Here is the XML Tag Injection I added in Language Injection settings:

    setting

    Be sure to choose correct namespace. After this, the same code looks like this (expect some minor delay after opening a file):

    after

    It is colored differently and, as you can see, the code between aui:script tags is aware of javascript context, suggestions are available etc.

    Please try if this works for you, I haven’t use this as much as I would like 🙂

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

Sidebar

Related Questions

My company uses the MSBuild Community Tasks to provide custom build scripts to our
Our company uses own (built in here) scripting language for programming, but they would
I have an old project at our company that uses shell scripting a lot.
My company uses Gerrit Code Review for Git. I've been given a custom incantation
Our company uses tools in their workflow: IBM Rational ClearQuest (For bug and feature
Our company uses a 'user number' for our primary network ID. We do use
Our company uses Skype for communications, and I'd like to be able to send
Our company uses PinPointe for email marketing and we have a Drupal 6 site
An application of our company uses pdfimages (from xpdf) to check whether some pages
I am doing some work updating a data access library that our company uses

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.