Shouldn't these methods be in a seperate "utility" type class? That way you write it once and it can be used anywhere?
-----Original Message----- From: Ioannis Xanthopoulos [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 7:48 AM To: [EMAIL PROTECTED] Subject: Importing JSP Methods into a Servlet 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