This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9291
    
  17

Duplicate Topic, closing this one...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: null pointer exception in struts2...
 
Similar Threads
null pointer exception in struts2
struts-2 (set values to action class)
spaces while populating using s:iterator
validation annotation in struts-2
selecting dynamically added rows of a table