Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Struts and the fly likes null pointer exception in struts2... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

null pointer exception in struts2...

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
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

Joined: Aug 03, 2008
Posts: 9327
    
  19

Duplicate Topic, closing this one...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: null pointer exception in struts2...