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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:07:30+00:00 2026-06-12T14:07:30+00:00

I am working with a legacy application in which we have used Strtus1.2. Now

  • 0

I am working with a legacy application in which we have used Strtus1.2.

Now I want to make a change in the UI. I want to disable Drag and Drop option on a text box.
Note that : HTML text box has attributes line onDrag and onDrop.

But here we have used Struts Tag Library and in that TLD file, there is no declaration for
onDrag and onDrop option. It gives exception when I use those attributes.

It says “Attribute onDrop invalid for tag text according to TLD“

Can anyone suggest me what is the best way to solve this problem.

Here I can use simple HTML text but for that I need to change Struts action class as well.

Can I change the TLD file ?
Do struts provides TLD file updation as per the new HTML standards ?

Regards,
Gunjan Shah.

  • 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-12T14:07:31+00:00Added an answer on June 12, 2026 at 2:07 pm

    I changed the html:text tag to simple HTML tag. There are built in HTML support for disabling onDrag and onDrop.

    You can use the attributes ondrag = false and ondrop = false to disable drag and droop in browser elements.

    <input type="text" name="card" id="idCard"  onkeypress="timeMsg(event);"  maxlength="18" onmousedown="return noCopyMouse(event);" 
     onkeydown="return nocopypaste(event)" ondrag="return false"  ondrop="return false"/>
    

    If you dont want to change struts action class then you can create a duplicate copy of the element with simple HTML tag and reset the value in original tag while submitting the form.

    Regards,
    Gunjan.

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

Sidebar

Related Questions

I'm working with a legacy application which I'm trying to change so that it
I am working on a legacy application which have a .war with following structure
I am working on a legacy ASP.NET 1.1 application which doesn't have linkified bread
I am working on profiling a legacy application using Spring AOP and I want
I have a Websphere Portal application containing several portlets for which I'm currently working
I've been working with a Legacy application which interacts with a database through ADODB,
I am working on an application which has some legacy code. Here, there is
We have a legacy VB6 app, which is critical to our business. We're working
I am working on a legacy application where NHibernate has been used without any
I am working on a legacy application in .NET 2.0 and I want to

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.