• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP n javascript problem

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am doing a tree menu for my page using javascript. I got the script from the net. The problem is the link for menu is generated in javascript. While I need to use JSP to determine whether to display a link or not. Can I in anyway use a figure from JSP n make the javascript know the figure n in the end determine whether to display the link. Hope I m not confusing.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I'm sure you know, JSP is a server-side scripting language, while JavaScript is a client-side scripting language. Therefore, it makes sense that you could use JSP to generate a JavaScript section of code. Knock that around for a while in your head and see if you can make something of it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!