Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

write javascript function in java ?

 
Ray Law
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I convert a php program to java source, and find part of php source using javascript. Who know how to declare/write javascript function in java source, please let me know ? thanks.
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are u talking abt java or jsp???
 
Ray Law
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I mean JSP
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same way you would write your html.
As text, outside of any scriptlets.
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are following ways to write javascript in jsp



or




hope that helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic