Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-2008, 10:39 PM
Member
 
Join Date: Feb 2008
Posts: 1
Dracos is on a distinguished road
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>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Text Fields on combo Box selected value smajidali26 AWT / Swing 0 11-29-2007 10:28 AM
Top menu fields hiding youayshu JavaServer Pages (JSP) and JSTL 0 11-13-2007 08:10 AM
Help with text fields in Java romina New To Java 1 08-07-2007 06:29 AM
How To Add Fields And Generating Getter-Setters JavaForums NetBeans 0 07-31-2007 12:13 AM
Special characters in text fields Felissa Web Frameworks 0 06-27-2007 05:47 PM


All times are GMT +3. The time now is 05:57 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org