Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

null pointer exception in struts2...

 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Report post to moderator
We all know that the variable name in Action class should be name of the html tag...

I have something like this





The variable names in action class:
private String conceptName;
private String attributeName;
private String addDTList;

I also have get,set methods for these...

On click on submit

When I print the above values its only printing addDTList while the other 2 are null,,,why is that so??


 
Ankit Garg
Sheriff
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate Topic, closing this one...
 
    Bookmark Topic Watch Topic
  • New Topic