File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bean message in javascript

 
Sahil Sharma
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I know how to invoke a <bean:message key> from javascript but is there a way i can pass a javascript variable to the arg parameter of bean message.
Something like this in javascript function

var value = "abc";
<bean:message key="some.key" arg0="var"/>

Thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is "NO". The JS is client side action, and the bean:message is JSP tag which gets complied and rendered into HTML at server side and then gets displayed on client's browser.

HTH
 
Sahil Sharma
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks sagar.
 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome that's why they come up with the AJAX .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic