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!

dynamically adding tagx in JSP

843840Jun 24 2010 — edited Jun 24 2010
Hi
I am very new to the JSP and EL. I have a JSP main file which loads several custom tags from tagx files. But all tags for now are statically loaded on page load.

I want to dynamically load the custom tags using javascript I wrote a ajax/script for that but it seems to be not working properly.

tags writen in files
tagA.tagx, tagB.tagx
<script>
document.getElementById('A').innerHTML = "<basic:tagA/>"
document.getElementById('B').innerHTML = "<basic:tagB/>"
</script>


this is place i wanted to load the customs tags into -->
<div id="A"></div>
<div id="B"></div>
[icode]

I know this is not the right way to do it, but can anyone please tell me what I am missing? Or how to access the tagx to dynamically load using ajax?

Thank you..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2010
Added on Jun 24 2010
1 comment
214 views