This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes urgent..problem with tomcat4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "urgent..problem with tomcat4.0" Watch "urgent..problem with tomcat4.0" New topic

urgent..problem with tomcat4.0


Joined: Mar 18, 2002
Posts: 3
here iam working on tomcat 4.0 as webcontainer and weblogic 6.1 as ejb container.
ok...when iam trying to run my jsp's in tomcat if iam not importing java.util in my jsp (if my code is having util related stuff like data and string tokenizers)it's throwing java.lang.numberformatexception:c
but in weblogic no need to import java.util ,it's default imported package in weblogic.
why liek this?already my code was written on the basis of weblogic,so pl suggest me on this.if not again i have to import java.util in each and every'll be bit pl suggest me on this..

Vikas Varma

Joined: Aug 21, 2002
Posts: 23
Hi Seshu,
Isnt it easy to add this line in the top your jsp files?
<%@ page import="java.util.*, java.lang.*" %>
I agree it would be a major change (is it risky?). Again if you move to some other webcontainer, you dont have to change anything.
It is sorta covered in the JavaRanch Style Guide.
subject: urgent..problem with tomcat4.0
jQuery in Action, 3rd edition