*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception when using struts tag" Watch "Exception when using struts tag" New topic
Author

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception when using struts tag
 
Similar Threads
Hi Marcus..
<body-content> "empty" still allowing content
New to Struts, where did I go wrong?
jstl problem in Spring MVC
How to Custom tags in jsp