Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing jsp value to div tag

843838May 8 2007 — edited May 8 2007
I have
<%! String sGroup=null;
%>
<input type="button" value="<%=grpDescr%>" name="<%=grpcode%>" onclick='javascript:showMac("<%=grpcode%>");'>

<script>
function showMac(val)
{
//alert(val);
sGroup=val;
document.getElementById("ShowMS").style.visibility="visible";


}

</script>



<div id="ShowMS">
<Table align="center" width="100%" border="0" cellpadding="0" cellspacing="1">
<TR>
<%
Here i want sGroup value to pass a function
%>

</div>

I m getting value in javascript function but can't understand how to pass it so that i can use it in div tag table

Thanks in advance
Meghna

Message was edited by:
Meghna
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2007
Added on May 8 2007
3 comments
531 views