Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I include a java method in a section of jsp code  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is to say, I do not want to write the code in the jsp. I want to write it as a method and then include this in the jsp "inline" at the correct place where it needs to run.
What is the syntax to do this?
Thanks
 
Author and ninkuma
Marshal
Posts: 66609
161
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a custom tag.

tutorial
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ed Bicker wrote:That is to say, I do not want to write the code in the jsp. I want to write it as a method and then include this in the jsp "inline" at the correct place where it needs to run.
What is the syntax to do this?
Thanks



Create an EL Function:

Define EL Function
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!