aspose file tools
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 42
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.
Have you tried LearnNowOnline?
subject: Exception when using struts tag