• Post Reply Bookmark Topic Watch Topic
  • New Topic

Methods in JSP?

 
Balachandar Nayak
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Can we write our own method in JSP?


 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to Ben's reply, you should consider declarative tag, not scriplet, while writing your method.

Thanks.
 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben and Adeel has given perfect answer and i am giving the example


<%!

void temp()
{
}

%>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!