Hi Jeff,
> Yes, the code below would work just fine if you initialize the Cart
> object somewhere (such as the perform() method).
The following code produces a RuntimeException with the following
error-message:
java.lang.RuntimeException: Exception when invoking public java.lang.String
com.envice.mavtest.controller.HelloWorld$Cart.getTotal():
java.lang.IllegalAccessException: Class
org.infohazard.domify.ElementAdapter$MethodNodeListAdapter can not access a
member of class com.envice.mavtest.controller.HelloWorld$Cart with modifiers
"public"
import org.infohazard.maverick.ctl.ThrowawayBean2;
import java.util.*;
import javax.servlet.http.*;
public class HelloWorld extends ThrowawayBean2 {
private Cart cart;
public Cart getCart() {
return cart;
}
class Cart {
public String getItems() {
return "rererer";
}
public String getTotal() {
return "erere";
}
}
public String perform() throws Exception {
cart = new Cart();
return SUCCESS;
}
}
What's wrong with the code above? If I change the modifier of the methods to
no modifier I get no exception, but still no correct result!
Thanks,
Phil
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/