for(FileModel rm:msgList)
{
%>
<Td width="5"><%=i%></Td>
<Td width="2000"><%=rm.getFileName()%></Td>
<td width="2000"><%=rm.getFileDate()%></td>
<Td><input type="image" src="images/download.png" value="<%=rm.getFileId()%>" name="download" alt="Submit Form" width="200" height="30"></Td>
</tr><%
i=i+1;
}%>
Asked
Active
Viewed 159 times
0

Infinite Recursion
- 6,511
- 28
- 39
- 51

user3048068
- 1
- 3
-
What about the other fields ? Are you getting the values for `getFileName()` and `getFileDate()` ? – Saif Asif Dec 09 '13 at 06:55
-
1Where is `submit` button? – Aniket Kulkarni Dec 09 '13 at 06:55
-
yes.... got other fields... image – user3048068 Dec 09 '13 at 07:06
-
yes... got other result – user3048068 Dec 09 '13 at 07:07
-
it aiso act like submit button – user3048068 Dec 09 '13 at 07:09
-
String id=request.getParameter("download"); System.out.println("gfedwsrg"); System.out.println(id); – user3048068 Dec 09 '13 at 07:09
-
bt got result like // gfedwsrg null – user3048068 Dec 09 '13 at 07:10
-
input type="image" alt="Submit Form" its acts like submit form – user3048068 Dec 09 '13 at 07:11
-
`` – Aniket Kulkarni Dec 09 '13 at 07:23
-
>
– user3048068 Dec 09 '13 at 08:50
-
>
then how access value of button in servlet – user3048068 Dec 09 '13 at 08:51
-
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub String id=request.getParameter("download"); System.out.println("gfedwsrg"); System.out.println(id); } – user3048068 Dec 09 '13 at 09:02
-
but I got the result like this... gfedwsrg null – user3048068 Dec 09 '13 at 09:03
-
Please refer these links:[enter link description here][1] && [accessing-post-variables-using-java-servlets][2] [1]: http://stackoverflow.com/questions/2912371/how-to-get-the-button-value-from-jsp-to-servlet [2]: http://stackoverflow.com/questions/5222/accessing-post-variables-using-java-servlets Hope this helps! – Pankaj Landge Dec 09 '13 at 09:25
-
not good...... tell me another method – user3048068 Dec 09 '13 at 10:12