|
I am a little confused where should I use import
and where should I use useBean,
example: if I have a class that manipulates a
string which method should I choose
<jsp:useBean id="stringManipulator"
scope="session" class="myutils.string.StringManipulator" />
stringMainpulator.reverseString(astring);
OR
<%@ page
import="myutils.string.StringManipulator" %>
StringManipulator sm = new
StringManipulator();
sm.reverseString(astring);
or if reverseString was a static method I would
direclty write
StringManipulator.reverseString(astring);
So where should I use which style?
|
Title: JSP-INTEREST Digest - 30 Jan 2000 to 31 Jan 2000 (#2000-32)
- Re: What is the difference between Import and us... SoftLiban KEYROUZ Charbel
- Re: What is the difference between Import a... SoftLiban KEYROUZ Charbel
- Re: What is the difference between Impo... Craig R. McClanahan
