esday, June 16, 2004 3:21 PM
To: Tomcat Users List
Subject: Re: Second Try: Can anyone explain this?
It a 1.4 JVM thing (not 1.3)
Consider class Cowbell in package more.
file: Cowbell.java
--
package more;
import Fever
public class Cowbell {
}
Then consider a class called Fever with
t;Sent: Wednesday, June 16, 2004 3:21 PM
>To: Tomcat Users List
>Subject: Re: Second Try: Can anyone explain this?
>
>It a 1.4 JVM thing (not 1.3)
>
>
>Consider class Cowbell in package more.
>
>file: Cowbell.java
>--
>package more;
>import Fever
&g
omcat Users List
Subject: Re: Second Try: Can anyone explain this?
It a 1.4 JVM thing (not 1.3)
Consider class Cowbell in package more.
file: Cowbell.java
--
package more;
import Fever
public class Cowbell {
}
Then consider a class called Fever without a package.
file: Fever
It a 1.4 JVM thing (not 1.3)
Consider class Cowbell in package more.
file: Cowbell.java
--
package more;
import Fever
public class Cowbell {
}
Then consider a class called Fever without a package.
file: Fever.java
--
public class Fever {
}
Now try to compile them. The compil
6, 2004 3:18 PM
>To: 'Tomcat Users List'
>Subject: RE: Second Try: Can anyone explain this?
>
>I have xalan installed. Could I use it to accomplish the same thing
(which
>all the page appears to be doing is reading in an xsl file and
translating
>it to a jsp).
>
>--
List
Subject: RE: Second Try: Can anyone explain this?
Hi,
Oh well, that was worth a shot. You did the two steps I suggested, it
didn't work, that's too bad.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Worley Brent - bworle [mailto:[EMAIL
>To: 'Tomcat Users List'
>Subject: RE: Second Try: Can anyone explain this?
>
>Yoav,
>
>Thanks for your suggestion. It at least got me a little further.
However,
>now I'm getting this error:
>
>org.apache.jasper.JasperException: /search.jsp(56,2) Unabl
>Then your out of luck. The java from a JSP page is always placed into >a
package. Becuase of this, you can't have packageless classes.
Tim, perhaps I don't understand what you are saying correctly, but I have no
trouble using classes that are not in a package in my application. Once I am
done dev
g:
taglib>
0.0
1.0
acx
xslt
org.apache.jasper.Xslt
jsp
...
Is there anything else that needs to be changed?
Thanks
Brent
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:41 PM
To: Tomcat Users List
Subject: RE: Second Try: Can anyone
x27;" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 1:12 PM
Subject: RE: Second Try: Can anyone explain this?
> so it's still not packaged then? (it *must* be).
>
>
> > -Original Message-
> > From: Worley Brent - bworle [mailto:[EMAIL PRO
;Tomcat Users List'
>Subject: RE: Second Try: Can anyone explain this?
>
>Is it possible to extract the class files and give them a
"package-like"
>structure without the keyword package being in the code?
>
>For example, there are 3 .class files in the jar. Could
ory and use a import Xslt.*?
I'm fairly new to Java and do not know if this hack would work.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:24 PM
To: Tomcat Users List
Subject: Re: Second Try: Can anyone explain this?
Then your out of
Then your out of luck. The java from a JSP page is always placed into a
package. Becuase of this, you can't have packageless classes.
You alternative is to hack jasper to not use the package statement but doing
so will be harder than fixing your code.
-Tim
Worley Brent - bworle wrote:
Someone
>Someone told you to put JspXslt.class in a package, IIRC. I think
>that's the problem. Repackage the jar if you have to, for testing
>purposes, and change the TLD to refer to the class by whatever package
>you put it in, e.g. com.foo.bar.JspXslt.
The problem is the files in Xslt.jar are not our
so it's still not packaged then? (it *must* be).
> -Original Message-
> From: Worley Brent - bworle [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 16, 2004 1:07 PM
> To: 'Tomcat Users List'
> Subject: RE: Second Try: Can anyone explain this?
>
>
o:[EMAIL PROTECTED]
>Sent: Wednesday, June 16, 2004 1:05 PM
>To: Tomcat Users List
>Subject: Re: Second Try: Can anyone explain this?
>
>
>And I answered it here:
>http://marc.theaimsgroup.com/?l=tomcat-user&m=108723827315299&w=2
>
>-Tim
>
>Worley Brent - bwor
Tried that and got the same error. This is what I did
jar -xf Xslt.jar JspXslt.class
Moved JspXslt.class to WEB-INF/classes
No change.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:05 PM
To: Tomcat Users List
Subject: Re: Second Try: Can
And I answered it here:
http://marc.theaimsgroup.com/?l=tomcat-user&m=108723827315299&w=2
-Tim
Worley Brent - bworle wrote:
I posted this earlier and received a few leads on what to do, but nothing
worked. I'm hoping a second look and explanation will help.
The page that is causing the error (sear
Hi,
Someone told you to put JspXslt.class in a package, IIRC. I think
that's the problem. Repackage the jar if you have to, for testing
purposes, and change the TLD to refer to the class by whatever package
you put it in, e.g. com.foo.bar.JspXslt.
Yoav Shapira
Millennium Research Informatics
19 matches
Mail list logo