This should be simple. I have created a bean, the first time I execute a
JSP page that calls the bean, a class file is created for the bean and the
jsp page in C:\test\WEB-INF\jsp. I then have to move the bean.class file
into the C:\test\WEB-INF\classes directory for my code to execute.(because I
get a java.lang.NoClassDefFoundError: getmov)
However, if I make a change to the source code of the bean and reexecute,
it appears that the original class is still in memory and manifests it self
when the JSP is executed thereby not reflecting the new changes. I have
remove all traces of the .java and .class files ( ie delete them) and to
restart the default server inorder to create new classes.
1.How can I clear the old code and create a new class that reflects the
changes to the source without restarting the server everytime
2. Where exactly should the .class file reside in the
C:\test\WEB-INF\classes or in C:\test\WEB-INF\classes\beans
//HERE IS THE BEAN
import java.lang.* ;
public class getmov {
private String convert,clipnumber ;
public void setConvert (String convert)
{this.convert = convert ; }
public String getConvert()
{ return convert ; }
public String getClipnumber()
{ return clipnumber ; }
public void setClipnumber(String clipnumber)
{
if (this.convert != "TRUE")
{ this.clipnumber = "TRUE" ; }
else
{ this.clipnumber = "FALSE" ; }
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists