You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pablo Carretero Sánchez <pc...@cygnux.com> on 2004/09/22 09:11:11 UTC

JSP Implicit import

Hi,


do know if can I import java packages in a implicit way in a JSP??


I means, I'm working with a Bea Weblogic application, and I want run this app
in Tomcat. There are several jsp in Bea using Vector without the import
java.utils.Vector. This jsp works fine in Bea but not in Tomcat. Do you know
why??


Best regards.

-- 
______________________________________
Pablo Carretero Sánchez
Cygnux

Arquitecto de Software
Pintor Velazquez nº 3 Esc Izq 7º B
28932 &#8211; Móstoles (Madrid)
Movil: +34 699929150
pcarretero@cygnux.com




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: JSP Implicit import

Posted by Roberto Cosenza <ro...@infoflexconnect.se>.
Pablo Carretero Sánchez wrote:

>Hi,
>
>
>do know if can I import java packages in a implicit way in a JSP??
>
>
>I means, I'm working with a Bea Weblogic application, and I want run this app
>in Tomcat. There are several jsp in Bea using Vector without the import
>java.utils.Vector. This jsp works fine in Bea but not in Tomcat. Do you know
>why??
>
>
>Best regards.
>
>  
>
The jsp engine will compile the jsp into a servlet. This process is 
dependent on the j2ee server. It may be that weblogic
need a java.util.Vector (not java.utils....btw) for any other purpose 
and then you get the import automatically.
A correct jsp, anyway, should import those classes by itself.

-- 
Roberto Cosenza
Infoflex Connect AB, Sweden
Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861
--
Nordic Messaging Technologies is a trademark of Infoflex Connect.
Please visit www.nordicmessaging.se for more information about our
carrier-grade messaging products.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: JSP Implicit import

Posted by Tim Funk <fu...@joedog.org>.
Bea weblogic imports java.util.* for you when it translates the jsp into a 
servlet.

Tomcat imports only what the spec says it must import and nothing else 
(Except its own support pacakge)

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


-Tim

Pablo Carretero Sánchez wrote:

> Hi,
> 
> 
> do know if can I import java packages in a implicit way in a JSP??
> 
> 
> I means, I'm working with a Bea Weblogic application, and I want run this app
> in Tomcat. There are several jsp in Bea using Vector without the import
> java.utils.Vector. This jsp works fine in Bea but not in Tomcat. Do you know
> why??
> 
> 
> Best regards.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org