Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

STRUTS2 Dynamic data is not updated

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,

I am new in struts and try to make an application in struts2.

In application i am tried to fetch variable, and saved that in a class variable, and then use set & get method for saving the variable which i was fetched through database. Now the problem, data is fetched successfully but when we try to save the variable using set methodthat was save sucessfully but temporary means i used SOP inside the set method it shows the data has been save successfully but when we call get method it will return the null value of hard coded values or we try to acces the value outside set it will return the null value.

Please help, please let me know if i miss some important part of struts2

I used below tags

<s:bean name="Test.tion">
It was created by <s:property value="%{name}"></s:property><br>
<s:textfield name="name" label="Name"/>

The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic