Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Change the JSP Custom Tag attribute value

 
John Ip
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Just wanna to know whether it is possible to change the JSP custom tag's attribute dynamically with Javascript? I want to change the attribute value as I change the value of the text input in a html form.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65537
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Think about it for a minute. The custom tags, along with any other JSP mechanisms on the page, are executed on the server in order to format an HTML page to send to the browser. Once there, the user interacts with the page which will trigger whatever Javascript you might have.

Once the page gets to the browser where your Javascript can execute, there's no JSP, no custom tags, no any of the server-side mechanisms -- just a plain old vanilla HTML page.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!