Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call java method into jsp file?  RSS feed

 
Eric Tan
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone guide me or teach me how can i call the java method into the jsp file? do i need a main method to call it in? or just call the method that i need 2 use only??

below is the coding that i did. one is java and another one is jsp. hope that someone can help me on it. Thanks!!! Really appreciate it.

Country Method.java
[COLOR=SeaGreen]

[/COLOR]
and the jsp.
WebApplication.jsp
[COLOR=SeaGreen][/COLOR]
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question in multiple forums. It causes confusion and duplication of effort as the community tries to help everyone.
 
Eric Tan
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. becoz i thought i could get a faster reply. Sorry abt that
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!