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

Strange results while working with Preparable and ModeDriven Interface in Strus2  RSS feed

Manish Shinde
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting my hands on struts 2. While doing this i faced some unique behavior

In my code ,I m using Preparable interface to get data from the database and then showing the data on the same page.

Here is my JSP(modalPrepareForm.jsp) PAGE.


Model Class (PrepareEmployee)

Action Class (PrepareFormAction)

And Here is console ouput

When call arrives at update method two String fields became disappear(u can see from console output that ‘Alex’ and ‘Nerul’ is not appearing in last line) so consequently they are not appearing on JSP also.Rest of the fields(empid,age,salary, departmentID, managerID) are displayed properly .
Even if I change datatype of any of other field let’s say age to Integer or String then with that two fields age become invisible in JSP.

What is going wrong in this case?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!