This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Strut with javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strut with javascript" Watch "Strut with javascript" New topic
Author

Strut with javascript

Mittal Mistry
Greenhorn

Joined: May 17, 2006
Posts: 3
hi,
i want to create teatarea dynamincally in jsp. For that i have written this code.Its works properly in html but i am facing some problem..

function addSol()
{
var ni = document.getElementById('myDiv');
var numi = document.getElementById('theValue');
var num = (document.getElementById("theValue").value -1)+ 2;
numi.value = num;
var divIdName = "sol" + num;
alert(" nupur" + divIdName);
var newdiv = document.createElement("<html:textarea property='<%= divIdName %>'/>");

ni.appendChild(newdiv);
}


So now error is in property='<%= divIdName %>'/>"
like how can i declare value of property as a vaiable
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Strut with javascript
 
Similar Threads
please help me
jsp exception while using logic:iterate
How to pass a javascript variable on a jsp to a servlet
how to call a struts tag using innerHTML
Need Help With Dynamic text box in JSP