Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ed Bicker
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a custom tag.

tutorial
 
Stefan Popa
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!