Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7681175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:16:57+00:00 2026-05-31T18:16:57+00:00

I am studying Spring WebFlow, and I am apparently missing a key concept of

  • 0

I am studying Spring WebFlow, and I am apparently missing a key concept of Spring in a sample application I am studying. I have the following XML which gets the property allItems from a shopping cart.

<on-start>
    <evaluate expression="order.setBooksOrdered(shoppingCart.allItems)" />
</on-start>

However, I do not see a method or property by that name in the ShoppingCart class below. Although of course there is a getAllITems() class. It all compiles and works, but I am apparently missing a key concept here.

@Component
@Scope("session")
public class ShoppingCart implements Serializable {
    private List<Book> shopping = new ArrayList<Book>();

    public void addItem(Book newItem) {
        this.shopping.add(newItem);
    }

    public List<Book> getAllItems() {
        return shopping;
    }

    public void clear() {
        this.shopping.clear();
    }
}

Can someone point me in the direction of the key concept I am missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:16:58+00:00Added an answer on May 31, 2026 at 6:16 pm

    Take a look at JavaBean documentation.

    If you have a JavaBean which has a JavaBean property, you access that property (in this case allItems) with a method get<propertyName> (in this case getAllItems()) or is<propertyName> when the property is a boolean. The actual name of the field is irrelevant to the JavaBean standard.

    There is more to the JavaBean specification than just that. I recommend taking a look at the linked documentation.

    So to access the allItems property of the shoppingCart bean, you will actually be triggering the getAllItems() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got my first impression of Spring WebFlow 2.1 from studying the reference app
I'm studying both of these approaches to include transactions in my Spring application. As
I'm studying Spring 3 and I'm using it in a simple web-application. Now I'm
I am studying for the SCJP exam and I have a sample set of
I am studying to use MVVM pattern for my Silverlight application. Following code is
Studying MS Exam 70-536 .Net Foundation I've got to Chapter 11 Application Security and
While studying about JMX, I have seen one of the important feature of it
After studying TCP/UDP difference all week, I just can't decide which to use. I
I'm studying for my exam automata and formal languages, I have to design a
Studying some code from a codeigniter tut, the following preg_match pattern has me baffled:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.