Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Intilization of form data

 
Mohammad Akon
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Is it possible to initialize a form's fields with the information retrieved from a datasource?? If so.... how?

- mohammad
 
Mohammad Akon
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I am trying to create a edit profile page.....

my configurations are as follows:

struts-config.xml


EditProfileForm.java


EditProfileAction.java


editProfile.jsp


While trying to load the page I am getting the following error:


[ February 19, 2008: Message edited by: Mohammad Akon ]

[ February 19, 2008: Message edited by: Mohammad Akon ]
[ February 19, 2008: Message edited by: Mohammad Akon ]
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class com.admin.EditProfileForm: java.lang.NullPointerException


This line in the stack trace says you had a null pointer exception in EditProfileForm. You didn't give us enough of the stack trace to see the source line so I can't tell you exactly where it is, but the problem is in your code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic