You could run the jsp, causing it to compile, and then copy the
generated class file.  It would at least reduce the amount of
copy/paste.  Most containers have this type of facility.

Ioannis Xanthopoulos wrote:

I have a number of HTML and JSP files that contain collections
of Methods ie.: String Manipulation Methods which I want to
use in a srvlet. I would definitely not want to cut and paste all
these methods into my servlet.

How is this best done?

Clarification:

File_to_be_included.jsp
contains:

   public String parse(String inpa){
    .....
   }

   public void ttt(){
   }

Now I want to use these methods in my servlet. I also have a JSP File
that contains declarations of initialization parameters (final Strings )
that i want to also use in the servlet. for example

Initialization_params.jsp
contains:

final String tttt = "jjjj";

Now I want to use "tttt" in my servlet.


Regards
Ioannis

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to