File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Exception creating bean of class org.dhsinfo. content.AddFileForm:  {1}' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception creating bean of class org.dhsinfo. content.AddFileForm:  {1} Watch "Exception creating bean of class org.dhsinfo. content.AddFileForm:  {1} New topic
Author

Exception creating bean of class org.dhsinfo. content.AddFileForm: {1}'

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
What could lead to a run-time error such as:

[ServletException in:/frame/content/content.jsp] Exception creating bean of class org.dhsinfo.content.AddFileForm: {1}'

The strange thing is that the application worked without any problem before. I did not touch anything. I re-ran the application a day later and this problem poped up.

It occurred when I tried to display the content.jsp in the browser window. The content.jsp portion is like:

The action mapping in the struts-config.xml is like:

and the form-bean in the struts-config.xml is like:

The AddFileForm.java in the org.dhsinfo.content directory is like:
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I tried the same code another day later. The code worked fine again.

It is really a strange problem. What I am worried about is that I cannot have something that works on day 1, does not work on day 2, and works again on day 3. Who knows what is going to happen on day 4.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception creating bean of class org.dhsinfo. content.AddFileForm: {1}'