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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

null pointer exception in struts2...

 
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??


 
Sheriff
Posts: 9643
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate Topic, closing this one...
 
Screaming fools! It's nothing more than a tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!