• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do v call our own functions in jsp

 
Srinath R
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i call the function which is written on my own useing the a href tag.
 
Somas kanthan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you put your code, then we will try to solve it.
Thanks..
 
Srinath R
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my prg is all most bout 600 lines. i can posiably past it here i will try to explain my problem, now supose i have a function which going to display "hello" now i should b able to activate this function user a link say "click here".
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember, a servlet or JSP can only create a HTML page - servlet code lives on the server, not in the browser.
If you want the user to click on a control and get a page with your content, the control has to have a URL that addresses a servlet or JSP that generates the content.
href="http://myserver/servlets/MyServlet"
Just exactly like addressing any other resource on the server.
Bill

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic