permaculture playing cards*
The moose likes Struts and the fly likes Strange results while working with Preparable and  ModeDriven  Interface in Strus2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange results while working with Preparable and  ModeDriven  Interface in Strus2" Watch "Strange results while working with Preparable and  ModeDriven  Interface in Strus2" New topic
Author

Strange results while working with Preparable and ModeDriven Interface in Strus2

Manish Shinde
Ranch Hand

Joined: Mar 30, 2011
Posts: 39
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 !!
 
 
subject: Strange results while working with Preparable and ModeDriven Interface in Strus2
 
Similar Threads
Joining tables
Struts2 - execAndWait Interceptor
Help with jsp beans
How to validate using annotation
Struts 2 JQuery Grid is not working in jsp with Integration of Strtus 2,Hibernate,Spring