Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2007, 05:52 AM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
Rep Power: 0
bbq is on a distinguished road
Default Forms in jsp
I have a problem when I try to collect information from a form in a JSP file.
I have a field in the form and its type is “select”. In the field there are states
Then I collect from jsp file in a variable (type string)
State= request.getParameter("state")
It Works for state with a only Word, for states such as “san francisco, san josé” doesn’t work

why?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-05-2007, 05:28 AM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Rep Power: 0
Jack is on a distinguished road
Default
Look this
Code:
<%
for (int i=0; i<state.size(); i++) {
%>
<option value="<%=state.elementAt(i).toString()%>"><% =state.elementAt(i).toString()%></option>
<%
}
%>
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

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

BB 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
Migration from oracle forms to java Nick15 Advanced Java 6 11-12-2008 06:51 AM
Login Forms dankonsoer New To Java 1 08-07-2008 01:06 PM
Full Forms of Java Tech Gajesh Tripathi New To Java 1 10-18-2007 10:59 AM
Creating Sub forms in java netbeans 5.0 java_newbie NetBeans 14 08-06-2007 08:19 PM
Use multiple forms coco Java Applets 1 08-03-2007 11:56 PM


All times are GMT +2. The time now is 07:23 AM.



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