This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Strut 2 and Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strut 2 and Spring" Watch "Strut 2 and Spring" New topic

Strut 2 and Spring

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 303

Hi List[],
I have integrated the strut2 and spring but my problem is the property value inside the action coming null.
i.e when i print system.out.println(message) inside execute method its values is coming null.

Please tell me where i am wrong.
Below is my code:


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""

<bean id="helloClass" class="com.Action.HelloWorld">
<property name="message" value="pankaj" />

David Newton

Joined: Sep 29, 2008
Posts: 12617

What libraries are you deploying? How are you initializing Spring (i.e., via web.xml, or...)? What does the startup log look like?
I agree. Here's the link:
subject: Strut 2 and Spring
jQuery in Action, 3rd edition