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 03-22-2008, 10:07 AM
Member
 
Join Date: Mar 2008
Posts: 3
farakhkhan@yahoo.com is on a distinguished road
String and Arry Problem
I am new very new to Java. I am trying to get the data from form and to email. Its Ok when there is a string but when array cames it became very difficuit for me to merge with string and mail it. Please check my following code

Thanks & best regards

Code:
String phone=req.getParameter("phone2"); String country=req.getParameter("country"); String[] btype=req.getParameterValues("btype"); msg1="<table border=0 cellpadding=4 align=center cellspacing=5 width=500>"+ "<tr><td class=khan><font color=red>Country</font></td><td class=khan>"+country+"</td></tr>"+ "<tr bgcolor=#EEEEEE><td class=khan><font color=red>Phone</font></td><td class=khan>"+phone+"</td></tr>"; msg2="<tr><td class=khan><font color=red>Business Type</font></td><td class=khan>"; for(i=0;i<btype.length;i++){ if(!btype[i].equals("")){ btype[i] } } msg3="</td></tr>"; mailmsg=msg1+msg2+msg3;
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-28-2008, 05:53 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
This is JavaScript.. Not Java.
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-30-2008, 12:06 PM
Member
 
Join Date: Mar 2008
Posts: 3
farakhkhan@yahoo.com is on a distinguished road
I am not seeing any post which one?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 11:17 AM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
Try posting your problem here:

XML, HTML, Javascript, Web and CSS - VBForums
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
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
problem with using string in if condition sireesha New To Java 2 11-20-2007 11:40 PM
Using java.util.Scanner to search for a String in a String Java Tip Java Tips 0 11-20-2007 05:59 PM
Help with insertName(String name) and deleteName(String name) trill New To Java 1 08-07-2007 08:29 AM
I can't seem to pass the value of a string variable into a string array mathias Java Applets 1 08-03-2007 11:52 AM
Problem with String Building Albert New To Java 0 07-09-2007 08:20 PM


All times are GMT +3. The time now is 08:12 PM.


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