• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using struts-tags in jsp

 
Ana Belen Morales
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have the next problem, and I'm a little desperate :S

I have included a jsp with javascript in my source jsp:

<c:import url="/myJavascript.jsp" />

Code in myJavascript.jsp:

function addButton() {
myNode.innerHTML = '<s:submit value="Aceptar" method="myMethod" />';
}

But when the page is rendered, it looks like the server doesn't understand the tag.
There is any solution for doing something like that?

Any help will be appreciated!!
 
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!