Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JSP Help

  Asked By: Anpu    Date: Jul 22    Category: Java    Views: 703

Here is the question.

I have two .jsp files

test1.jsp and test2.jsp


String temp = "test" ;


String foo(String text )
return text ;

My question is. I would like to call function foo() in test1.jsp
without includeing <@! include file="test2.jsp" %>

is that possible. if yes, could you please tell me how.. I would
really appriciate your help..



1 Answer Found

Answer #1    Answered By: Juanita Mason     Answered On: Jul 22

I think , the simplest way to overcome your problem's to build a utility package
including your're "foo" function  , then simply import that package in
"test1.jsp" .

Didn't find what you were looking for? Find more on JSP Help Or get search suggestion and latest updates.