• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to write methods in jsp?  RSS feed

 
Vijay Rathi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me....
how to write methods in jsp??
Thanks
rathi
[ November 19, 2006: Message edited by: Bear Bibeault ]
 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First its not a very good idea to write methods in JSP - its only for presentation and anything complex should go into a custom Tag or to the servlet.

Anyway still you can shoot yourself, if you want to

Here is how you write a method in JSP.



Do send HttpServletRequest as one of the parameters - if you want to extract something out of it...

Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Venkatraman Kandaswamy:
First its not a very good idea to write methods in JSP - its only for presentation and anything complex should go into a custom Tag or to the servlet.


Heed Venkatraman's advice for he speaks wisely.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!