Thanks for the reply.

Is it necessary to jar the files? I seem to be getting further, the JSP doesn't 
complain about the import or my attempt at instantiating an object.. But for some 
reason I can't seem to retrieve any data from the object.

My directory structure is as follows:

jboss\server\all\deploy\something.war\project\thing.class compiled from

package project;

public class Thing {
  public String t = "help";
  public Thing() {
  }
}



jboss\server\all\deploy\something.war\test.jsp

package project;
<%@ page import = "project.Thing" %>
<%
  out.println("test");
  Thing test = new Thing();
  //out.println(test.t);
%>

I was hoping that the page would print out "test" followed by "help" but instead, I am 
getting the following error:
org.apache.jasper.JasperException: tried to access field project.Thing.t from class 
org.apache.jsp.test_jsp
[...]

I am slightly puzzled here.. I apologise if its something blatently obvious but would 
much appreciate some help.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830164#3830164

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830164


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to