On the yellow highlighted item the message from Eclipse appears as:
"javax.servlet.http.HttpSession cannot be resolved. It is indirectly
referenced from the
required .class file"
Do I need to copy the javax jars to the java lib ext directory?
Or would reconfiguring the java build path work somehow?
I would like to get the server session id to trace the session on our
database server.
Thank you for your help. ---dt
import com.ulcjava.base.application.AbstractApplication;
import com.ulcjava.base.application.ULCFrame;
import com.ulcjava.base.application.ULCRootPane;
import
com.ulcjava.container.servlet.application.ServletContainerContext;
public class Login extends AbstractApplication{
protected ULCRootPane createRootPane(){
ULCFrame frame = new ULCFrame("Sample Application");
frame.setDefaultCloseOperation(ULCFrame.TERMINATE_ON_CLOSE);
return frame;
}
public void start(){
int intTest = ServletContainerContext.getHttpSession().getId();
ULCRootPane frame = createRootPane();
frame.add(new LoginBoxPane());
frame.setVisible(true);
}
}
<This message has been scanned for viruses by a Barracuda Spam Firewall.>