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 06-27-2007, 05:52 AM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
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
Sponsored Links
  #2 (permalink)  
Old 07-05-2007, 05:28 AM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
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
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
Login Forms dankonsoer New To Java 0 11-20-2007 03:38 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
Migration from oracle forms to java Nick15 Advanced Java 3 05-12-2007 08:00 AM


All times are GMT +3. The time now is 07:32 AM.


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