I have jsp with one button download pdf.
<HTML>
<body>
<%
String value = "12324";
String email = "abc@gmail.com";
%>
<h3>Welcome to the system. To download this form click on "Download PDF" </h3>
<jsp:useBean id="myBean" scope="session" class="VU.viechelInfoClass" />
<jsp:getProperty name="myBean" property="model" />
<table border="1" width="20%" height="50" >
<thead>
<tr>
<th>#</th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
</tr>
</thead>
<tbody width="20%" height="50" >
<tr>
<td><%= value %> </td>
<td><%= email %></td>
<td> email </td>
<td>name </td>
<td>Address </td>
</tr>
<tr>
<td> id </td>
<td> Quiz</td>
<td> email </td>
<td>name</td>
<td>Address </td>
</tr>
</tbody>
</table>
<br>
<input type="submit" value="Download PDF" />
</form>
</body>
</HTML>
When download button clicked I got this jsp in pdf format but it is not showing data properly in table? Is this possible? How to do it please?
Please share some informative tips.