Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strut 2 and Spring

 
pankaj semwal
Ranch Hand
Posts: 303
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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:


and
applicationcontext.xml


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">



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



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic