Hi!
I already solve the problem...
Greets,
Phil
----- Original Message -----
From: "Philip M. Meier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:28 PM
Subject: Re: [Mav-user] Domify and XML-Nodes!
> 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/
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/