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:
<?xml version="1.0" encoding="UTF-8" ?>
- <body bgcolor="white">
<img src="duke.waving.gif" />
<h2>My name is Duke. What is yours?</h2>
- <form method="get">
<input size="25" name="username" type="text" />
<input value="Submit" type="submit" />
<input value="Reset" type="reset" />
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.
Thanks for your reply.
I am woking on the task by hand because it is required by the instructor of our JEE course and it will be helpful to understand jsp and jspx deeply.