i don't believe that is correct.
in JSP if you type
<%! function myFunction1(String x, int y) {
return;
}
function myFunction2(String x, int y) {
return;
}
%>
this creates a function outside of the service method.
of the resulting servlet.
-- if you want to use these functions in different
places I believe you can make these functions an
include
stephen
--- Pajani Arjunan <shajan76@y...> wrote:
> can you write a function, then pass params to that
> funtion, and return a
> value ?
>
> but this can be done in servlets. so we can use
> any times that
> function.
>
> in jsp , you have to create a java class file ,
> then you import that
> jave file in your jsp, then you use useBean method
> to use that class.
>
>
> > can any body tells the difference between servlets
> and jsp
> >
> >
>
> ---
> SIGS Conference for Java Development
> Targeted, focused classes, expertise level classes
> taught by Java gurus, rigorous tutorials, and
> exhibit floor makes SIGS Conference for Java
> Development a learning experience unlike any
> other. Join over 10,000 developers and programmers
> from across the U.S. and around the world who
> have benefited from attending SIGS/101 Conferences.
> http://www.javadevcon.com
> stephensutherland@y...
> $subst('Email.Unsub')
>
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com