My task is to convert a jsp page to jspx document. All I need to do comes from a book. The greeting.jspx should do the exact what index.jsp does. My problem is that the browser just display a simplized xml-format text file when the jspx is loaded. Can anybody give me some clues? Thanks a lot in advance.
The code of my jsp page - index.jsp, which works well.
The code of the corresponding JSP DOCUMENT - greetings.jspx:
The code of the relevant web.xml:
The result displayed in browser when greetings.jspx is loaded:
Frank Jp Zheng wrote:My task is to convert a jsp page to jspx document.
By hand? Why?
The JSP document format is not meant for hand coding. It's either meant to be an intermediate format, or a format for tools that will automatically generate JSP (since building up a DOM is easy under code control is easier for building strings).
The format is not meant to be used in place of JSP.