Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaScript in JSPs using struts tag libraries

 
Gaurav Saxena
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am new to struts and i am finding it very difficult to use javascript elements in JSPs.I have a strict requirement that there should be no scriptlet in the page at all.Can some one suggest some book/links where in i can find some stuff on how to use Javascripting element in JSPs? .
pls help
Gaurav
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fail to see what a constraint of not having scriptlets on JavaServer Pages and embedding JavaScript in the JavaServer Pages have to do with each other?
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I concur Lasse. In the Struts html tags, they allow you to insert javascript function as well as standard html tags.
 
Abhijit Kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand, and I am facig a similar situation where I have to use struts tags only (i18n). If any one reaches a solution on passing value of java variable as an argument to a javascript function within a struts tag, Please let me know!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic