On Mon, 27 Aug 2001, Venkat Jonnalagadda wrote:
> Date: Mon, 27 Aug 2001 16:51:28 -0700
> From: Venkat Jonnalagadda <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Model 2 vs. Struts
>
> Hi,
>
> i have a doubt which i think is silly but legitimate. With Model 2,
> i used to do <%@ page imports="com.xxx.yyy.zzz"%> which reference some other
> helper/utilities classes that i use for proper rendering of dynamic data.
> Now, as i see in struts, all the examples have only references to tag libs.
> does this mean the other import statements should no longer be used or is
> there a different way to tackle these kinds of issues.
>
The only time you ever need to do <%@ page import="..." %> in a JSP page
(Struts-based or not) is when you want to refer to those classes with
Scriptlets or runtime expressions. If you only refer to bean classes with
<jsp:useBean> or Struts tags, then the imports are never necessary.
> Thanks
> Venkat.
>
Craig