<jsp:useBean.../>
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bob_Jett
Posted On:   Wednesday, July 25, 2001 02:24 PM

I need to understand how to use . My environment is NT 4.0, TomCat3.1.1, jdk1.3 and jsdk2.1 After creating a bean "Greeting" I placed it in /WEB-INF/classes. The code is at the end of this note. The bean is supposed to return a "hello". How do I refer to Greeting.getGreeting() to get the value "hello", using I'm getting dizzy from looking at the examples on the web and in books. Thanks the code follows: import java.io.*; import java.util.*; public class Greeting { public String greeting; public Greeting() { greeting = new String("Hello"); }    More>>
			

I need to understand how to use .

My environment is NT 4.0, TomCat3.1.1, jdk1.3 and jsdk2.1

After creating a bean "Greeting" I placed it in /WEB-INF/classes. The code is at the end of this note.
The bean is supposed to return a "hello".

How do I refer to Greeting.getGreeting() to get the value "hello", using

I'm getting dizzy from looking at the examples on the web and in books.

Thanks the code follows:

import java.io.*;
import java.util.*;

public class Greeting
{

public String greeting;

public Greeting()
{
greeting = new String("Hello");
}

public String getGreeting()
{
return (greeting);
}
}





   <<Less

Re: &lt;jsp:useBean.../&gt;

Posted By:   AlessandroA_Garbagnati  
Posted On:   Wednesday, July 25, 2001 04:03 PM

Bob,


How do I refer to Greeting.getGreeting() to get the value "hello", using





Re: &lt;jsp:useBean.../&gt;

Posted By:   AlessandroA_Garbagnati  
Posted On:   Wednesday, July 25, 2001 03:58 PM

Bob,


You're saying that


"My environment is NT 4.0, TomCat3.1.1, jdk1.3 and jsdk2.1"



As I've already pointend out in one of my previous messages, Tomcat it's compliant with the Servlets 2.2 specs, not with the 2.1 specs.



What the exact classpath that Tomcat uses? (I'm talking of the one generated by tomcat.bat).

About | Sitemap | Contact