my dog learned polymorphism*
The moose likes Servlets and the fly likes how do v call our own functions in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how do v call our own functions in jsp" Watch "how do v call our own functions in jsp" New topic
Author

how do v call our own functions in jsp

Srinath R
Ranch Hand

Joined: Jun 28, 2000
Posts: 71
how can i call the function which is written on my own useing the a href tag.
Somas kanthan
Greenhorn

Joined: Nov 16, 2000
Posts: 8
Can you put your code, then we will try to solve it.
Thanks..
Srinath R
Ranch Hand

Joined: Jun 28, 2000
Posts: 71
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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
 
 
subject: how do v call our own functions in jsp
 
Similar Threads
why different kind of validations in Struts.explain me
Client design
Findbug issue -The code creates an SQL prepared statement from a nonconstant String
Servlet inheritance and performance
dynamic page throught tile