File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Exception when using struts tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception when using struts tag" Watch "Exception when using struts tag" New topic

Exception when using struts tag

Haifeng Jiang
Ranch Hand

Joined: Dec 14, 2008
Posts: 43
I got below exception which displayed on the web page directly.
[ServletException in:/WEB-INF/jsp/paymentInstruction/businessPartnerDetails.jsp] Define tag cannot set a null value'

I found here my jsp after compiled.

there should be the problem. setParent method doesn't accept null value.

Now I don't want the exception display on the web page directly. I want to catch the exception(should be ServletException? I am not sure) and display a friendly page to the user? Thanks.

Thinking a lot. Gaining a lot.
I agree. Here's the link:
subject: Exception when using struts tag
It's not a secret anymore!