This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
When I remove include directive, code is running properly. After including directive, I am getting error as:
HTTP Status 500 - /IncludeJSP.jsp (line: 2, column: 1) Invalid byte 1 of 1-byte UTF-8 sequence.
type Exception report
Thanks for giving so much stress on my mistake. I will remember this mistake throughout my life :-).
Now I have created a separate jsp file which is as follows
I have saved the file in MyJSP folder. Now problem is image is not visible . I think its related to path.
Yes, the URL for the image is not valid. First of all "\" is not valid in a URL path. Secondly, the URL should be a server-relative path to the image file. See the JspFaq and ServletsFaq for more info.
It also not valid to include a full HTML file into another. Why is your inlude file a full HTML page if it's only a fragment to be included?
Joined: Jul 03, 2009
Problem has been resolved. I removed "/" from the path to image. Thanks!!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com