This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange results while working with Preparable and ModeDriven Interface in Strus2

 
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.


Struts.xml



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?

THANKS IN ADVANCE !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic