• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp & JavaScript

 
kanth varada
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

i created a taglib by the name <s:itemTitle> & <s:itemDescription>

and i want to display the data which is coming from them in by using Javascript..........how can i do that.....Please help me.......


i tried by doing like this........

document.write(<s:itemTitle feedId="<%=strFeedTrIndy%>"/> ;
document.write(<s:itemDescription feedId="<%=strFeedTrIndy%>"/> ;

iam able to display this
document.write(<s:itemTitle feedId="<%=strFeedTrIndy%>"/> ;

but i can't able to add this
document.write(<s:itemDescription feedId="<%=strFeedTrIndy%>"/> ;


so please let me know is there any other way that i can display the stuf by using the javascript.

this two tags will display lines of charecters.......
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a fundamental misunderstanding of how JSP works. Please read this article for an explanation of why that could never work.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!