Results 1 to 1 of 1
Thread: Jsp / Java cannot get fields
- 02-04-2008, 09:39 PM #1
Member
- Join Date
- Feb 2008
- Posts
- 1
- Rep Power
- 0
Jsp / Java cannot get fields
Hello! i hope this is the correct place to post this. I have a problem withe the code below. It seems simple that I can call up the form and then post it and then use java to get the variable for the dropdown that was in the form .. but for some reason this does not work. Would you have any ideas?
<html>
<%@ page language="java"%>
<%@ page errorPage="ExceptionHandler.jsp" %> <%@ page import="org.apache.commons.fileupload.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.io.*"%>
<%@ page import="java.lang.System.*"%>
<%@ page import="java.util.Date" %>
<head>
<title>Process File Upload</title>
<style TYPE="text/css">
<!--
.style1 {
font-size: 12px;
font-family: Verdana;
}
-->
</style>
<%
String conType = null;
String workflowType = null;
conType = request.getContentType();
out.println(request.getParameter("myselect")) ;
out.println(request.getParameter("file1")) ;
out.println(request.getParameter("Submit")) ;
%>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> </body> <body bgcolor="#FFFFFF" text="#000000"> <form method="post" action="chip6.jsp" name="upform" enctype="multipart/form-data">
<tr>
<td><b>Workflow Type : </b></td>
<td>
<select name="myselect">
<option value="NONE" selected>NONE</option>
<option value="FLMA">FMLA </option>
<option value="PAT">PAT </option>
</select>
</td>
</tr><br>
File 1:<input type="file" name="file1"/><br/>
<input type="submit" name="Submit" value="Upload Files"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="style1">
</table>
</FORM>
</body>
</html>
Similar Threads
-
Show Text Fields on combo Box selected value
By smajidali26 in forum AWT / SwingReplies: 0Last Post: 11-29-2007, 09:28 AM -
Top menu fields hiding
By youayshu in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-13-2007, 07:10 AM -
Help with text fields in Java
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:29 AM -
How To Add Fields And Generating Getter-Setters
By JavaForums in forum NetBeansReplies: 0Last Post: 07-30-2007, 11:13 PM -
Special characters in text fields
By Felissa in forum Web FrameworksReplies: 0Last Post: 06-27-2007, 04:47 PM
Bookmarks