Hi,
This doesn't exactly relate to Tomcat, but it is a general JSP query. You see, I am using a set of Java classes, packaged as CTG (CICS Transaction Gateway) provided by IBM. My problem is, I am able to instantiate a CTG object inside the JSP. For example, in the JSP, if I write
 
<html>
<blah blah blah>
<%
CTGClass ctgObject = blah blah blah
............
.........
%>
<b><%=ctgObject.getSomeString()%><b>
 
 
This works fine. But when I write all this code inside my class, and say
 
<html>
<blah blah blah>
<%
myClass myObject;
myObject.getSomeString() /* This will actually contain all the code in JSP, just to avoid the JSP page cluttered with Java Code */
 
But this doesn't work. This problem is not only with CTG but many other classes, too. One interesting observation is, if I add a main to myClass and run it from the command prompt, it works perfectly.

Any help?
Raj
 
****** Message from InterScan E-Mail VirusWall NT ******

** No virus found in attached file noname.htm
** No virus found in attached file noname.htm

This mail has been scanned by Interscan Viruswall
*****************     End of message     ***************


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to