Results 1 to 4 of 4
  1. #1
    samson is offline Member
    Join Date
    Mar 2007
    Posts
    16
    Rep Power
    0

    Default Functions in jsp

    Can we create private functions in jsp..
    If any body is having results please reply.Waiting for your responses.
    Thanks in advance

  2. #2
    ferosh is offline Member
    Join Date
    Mar 2007
    Posts
    11
    Rep Power
    0

    Default

    Actually jsp is the modified form of java servlets.It is having so many taglibraries.So In advance we have to make use of java beans and jsp together.Jsp is a scriptlet language.So making private functions in jsp is a bad programming technique.We have to make use of java beans..

  3. #3
    neeraj.singh is offline Member
    Join Date
    Feb 2009
    Location
    Delhi
    Posts
    63
    Rep Power
    0

    Default

    ya sure,
    we can write the function in the scriplets

    eg:
    <%
    public String show()
    {
    return "good";
    }
    %>

  4. #4
    arseny is offline Member
    Join Date
    Mar 2009
    Posts
    25
    Rep Power
    0

    Default

    you can declare function in tld file and use access via the tag lib prefix in the JSTL expression :

    ${myfn:functions1(arg)} where the myfn is the taglib prefix

Similar Threads

  1. Calculating trigonometric functions
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 10:56 PM
  2. Calculating hyperbolic functions
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 10:55 PM
  3. java copy paste cut and undo functions
    By Mr tuition in forum AWT / Swing
    Replies: 1
    Last Post: 12-09-2007, 12:02 AM
  4. Quick Question (Functions)
    By ibanez270dx in forum New To Java
    Replies: 2
    Last Post: 11-16-2007, 01:42 AM
  5. Replies: 1
    Last Post: 08-07-2007, 05:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •